GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #13710

New issue
Copy link
New issue
Copy link
Backlog
Backlog
impl(id): keyless-custody login — OIDC account-pointer binding and OPAQUE password login over a client-held ID key#13710
Copy link
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)meta/protocol-gapAn agent touched this without the required agent-note comment or labels; needs review of whystatus/in-progressQueue worker lifecycle statestatus:in-reviewuser/reviewNeeds a user-look: Muse reviews first and handles what it canwork/assignedQueue worker lifecycle state

Description

@dezren39
dezren39
opened on Nov 23, 2026
Issue body actions

Summary

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:

  • Parent synthesis: doc/2026-11-23T20-55-00Z_design_id5684_identity_login_synthesis/ (design(id): identity, login & delegation — simplicity-first key custody, security-code recovery, and pseudo-login identities #5684), especially §4 (signed-hash construction), §5 (feasibility matrix), §11.
  • Feasibility + invariants: id: design: keyless-custody login feasibility (investigation) (from #5684) #5885 decision record (2026-11-08).
  • Genesis artefact it builds on: id: design: native ID creation & setup ceremony (from #5684) #5884 SetupStatement (doc/2026-11-08T23-17-06Z_design_id_setup_ceremony/).
  • Custody variants it serves: id: design: user-held keys (custody variant b) (from #5684) #5887 (b, user-held blob), id: design: pseudo-login identities & scoped do-as delegation (variant d) (from #5684) #5889 (d, pseudo-login grants).

Scope

  1. 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.
  2. 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.
  3. 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).
  4. 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).
  5. 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)

  1. The authorizer never receives the unwrapped ID private key.
  2. Auth success alone never registers/replaces an ID key or expands delegation.
  3. Every key-binding/recovery mutation is signed by the current key or an explicit recovery threshold.
  4. Server-stored backup is ciphertext, and its offline-guessing assumptions are disclosed in user-facing copy.
  5. Password reset and OIDC-account recovery are never represented as identity recovery.
  6. 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

  • The custody-variant implementations themselves (setup ceremony id: design: native ID creation & setup ceremony (from #5684) #5884 §13, variant (a) signing service, variant (b) blob UX, recovery codes id: design: 10 security codes recovery (custody variant c) (from #5684) #5888, grants id: design: pseudo-login identities & scoped do-as delegation (variant d) (from #5684) #5889, management UX id: design: identity management UX (from #5684) #5890) — named as the parent synthesis §11 programme; this issue is the login layer they compose with.
  • Acting as an OIDC provider (that is story: our own OIDC/SAML/SSO identity provider #13658's workstream, a different direction).

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.

Activity

Next
  1. dezren39
    added
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Nov 23, 2026
  2. developing-today commented on Nov 23, 2026

    @developing-today
    developing-todayBot
    on Nov 23, 2026 – with developing.today
    Contributor
    More actions

    CODE-5026

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    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.

  4. dezren39 commented on Nov 25, 2026

    @dezren39
    dezren39
    on Nov 25, 2026 – with Claude
    MemberAuthor
    More actions

    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

  5. developing-today
    added
    status:in-review
    on Nov 25, 2026
  6. developing-today-fleet
    added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    on Nov 25, 2026
  7. dezren39
    added 3 commits that reference this issue on Nov 25, 2026

    feat(id): OPAQUE password login over a client-held ID key (#13710 sli…

    7c9ccfd

    feat(id): OIDC code+PKCE login with ID Token validation (#13710 slice 3)

    670f62c

    feat(id): login binding, ID-key challenges, OPAQUE and OIDC login (#1…

    ec521d1
  8. dezren39 commented on Nov 25, 2026

    @dezren39
    dezren39
    on Nov 25, 2026 – with Claude
    MemberAuthor
    More actions

    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

  9. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    MemberAuthor
    More actions

    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.

  10. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    MemberAuthor
    More actions

    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.

  11. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    MemberAuthor
    More actions

    Progress from agent-next-20-local: Waiting for post-change Fleet verification run 45827726525 for signed-history replay and redb reopen/rotation.

  12. 9 remaining items

  13. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    MemberAuthor
    More actions

    Progress from agent-next-20-local: Persistence PR work is current-main merged at 5d2fc30; final focused verification run 45840777034 is in progress.

  14. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    MemberAuthor
    More actions

    Progress from agent-next-20-local: Persistence branch merged main at 46c502a; final remote test run 45841575907 is in progress.

  15. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    MemberAuthor
    More actions

    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.

  16. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    MemberAuthor
    More actions

    Released by agent-next-20-local (outcome: free). PR #15635 merged with remote verification; #13710 remains open for server routes and CLI integration.

  17. dezren39
    added
    queue/queuedHas a queued queue task
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 26, 2026
  18. developing-today-fleet
    added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed
    queue/queuedHas a queued queue task
    on Nov 26, 2026
  19. developing-today commented on Nov 27, 2026

    @developing-today
    developing-todayBot
    on Nov 27, 2026 – with developing.today
    Contributor
    More actions

    state: triaged — implementation remains active; two slices landed, route/CLI integration remains
    lane: oc-code-02, task 25171

    Fresh verification 2026-11-27:

    • PR feat(id): login binding, ID-key challenges, OPAQUE and OIDC login (#13710 slices 1-3) #14696 MERGED 2026-11-25 — login-binding statement, ID-key challenges, OPAQUE and OIDC login (slices 1–3).
    • PR feat(id): persist keyless login bindings #15635 MERGED 2026-11-26 at 87f76fa487dd1e105d138e2a1dedac309898a313 — persists validated login-binding history in redb; restore replays signed enrollment/update checks, and stores no private signing key. Focused current-main tests passed per the recorded evidence.
    • No open PR currently references impl(id): keyless-custody login — OIDC account-pointer binding and OPAQUE password login over a client-held ID key #13710. The latest implementation progress note on this issue explicitly names the next slice: server routes / CLI integration (the remaining acceptance), and says this issue remains open.

    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.

  20. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    🤖 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
  21. developing-today-fleet
    added
    user/reviewNeeds a user-look: Muse reviews first and handles what it can
    meta/protocol-gapAn agent touched this without the required agent-note comment or labels; needs review of why
    on Nov 27, 2026
  22. dezren39
    removed
    queue/claimedQueue worker lifecycle state
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/idPackage/app: id (pkgs/ or apps/ in this repo)meta/protocol-gapAn agent touched this without the required agent-note comment or labels; needs review of whystatus/in-progressQueue worker lifecycle statestatus:in-reviewuser/reviewNeeds a user-look: Muse reviews first and handles what it canwork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.