docs: ADR-012 step-up trusts IdP AMR/acr; ADR-003 client passkey mechanics #123

Merged
amiryahaya merged 1 commit from docs/adr-012-stepup-amr into main 2026-11-08 15:43:17 +01:00
Owner

Passkey-pivot documentation from the 2026-11-08 discussion (companion to ADR-011's Redis drop, already merged):

  • ADR-012 (new): step-up trusts IdP-asserted authentication context. With Zitadel realm policy enforcing MFA (passkey-first; platform-admins realm disables the email fallback), the id_token's amr/acr/auth_time is authoritative — a realm-asserted passkey/OTP factor satisfies IDA-05 step-up without Drive-side TOTP setup. Today's TotpEnabled-only gate would wrongly demand TOTP enrollment from an admin who just completed a passkey ceremony. Drive-side TOTP is scoped to: legacy wallet-admin gate (until ADR-006 decommission), bootstrap break-glass (#91), trustee approvals (KEY-17). Code impact: OidcTokenValidator amr parsing, OidcVerify/Authenticate gating order, FakeIdpServer amr-bearing test tokens — lands with task 2.2.
  • ADR-003 refinement: client-surface mechanics — web (native best surface), mobile (browser-sheet ceremony; daily UX is local biometric unlock so friction is amortized), desktop Tauri (system browser only; never WebAuthn in the embedded webview — WKWebView lacks WebAuthn prompts, WebView2 inconsistent). Passkeys never touch the key hierarchy; Drive's possession factor stays biometric unlock + device-bound wraps.
  • SRS IDA-05 + dev plan task 2.2 updated with the ADR-012 leg and test criteria.

Docs-only — api-ci paths filter skips docs; security-ci runs on every PR and is the gate.

Passkey-pivot documentation from the 2026-11-08 discussion (companion to ADR-011's Redis drop, already merged): - **ADR-012** (new): step-up trusts IdP-asserted authentication context. With Zitadel realm policy enforcing MFA (passkey-first; platform-admins realm disables the email fallback), the id_token's amr/acr/auth_time is authoritative — a realm-asserted passkey/OTP factor satisfies IDA-05 step-up without Drive-side TOTP setup. Today's TotpEnabled-only gate would wrongly demand TOTP enrollment from an admin who just completed a passkey ceremony. Drive-side TOTP is scoped to: legacy wallet-admin gate (until ADR-006 decommission), bootstrap break-glass (#91), trustee approvals (KEY-17). Code impact: OidcTokenValidator amr parsing, OidcVerify/Authenticate gating order, FakeIdpServer amr-bearing test tokens — lands with task 2.2. - **ADR-003 refinement**: client-surface mechanics — web (native best surface), mobile (browser-sheet ceremony; daily UX is local biometric unlock so friction is amortized), desktop Tauri (system browser only; never WebAuthn in the embedded webview — WKWebView lacks WebAuthn prompts, WebView2 inconsistent). Passkeys never touch the key hierarchy; Drive's possession factor stays biometric unlock + device-bound wraps. - **SRS IDA-05** + **dev plan task 2.2** updated with the ADR-012 leg and test criteria. Docs-only — api-ci paths filter skips docs; security-ci runs on every PR and is the gate.
docs: ADR-012 step-up trusts IdP AMR/acr; ADR-003 client-surface mechanics
All checks were successful
Security CI / security-scan (pull_request) Successful in 2m35s
3ee403ba05
Passkey-pivot documentation from the 2026-11-08 discussion:
- ADR-012 (new): IdP-asserted MFA factors (amr/acr/auth_time in the
  validated id_token) satisfy admin step-up (IDA-05); the current
  TotpEnabled-only gate would wrongly demand TOTP setup from an admin who
  just completed a realm-enforced passkey ceremony. Drive-side TOTP
  survives only as legacy wallet-admin gate, bootstrap break-glass (#91),
  trustee-approval step-up (KEY-17). Code impact listed (OidcTokenValidator
  amr parsing, OidcVerify/Authenticate gating order, FakeIdpServer amr
  tokens) — lands with task 2.2.
- ADR-003 refinement: per-platform client mechanics — web native, mobile
  browser-sheet with daily biometric unlock, desktop system-browser only
  (never WebAuthn in the embedded webview: WKWebView lacks prompts,
  WebView2 inconsistent); passkeys never touch the key hierarchy.
- SRS IDA-05: acceptance criteria extended for IdP-asserted factors.
- Dev plan task 2.2: ADR-012 leg added.
Sign in to join this conversation.
No description provided.