fix(sync): secure encrypted snapshot lifecycle

This commit is contained in:
2026-07-10 06:24:53 -04:00
parent 556c5ff624
commit 540b901fd6
106 changed files with 18026 additions and 3309 deletions
+24
View File
@@ -34,6 +34,30 @@ pub enum SyncClientError {
#[error("Snapshot schema is invalid: {0}")]
SnapshotSchema(String),
#[error("Snapshot encryption failed: {reason}")]
SnapshotEncryption { reason: &'static str },
#[error("Cloud Sync snapshot head is changing; retry shortly")]
SnapshotBusy,
#[error("Sync account key storage is unavailable: {0}")]
AccountKeyStorage(String),
#[error("Sync account key is unavailable for encrypted cloud data")]
AccountKeyUnavailable,
#[error("Device private key storage is unavailable: {0}")]
DeviceKeyStorage(String),
#[error("Device private keys are unavailable for {device_id}")]
DeviceKeyUnavailable { device_id: String },
#[error("Device trust protocol failed: {reason}")]
DeviceTrust { reason: &'static str },
#[error("Sync account key vault operation failed: {reason}")]
VaultCrypto { reason: &'static str },
#[error("Sync policy blocks this operation: {reason}")]
SyncPolicy { reason: String },