Add trusted identity: passkeys, sessions, recovery and admin approval (#9) #42
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/rag-rust!42
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/9-identity-implementation"
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?
Implements issue #9 (F04): app-managed passkey identity for controlled on-premises use, following the design and plan. Group-aware policy enforcement across protected operations stays with #10.
This does not authorize operational or classified data. The identity source, proofing, passkey classes, relay, session/CSRF/recovery profiles, administrative separation and revocation deadline still need the decision-issue #2 approvals. Production startup stays blocked; synthetic development only.
What it adds
VerifiedSubject.pending_approval; an administrator must explicitly approve, and approval can only reduce what an invitation proposed.webauthn-rspasskey registration, sign-in and add/remove, with required user verification and server-side challenge state. Sign-in for unknown, pending or suspended addresses returns indistinguishable decoy options.__Host-HttpOnly Secure SameSite=Strict cookie with matchingMax-Age, rotation on each sign-in,/auth/me, logout, and anActiveSubjectextractor that rereads the canonical account on every request.docs/operations/identity.md.Verification (this branch, local PostgreSQL 17)
cargo fmt --all -- --check,cargo clippy --workspace --all-targets --locked -- -D warnings: clean.cargo test --workspace --locked: 46 passed, 57 ignored (the PostgreSQL suites).bash scripts/test-postgres.sh --local: 30 identity, 14 foundation, 9 recovery, 4 administrator tests passed.bash scripts/coverage.sh rust: 88.45% line coverage (gate 80%).web/:npm run typecheck,npm test(22 tests),npm run buildclean; line coverage 96.7% (gate 80%).Known gaps
Readaction until policy administration (#14); no compartments or need-to-know are assigned here.Admin sessions must be signed in within
IDENTITY_ADMIN_REAUTH_MAX_AGE_SECONDS(default 300), so administrators will be asked to sign in again often.Refs #9, #2, #10.
🤖 Generated with Claude Code