Repository navigation
Description
Refs #13415, #9077. Policy: Drew's identity-linking policy, recorded on #13415 §3. Depends on the pending-link workstream (pending-link + account session).
1. Problem + context
The provider has no passkeys and no WebAuthn anywhere: sign-in is entirely the upstream doors (local, Google; GitHub/Microsoft pending registration), and the #9077 design note (doc/2026-11-23_design_fleet_sso_9077.md §4) explicitly listed "MFA/passkeys/OTP policy" as a non-goal. Drew's policy now brings passkeys into scope with a specific shape:
- A passkey ties to the way it was signed in — created under a given provider sign-in, associated with that login path — by default.
- The user is presented an option to make it distinct: its own login, separate from SSO.
- Users may create as many passkeys as they want and attach each to one or more SSO providers.
2. Goals / non-goals
Goals:
- WebAuthn registration + assertion ceremonies in the provider, with credentials stored against the account in the runtime store (alongside
identities, same audit discipline). - Each passkey records its binding: by default the sign-in path it was created under (provider identity / door); a user-visible option at creation (and changeable after) makes it a standalone login, bound to the account only.
- A passkey attached to one or more providers counts as a sign-in path for those providers' sessions (it can establish the account session, subject to the factor-policy workstream factor policy); a standalone passkey establishes the account on its own.
- Unlimited passkeys per account; per-passkey naming, listing, and revocation by the user from the account session; every ceremony and revocation audited.
Non-goals: recovery requests and account deletion (policy undecided — Drew; §8), passkey sync-provider attestation restrictions (accept platform + roaming authenticators; attestation is recorded, not gated, in v1), using passkeys as relying-party tokens (passkeys authenticate to the provider; apps still get OIDC tokens).
3. Alternatives
- Do nothing. Rejected: the policy asks for passkeys, and they are the second factor the factor-policy workstream needs to offer SSO+passkey and passkey+passkey combinations.
- Passkeys as just another identity row (provider =
passkey, subject = credential id) with no binding model. Simpler store, but it cannot express the policy's default tie to a sign-in path nor per-provider attachment — the binding is the point of the policy, so this loses the requirement. - Binding model as designed in §4 (chosen): a dedicated credential table with an explicit binding column (sign-in path | standalone) and an attachment set. More schema, but it states the policy directly and the account-merge workstream's merge audit can reason about it (credentials are many-per-account by design — merge-safe from day one).
4. Chosen approach
Data model: new passkeys table in the runtime store: credential id (primary key), account id, public key + sign count, binding (path | standalone), bound_provider/bound_subject (nullable, set when binding = path), attachment set (join table passkey_providers: credential id × provider — a passkey may attach to several providers; a standalone passkey's attachment set is empty and it binds to the account directly), user-given name, created/last-used timestamps, status (active | revoked). Events (passkey_register, passkey_rebind, passkey_attach, passkey_revoke, passkey_auth) go to the same append-only history/audit pattern as identity events.
Ceremonies: registration requires an established account session (from the pending-link workstream) — the session's sign-in path supplies the default binding, shown to the user with the explicit option to make the passkey distinct instead. Assertion: a path-bound passkey may authenticate sessions for its attached providers; a standalone passkey authenticates the account directly. Assertion results feed the factor evaluation in the factor-policy workstream (a passkey assertion is one factor; whether one suffices is that issue's policy, not this one's).
Security analysis: WebAuthn's origin binding and challenge-response are the control; the provider must verify attestation/assertion signatures, enforce RP-id = the provider's own origin, and clone-detect via sign count. The binding model adds one rule that matters: making a passkey standalone is an account-session act that is audited, because it widens what the credential can open (from one sign-in path to the whole account). Revocation is immediate and audited; a revoked credential's assertions are denied with an audit record, mirroring identity_unlinked.
5. Build slices (dependency-ordered, each with acceptance)
- Store + ceremony core.
passkeysschema, registration/assertion verification (a maintained WebAuthn library — no hand-rolled crypto), audit events. Acceptance: ceremony round-trips against a software authenticator in tests; sign-count clone detection proven by replay test. - Binding + attachment UX surface. Default-to-sign-in-path binding at registration, the distinct/standalone option, attach/detach to providers, list/rename/revoke from the account session. Acceptance: the policy's shapes all demonstrable — path-bound passkey, standalone passkey, one passkey attached to two providers, three passkeys on one account.
- Session establishment. Passkey assertion establishes the account session per its binding/attachments. Acceptance: standalone passkey alone reaches the account session; path-bound passkey reaches sessions for exactly its attached providers and no others.
6. Rollout + rollback
Additive: new tables only; accounts without passkeys are unaffected. Rollback = previous binary (passkey rows inert; door sign-in unchanged). No existing credential or identity data is migrated.
7. Verification plan
Crate tests with a software authenticator for every slice's acceptance; a live proof with a real platform authenticator on the laptop before close; audit-history inspection showing the full ceremony trail.
8. Open questions (named deciders)
- Recovery requests and account deletion policy — Drew (policy §6, undecided; a lost-passkey story is NOT designed here until he rules).
- Whether attestation should ever gate (e.g. require hardware keys for the owner account) — Drew.
- WebAuthn library choice — implementer (maintained, audited crate; named in slice 1's PR).
Dependencies
Depends on the pending-link workstream (account session + identity states) — ceremonies and binding acts live in that session. Feeds the factor-policy workstream (a passkey assertion is a factor there). Must satisfy the account-merge workstream's merge constraints: passkeys are unlimited-per-account and multi-provider by design, so no per-account uniqueness may be introduced here.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-24T01:26:24Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": null,
"model": null,
"lane_start_issues": [],
"workspace_ref": null,
"auth_subject": "archer",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Activity
developing-today commentedon Nov 24, 2026
CODE-5142
dezren39 commentedon Nov 24, 2026
Sibling map — filed together 2026-11-24 as the four workstreams of Drew's identity-linking policy (recorded on #13415):
Dependency order: (a) first; (b) builds on (a)'s account session; (c) builds on (a) + (b); (d) is independent of (a)–(c) mechanically, except its uniqueness audit (slice 1) should complete before (b)'s schema lands, and merge initiation uses (a)'s session. Issue bodies refer to siblings by workstream name; this comment is the number map.
dezren39 commentedon Nov 24, 2026
Triage verdict (2026-11-24, queue task 22483, lane xaltha): not startable yet — blocked on #13972, otherwise ready.
Fresh state checked 2026-11-24 ~08:15 UTC:
Routing: follow-on packet is slice 1 — store + ceremony core (
passkeysschema, registration/assertion verification via a maintained WebAuthn library, audit events; acceptance: ceremony round-trips against a software authenticator, sign-count clone detection proven by replay test), to be claimed once #13972 closes. Slices 2 (binding + attachment UX) and 3 (session establishment) follow in order. Size: 3 slices, feature-scale; no close-with-evidence applies — the work is real and specified, it is just gated.dezren39 commentedon Nov 24, 2026
Triage verdict (lane oc-code-02, queue task 22739, 2026-11-24): open feature, not yet implementable. Scope is WebAuthn registration and login with passkeys bound to the originating sign-in path by default; it depends on the pending-link workstream (pending-link + account session), which is not landed. No code packet routed now; it needs the pending-link prerequisite first. Tracking: #14158.