feat(desktop): #159 task 9.2 — decoy vault in-session UX + silent alert (DUR-02/03) #163

Merged
amiryahaya merged 1 commit from feat/decoy-vault-ux into main 2026-11-11 17:31:16 +01:00
Owner

The in-session half of the decoy feature (9.1 landed the layer).

  • DecoyVaultView: the file surface a decoy unlock lands on. Entries live in a device-local encrypted store (decoy_files table + AES-GCM blobs under the active decoy tree key) — server file APIs are never called in decoy mode, so the server sees literally nothing at duress time (stronger than indistinguishability: nothing to correlate).
  • FilesPage routes on unlock status on mount: decoy tree → vault view (list/add/open/delete); real tree → normal files + the DUR-03 silent duress notice surfaced once (clear-on-read).
  • SettingsPage: DecoyVaultSection — setup (floor-checked passphrase, same-as-real rejection), remove, status copy per F-DUR1.
  • Rust: decoy_files table (device DB), DecoyVaultService (add/list/open_to_temp/delete under the active decoy tree key), Database::new_in_memory for tests, duress notice mark/take/peek, take_duress_notice command, active_tree in unlock_passphrase_status.

Web excluded (F-DUR8 boundary); mobile parity is a later wave.

Tests: cargo 40/40; vitest 1306/1skip (5 new: vault view CRUD states + FilesPage decoy routing + duress notice banner); typecheck + lint clean.

The in-session half of the decoy feature (9.1 landed the layer). - **DecoyVaultView**: the file surface a decoy unlock lands on. Entries live in a device-local encrypted store (decoy_files table + AES-GCM blobs under the active decoy tree key) — **server file APIs are never called in decoy mode**, so the server sees literally nothing at duress time (stronger than indistinguishability: nothing to correlate). - FilesPage routes on unlock status on mount: decoy tree → vault view (list/add/open/delete); real tree → normal files + the DUR-03 silent duress notice surfaced once (clear-on-read). - SettingsPage: DecoyVaultSection — setup (floor-checked passphrase, same-as-real rejection), remove, status copy per F-DUR1. - Rust: decoy_files table (device DB), DecoyVaultService (add/list/open_to_temp/delete under the active decoy tree key), Database::new_in_memory for tests, duress notice mark/take/peek, take_duress_notice command, active_tree in unlock_passphrase_status. Web excluded (F-DUR8 boundary); mobile parity is a later wave. Tests: cargo 40/40; vitest 1306/1skip (5 new: vault view CRUD states + FilesPage decoy routing + duress notice banner); typecheck + lint clean.
feat(desktop): #159 task 9.2 — decoy vault in-session UX + silent alert (DUR-02/03)
All checks were successful
Security CI / security-scan (pull_request) Successful in 2m37s
2603e51aa0
The in-session half of the decoy feature (9.1 landed the layer):

- DecoyVaultView: the file surface a decoy unlock lands on. Entries live
  in a device-local encrypted store (decoy_files table + AES-GCM blobs
  under the active decoy tree key) — server file APIs are never called
  in decoy mode, so the server sees literally nothing at duress time
  (stronger than indistinguishability: nothing to correlate). List,
  add (system file dialog), open (decrypt-to-temp + shell open),
  delete.
- FilesPage: on mount, unlock_passphrase_status routes to the vault
  when active_tree is decoy; otherwise loads real files normally and
  surfaces the silent duress notice (DUR-03) once — clear-on-read, so
  it appears exactly one normal session after any duress unlock.
- SettingsPage: DecoyVaultSection — setup (floor-checked passphrase,
  same-as-real rejection), remove, status. Decoy content is added from
  the decoy session itself (F-DUR1/F-DUR2 copy).
- Rust: decoy_files table (device DB), DecoyVaultService (add/list/
  open_to_temp/delete under the active decoy tree key), Database
  new_in_memory for tests, duress notice mark/take/peek, take_duress_
  notice command, active_tree in unlock_passphrase_status.

Web excluded (F-DUR8 boundary); mobile parity is a later wave.

cargo 40/40; vitest 1306/1skip (5 new); typecheck + lint clean.
amiryahaya deleted branch feat/decoy-vault-ux 2026-11-11 17:31:17 +01:00
Sign in to join this conversation.
No description provided.