Dashboardopencode-loreFail-closed sync encryption and cancell…

Fail-closed sync encryption and cancellation

Category: gotcha
Confidence: 1.00
ID: 01a0a9ba-fbad-7385-887b-c5274c09d83e
Project ID: 6f4be9ff-ed84-4cca-a9e7-732a0b0b8677
Cross-project: No
Recalled in other projects: 0
Source session: 1dfL6i8KyRgLjEYtr
Created: 2026-08-28 11:14:11
Updated: 2026-09-16 10:19:58

Content

When encryption setup is cancelled, disable sync even if it was previously enabled and require explicit passphrase re-enablement; cancellation itself performs no synchronization. For incoming encrypted sync, any wrong or tampered ciphertext, corrupt or missing wrapped DEK, absent scope key, failed scope lookup, decryption failure, or encryption-OFF state must defer the affected table, freeze its cursor, and store nothing. Do not retain ciphertext or advance the cursor: that can strand undecryptable rows or expose ciphertext as knowledge content. These paths deliberately fail closed to prevent plaintext synchronization after encryption becomes mandatory.

Move to: