From 4365908d4cb18f356a20f906f3ddba77ad221544 Mon Sep 17 00:00:00 2001 From: astar76 Date: Wed, 18 Nov 2026 07:15:13 -0600 Subject: [PATCH] S067: passwords page asks for the computer password without a master password (PAM login service, faillock-aware throttle, D-052); same check guards reveal, copy, edit, export, master password Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 2 +- Plans/10 Hardening/S067-os-password-gate.md | 10 +- docs/DECISIONS.md | 2 +- docs/DESIGN.md | 12 +- docs/PROGRESS.md | 10 + src/auth.rs | 385 ++++++++++++++++++++ src/main.rs | 1 + src/selftest.rs | 8 + src/store/vault.rs | 8 +- src/ui/pages/mod.rs | 8 +- src/ui/pages/passwords.rs | 119 +++++- src/ui/pages/settings.rs | 2 +- tests/smoke/nacre-lock.txt | 20 +- 13 files changed, 549 insertions(+), 38 deletions(-) create mode 100644 src/auth.rs diff --git a/CLAUDE.md b/CLAUDE.md index 48710cc..960221e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -64,7 +64,7 @@ Never modify: `~/Documents/Apps/Nacre` (the original Python Nacre, reference onl | `nice cargo build --release -j 2` | compile check, produces `target/release/nacre` | now | | `nice cargo test --release -j 2` | unit tests (44, ~16 s test-profile build then <1 s run; shares the S001 build) (util, settings, history, bookmarks, permissions, vault, dns, bridge loopback, download, adblock, keys, scripts, updates, inject, hub, theme, ui::widgets input, ui::paint, ui::pages::newtab) | first successful build; not alongside a build | | `src/selftest.rs` | in-app self test: `NACRE_SCRIPT=` runs script commands (listed at its top) | now | -| `tools/smoke.sh