feat(desktop): #142 slice 2 — unlock failure ladder + passphrase layer (KEY-13 floor) #150
No reviewers
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!150
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/desktop-unlock-ladder"
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?
#142 slice 2 — the unlock failure ladder (F-D4/F-M7) plus the passphrase baseline, closing #15's passphrase-floor component.
The gap: the locked screen was biometric-or-nothing — biometric re-unlock with no fallback, no counter, no recovery path. Per ADR-003 the passphrase/Argon2id baseline is the unlock foundation.
Rust — MasterKeyService passphrase unlock layer (6 new tests):
kdf_paramsstring declares the profile — groundwork for KEY-13's downgrade rejection. Passphrase floor enforced at set time: >= 14 chars OR >= 4 words (SRS KEY-13).unlock_with_passphrase: verification is the decrypt attempt itself (GCM auth failure = wrong passphrase — no separate verifier to leak), then loads the master key and unlocks.UI:
Note on jsdom: form submits via explicit onClick — jsdom doesn't fire implicit form submission (found by the new tests).
Tests: cargo 31/31 src-tauri (6 new: floor, set/unlock roundtrip with fresh-process load, ladder increment + lockout + recovery message, change/remove, floor rejection at set, ladder reset). vitest 1295/1skip (13 new: 6 ladder + 5 settings + existing kept). Typecheck clean; lint 0 errors.