mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-11-05 20:32:05 +00:00
1.8 KiB
1.8 KiB
SeedPass Auth, Lock/Unlock & Access-Control Review (Item 6)
Status: In Progress
Date: 2026-02-25
Scope Reviewed
src/seedpass/core/manager.pysrc/seedpass/api.pysrc/seedpass/core/api.pysrc/seedpass/core/config_manager.py
Exit Criteria Check (Item 6)
- Lock/unlock/timeout/quick unlock behavior reviewed with tests:
In Progress
Findings
Completed in this pass
- Added explicit locked-state gate for protected HTTP API routes.
- Sensitive endpoints now reject access with
423 Vault is lockedwhen lock flags are set.
- Sensitive endpoints now reject access with
- Added explicit HTTP unlock endpoint.
- New route:
POST /api/v1/vault/unlockusingX-SeedPass-Password.
- New route:
- Added API regression tests for lock enforcement and unlock flow.
- Entry/password endpoints blocked while locked.
- Unlock endpoint clears locked state path.
Validation
pytest -q src/tests/test_api_new_endpoints.py src/tests/test_api.py src/tests/test_vault_lock_flag.py src/tests/test_inactivity_lock.py src/tests/test_unlock_sync.py- Result:
62 passed
Existing posture
- Core manager has
lock_vault()/unlock_vault()and publishes lock events. - Inactivity timeout enforcement exists via
AuthGuard. - Quick unlock behavior is configurable and covered by existing tests.
Remaining follow-up
- Decide whether non-sensitive API routes (config/fingerprint/relays) should also require unlocked state.
- Add API-level test coverage for timeout-triggered lock then unlock flow.
- Evaluate rate-limit tuning and brute-force controls for repeated password attempts on unlock endpoints.
Evidence
src/tests/test_api_new_endpoints.pysrc/tests/test_vault_lock_flag.pysrc/tests/test_inactivity_lock.pysrc/seedpass/api.pysrc/seedpass/core/manager.py