MUST D6: Decoy session reaches real-account settings; shipped model diverges from threat-model §11.1 #173
Labels
No labels
epic
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
phase-7
phase-8
phase-9
priority/P0
priority/P1
priority/P2
type/backend
type/client
type/docs
type/ops
type/security
type/spike
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/failsulit#173
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
SettingsPage has no active_tree gate (only FilesPage does). Decoy session can arm the REAL account's wipe (arm_self_service_wipe = require_auth only) and change-unlock-passphrase re-wraps the in-memory key (master_key_service.rs:337) = decoy key overwriting real layer. decoy_add_file (commands/decoy_vault.rs:68) lacks tree guard despite docstring. Threat-model §11.1 promises separate decoy account + own tokens — not shipped. DECISION 2026-11-12: keep local-vault model, amend §11.1/§11.2, desktop-gate Settings by active_tree + add tree guard in DecoyVaultService.
Closed — all three halves landed
Per the recorded decision (amend docs + gate UI, not JIT decoy account):
2910b92) — SettingsPage fetches active_tree on mount; decoy sessions see device-level prefs + DecoyVaultSection only; account/linked-logins/devices/unlock-passphrase/wipe/recovery hidden. Tests assert the gate.4a8bb02) —decoy_add_filenow rejects non-decoy trees at the command layer (the service docstring promise is enforced).6b70ffa) — threat-model §11.1/§11.2 amended to the shipped local-decoy model (client-boundary isolation, local-only vault, single-key-in-memory) with the honest residual delta vs the original JIT-account brief recorded; JIT account tracked as long-term closure.Combined with the wipe-arm fix in #176/#177 (server) and the arm-failure retry panel (#179), the concrete damages enumerated in this issue (decoy-session wipe arm, unlock-layer rebind, wrong-key decoy encryption) are each closed at their own layer.