GeezerVison is showing github.com — impl(id): keyless-custody login — OIDC account-pointer binding and OPAQUE password login over a client-held ID key · Issue #13710 · developing-today/code
impl(id): keyless-custody login — OIDC account-pointer binding and OPAQUE password login over a client-held ID key #13710DescriptionSummary
Implement the keyless-custody login chosen by the #5885 feasibility record and assigned to parent #5684 to file: OIDC (Google) as an account-pointer binding and OPAQUE (RFC 9807) for username/password, both over one random, client-generated, client-held ID signing key. The authorizer never possesses or can use the user's ID signing key.
Design of record:
Scope
- Login binding enrolment: client signs the
"id/login-binding/v1" binding statement (ID public key, auth issuer + subject hash or OPAQUE account identifier, custody profile, recovery commitment hash); authorizer verifies and stores the public key, statement, and signature. Binding updates require a signature from the existing ID key or the id: design: 10 security codes recovery (custody variant c) (from #5684) #5888 recovery threshold — an authenticated OIDC session or a password reset is never sufficient.
- OIDC flow: authorization-code flow with PKCE; ID Token validated (issuer, audience, signature, expiry, nonce);
(iss, sub) used as the account pointer only. Login success fetches ciphertext artefacts; it never by itself authorises an ID operation.
- OPAQUE flow: an audited OPAQUE implementation for username/password; the random ID key is wrapped client-side under a key derived from the RFC 9807
export_key; the server stores the OPAQUE registration record and ciphertext only. The server OPRF seed is handled as high-entropy secret material (name only; never in code, logs, or this repo's artefacts).
- Challenge verification: for ID-authorised operations (login acceptance where the ID key is required, new-device enrolment), the authorizer issues a fresh nonce/audience/expiry-bound challenge; the client-held ID key signs; the authorizer verifies against the bound public key. New-device enrolment additionally names the requested pseudo-login scope in the signed challenge (composition with id: design: user-held keys (custody variant b) (from #5684) #5887 §4.3 and id: design: pseudo-login identities & scoped do-as delegation (variant d) (from #5684) #5889).
- Composition with existing code:
pkgs/id/src/key_envelope.rs already provides the local Argon2id/XChaCha20-Poly1305 passphrase envelope; reuse it for the wrapped-key storage rather than introducing a parallel envelope. Current AccountSignedUp's bearer-secret key reconstruction is explicitly not a precedent for this work (id: design: keyless-custody login feasibility (investigation) (from #5684) #5885).
Invariants (test oracles — from #5885)
- The authorizer never receives the unwrapped ID private key.
- Auth success alone never registers/replaces an ID key or expands delegation.
- Every key-binding/recovery mutation is signed by the current key or an explicit recovery threshold.
- Server-stored backup is ciphertext, and its offline-guessing assumptions are disclosed in user-facing copy.
- Password reset and OIDC-account recovery are never represented as identity recovery.
- Delegation stays least-privilege, expiring, revocable, with pseudo-login provenance preserved in raw records (full delegation implementation is the separate id: design: pseudo-login identities & scoped do-as delegation (variant d) (from #5684) #5889 slice; this issue must not mint standing delegations outside it).
Non-goals
Filing note (queue coverage)
Filed by lane felix from the #5684 parent synthesis (queue task 21487), per the tracked next action in #5885's decision record. Enqueued to the code pilot queue in the same pass by the filing lane. Activitydeveloping-today commented on Nov 23, 2026 dezren39 commented on Nov 23, 2026
Agent note — assessed, checkpointed, parked (lane oc-code-02). Fresh verification: issue OPEN, app/id only, no holds. No login/binding/OIDC/OPAQUE code exists yet in pkgs/id; the task's key_envelope.rs pointer is stale post crate-split, and Cargo.lock carries no opaque/oidc crates (dependency selection is itself a work item). Design of record (§4 binding/challenge construction, §11 filing) read. Checkpoint with the full assessment + suggested first sub-slice (dependency slice, then login-binding/v1 + invariant 2/3 tests) is on queue task 21509; parked 2h for a dedicated full-budget session. No PR from this run. dezren39 commented on Nov 25, 2026 Claimed by lane 3, 2026-11-25T01:12Z (fleet task 21509, slice 1: login-binding statement, registry and ID-key challenges; OIDC and OPAQUE flows follow as later slices).
Generated by Claude Code dezren39 commented on Nov 25, 2026 Progress from lane 3 (fleet task 21509): slices 1-3 merged in #14696 (squash ec521d1).
Landed in pkgs/id/crates/id-core:
login_binding: signed id/login-binding/v1 statement (ID key ↔ OIDC or OPAQUE account, custody profile, recovery commitment, generation chain), a registry for enrol/update (current-key or recovery-threshold authority), and single-use audience-bound ID-key challenges for login acceptance and device enrolment.
opaque_login: RFC 9807 OPAQUE (opaque-ke 4, Ristretto255 + Argon2); export_key wraps a random client-held ID key; wrong password and unknown account fail alike.
oidc_login: PKCE S256, auth URL, JWKS (RSA, EC P-256), strict RS256/ES256 ID-token validation; a valid token yields only an account pointer.
Verified remotely in dezren39/fleet#45529902802: 28 tests pass (including the #5885 invariant tests 1-6), no clippy findings in the new files.
Still open for this issue: wiring these into the id server routes and CLI (login endpoints, binding storage, challenge issue/verify), and persistent storage for the binding registry. Full delegation stays with #5889.
Generated by Claude Code dezren39 commented on Nov 26, 2026
Picked up by agent-next-20-local — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while agent-next-20-local posts progress markers; after 90 minutes of silence any other worker may pick this up.)
Resume #13710: fixed red-test scaffold after Fleet #45824466835; running fresh test in #45826140718, then implement redb persistence. dezren39 commented on Nov 26, 2026
Progress from agent-next-20-local: PR branch 74f0fc0 persisted signed binding history in redb; focused id-core and id-store tests dispatched to Fleet run pending submission. dezren39 commented on Nov 26, 2026
Progress from agent-next-20-local: Waiting for post-change Fleet verification run 45827726525 for signed-history replay and redb reopen/rotation. dezren39 commented on Nov 26, 2026
Progress from agent-next-20-local: Persistence PR work is current-main merged at 5d2fc30; final focused verification run 45840777034 is in progress. dezren39 commented on Nov 26, 2026
Progress from agent-next-20-local: Persistence branch merged main at 46c502a; final remote test run 45841575907 is in progress. dezren39 commented on Nov 26, 2026 Progress from lane agent-next-20-local (task 23926): PR #15635 merged as 87f76fa487dd1e105d138e2a1dedac309898a313.
The id-store now persists validated keyless login-binding history in redb. Restores replay each signed enrollment/update through the existing account, key-authority, and recovery checks; the store test reopened the database after enrollment and key rotation. No private signing keys are stored.
Evidence: Fleet run 45826140718 reproduced the gap (None after reopen); current-main Fleet run 45841575907 passed all 13 id-core login-binding tests and the id-store redb reopen/rotation test.
Issue #13710 remains open. Next slice: wire the OIDC/OPAQUE verified account and ID-key challenge flows into server routes and CLI, using the persistent binding store. dezren39 commented on Nov 26, 2026
Released by agent-next-20-local (outcome: free). PR #15635 merged with remote verification; #13710 remains open for server routes and CLI integration. developing-today commented on Nov 27, 2026
state: triaged — implementation remains active; two slices landed, route/CLI integration remains
lane: oc-code-02, task 25171
Fresh verification 2026-11-27:
Verdict: not complete; keep #13710 OPEN. This triage records the verified boundary and the next slice (wire server routes/CLI to persistent bindings and challenge flows); no duplicate PR or closure. The queue task is a 45-minute triage packet, not authorization to improvise the remaining cross-layer auth work. developing-today-fleet commented on Nov 27, 2026 🤖 Agent note · escalated
- Agent: fleet monitor
- Session / ID: repo-fleet-monitor cron run 2026-11-27 16:14 CST
- Found via: monitor reconciliation (Duty 4 protocol check)
- Task: Protocol gap: this item carries work/queue claim labels but NO comment contains the required agent-note:v1 footer (protocol §2/§6). The holding agent did not leave the required agent note. This gap needs a human/Muse review of why the protocol was not followed; the holder should post a proper agent note (pickup/checkpoint) or hand the item off.
- Expectation: holder posts an agent-note:v1 note or releases the item.
- Links: protocol ~/workspace/goals/keep-the-four-repos-healthy/files/agent-lifecycle-protocol-2026-10-25.md
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|