- Notifications
You must be signed in to change notification settings - Fork927
Commit383c718
feat(coderd): add dbcrypt package
This commit builds upon the previous work in#7959:- Moved dbcrypt package to enterprise/dbcrypt- Modified original dbcrypt behaviour to not delete un-decryptable rows.- Added a table dbcrypt_sentinel used to determine database encryption statusNOTE: This is part 1 of a 2-part PR. This PR focusesmainly on the dbcrypt and database packages. A separatePR will add the required plumbing to integrate this intoenterprise/coderd properly.Co-authored-by: Kyle Carberry <kyle@coder.com>1 parent16ef97a commit383c718
File tree
20 files changed
+1152
-2
lines changed- coderd/database
- dbauthz
- dbfake
- dbgen
- dbmetrics
- dbmock
- migrations
- queries
- enterprise/dbcrypt
20 files changed
+1152
-2
lines changedLines changed: 28 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
828 | 828 |
| |
829 | 829 |
| |
830 | 830 |
| |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
831 | 838 |
| |
832 | 839 |
| |
833 | 840 |
| |
| |||
904 | 911 |
| |
905 | 912 |
| |
906 | 913 |
| |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
907 | 921 |
| |
908 | 922 |
| |
909 | 923 |
| |
| |||
1472 | 1486 |
| |
1473 | 1487 |
| |
1474 | 1488 |
| |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
1475 | 1496 |
| |
1476 | 1497 |
| |
1477 | 1498 |
| |
| |||
2134 | 2155 |
| |
2135 | 2156 |
| |
2136 | 2157 |
| |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
| 2163 | + | |
| 2164 | + | |
2137 | 2165 |
| |
2138 | 2166 |
| |
2139 | 2167 |
| |
|
Lines changed: 42 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
| 47 | + | |
47 | 48 |
| |
48 | 49 |
| |
49 | 50 |
| |
| |||
116 | 117 |
| |
117 | 118 |
| |
118 | 119 |
| |
| 120 | + | |
119 | 121 |
| |
120 | 122 |
| |
121 | 123 |
| |
| |||
1150 | 1152 |
| |
1151 | 1153 |
| |
1152 | 1154 |
| |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
1153 | 1164 |
| |
1154 | 1165 |
| |
1155 | 1166 |
| |
| |||
1392 | 1403 |
| |
1393 | 1404 |
| |
1394 | 1405 |
| |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
1395 | 1418 |
| |
1396 | 1419 |
| |
1397 | 1420 |
| |
| |||
2832 | 2855 |
| |
2833 | 2856 |
| |
2834 | 2857 |
| |
| 2858 | + | |
| 2859 | + | |
| 2860 | + | |
| 2861 | + | |
| 2862 | + | |
| 2863 | + | |
| 2864 | + | |
| 2865 | + | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
2835 | 2870 |
| |
2836 | 2871 |
| |
2837 | 2872 |
| |
| |||
4791 | 4826 |
| |
4792 | 4827 |
| |
4793 | 4828 |
| |
| 4829 | + | |
| 4830 | + | |
| 4831 | + | |
| 4832 | + | |
| 4833 | + | |
| 4834 | + | |
| 4835 | + | |
4794 | 4836 |
| |
4795 | 4837 |
| |
4796 | 4838 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
473 | 473 |
| |
474 | 474 |
| |
475 | 475 |
| |
476 |
| - | |
| 476 | + | |
477 | 477 |
| |
478 | 478 |
| |
479 | 479 |
| |
| |||
486 | 486 |
| |
487 | 487 |
| |
488 | 488 |
| |
489 |
| - | |
| 489 | + | |
490 | 490 |
| |
491 | 491 |
| |
492 | 492 |
| |
|
Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Lines changed: 59 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + |
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + |
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
266 | 266 |
| |
267 | 267 |
| |
268 | 268 |
| |
| 269 | + | |
269 | 270 |
| |
270 | 271 |
| |
271 | 272 |
| |
|
Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
0 commit comments
Comments
(0)