Commit e959de4
committed
🚨 disable export/history/import for encrypted notebooks (stage 7) #18034
Encrypted notebooks bypass filesys for export/history/import, which would
either leak ciphertext (export) or corrupt data (import writes plaintext
.sy into encrypted dir). Disable these three features for encrypted boxes
until proper integration is built.
- model/export.go: ExportNotebookSY and ExportSYs return early for
encrypted boxes
- model/history.go: GenerateFileHistory skips encrypted boxes in the
ticker loop; generateTreeHistory returns early for encrypted trees
(covers both auto and edit-triggered history)
- model/import.go: ImportSY and ImportFromLocalPath return error for
encrypted target boxes
Sync (.sy/assets) is NOT changed: the sync loop is naturally correct —
files are ciphertext on disk, dejavu reads ciphertext and uploads
ciphertext, checkout writes ciphertext back. DEK encryption is preserved
end-to-end without intervention.
#180341 parent ea4264f commit e959de4
3 files changed
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
503 | 507 | | |
504 | 508 | | |
505 | 509 | | |
506 | 510 | | |
507 | 511 | | |
508 | 512 | | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
509 | 517 | | |
510 | 518 | | |
511 | 519 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
| |||
857 | 861 | | |
858 | 862 | | |
859 | 863 | | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
860 | 868 | | |
861 | 869 | | |
862 | 870 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
111 | 116 | | |
112 | 117 | | |
113 | 118 | | |
| |||
769 | 774 | | |
770 | 775 | | |
771 | 776 | | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
772 | 782 | | |
773 | 783 | | |
774 | 784 | | |
| |||
0 commit comments