Present authentication and automatic relocking #29
Reference in New Issue
Block a user
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?
Goal
Present secure authentication, unlock, and automatic relock behavior using the shared storage authentication lease.
Scope
Acceptance criteria
crates/storage.Implemented in
b9034c5. The Iced desktop app now loads the shared storage configuration and GPG identity, authenticates only for protected-content access, retains only the storage-owned lease handle, renews it exclusively from deliberate input, observes expiry from passive timer ticks, rejects stale authentication completions, and clears decrypted/editor/clipboard presentation state on expiry, cancellation, failure, or manual lock. Deterministic desktop tests cover the default 120-second and configured timeouts plus passive versus deliberate activity. Verification passed: cargo fmt --all -- --check; RUSTFLAGS='-D warnings' cargo check --workspace --all-targets; cargo clippy --workspace --all-targets -- -D warnings; cargo test --workspace; native macOS Iced launch smoke test. The commit also makes pre-existing workspace gates deterministic on macOS (canonical temporary paths, a safe FIFO fixture, and injected keychain-unavailable test state).