IDIP child spec: self-sovereign identity (KERI/ACDC) as a founding-time alternative to kanidm behind the OIDC seam #767
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#767
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Parent
Wayfinder map: #725 — IDIP as a core identity alternative to kanidm (closed 2026-08-24; every decision needed here is ruled — ADRs 0194–0199, 0201, DDR 0200, research #726–#728, prototype #732).
Problem Statement
A community founder who wants their members to truly own their identities has no way to get that from IDSS today. Founding always stands up kanidm: members prove who they are with a password an administrator can reset, and the community's identity records live in an IdP database the operator controls. For communities whose whole reason to self-host is sovereignty — no resettable accounts, no administrator who can impersonate a member, identity that survives the community's own infrastructure — that is the wrong substrate, and the wider Mātou programme (matou-app) already runs the right one: KERI/ACDC, where members hold their own keys and membership is a verifiable credential.
Solution
Founding asks one identity question. On a dedicated screen between Brand kit and Access, the founder answers "How will members prove who they are?" — Passwords & passkeys (kanidm, preselected, one click through, byte-identical to today) or Self-sovereign identity (IDIP). Choosing IDIP swaps which core service answers behind the ADR 0016 OIDC seam and nothing else: the gateway runs KERIA (+ witness + credential schema server) and an IDSS-owned OIDC bridge (
idss-idp) atid.<apex>instead of kanidm, and every catalogue service, the auth gate, and Netbird keep consuming OIDC at the same door, noticing nothing.Instead of setting an admin password, the founder writes down a 12-word recovery phrase (shown once, confirmed by re-typing three words) before Create fires. Stand-up provisions the IDIP services, then — driven by signify-ts in the operator app's renderer, never by gateway-held keys — boots the founder's agent, mints their witnessed AID, incepts the community's group AID as a 1-of-1 native multisig, creates the credential registry, and issues the founder's membership credential with
role: operator. Members join through a single-use invite link in a plain browser: twelve words generated client-side, an AID minted on the community's KERIA, and a membership ACDC issued by a steward on approval. Standing lives in the registry: suspension is revocation, sign-in is a key challenge plus credential presentation at the bridge, and the whole identity is one port-declared backup dataset that restores atomically with the members roster.User Stories
Founding — the identity question (P1-S3a; ADR 0194)
As a founder, I want founding to ask me one identity question with a recommended default, so that I can choose self-sovereign identity without the default path costing anyone else a single extra thought.
As a founder, I want my identity choice to be re-choosable while it is still cheap and fixed once it is not, so that I can change my mind before deploy but never wreck a live community.
As a founder on the IDIP path, I want the wizard's step numbering to reflect my path, so that progress reads honestly.
The founder ceremony (P1-S6a; ADR 0195, DDR 0200)
As a founder on the IDIP path, I want the recovery phrase shown once and confirmed before anything is created, so that stand-up can never start with my identity unsaved.
As a founder, I want a fresh set of words on demand, so that I can discard a phrase I may have exposed.
As a founder, I want the app to keep only what daily use needs, so that my recovery phrase exists nowhere but on my paper.
As a founder, I want an abandoned ceremony to leave nothing dangerous behind, so that returning later is safe.
Stand-up (carrier + identity legs; DDR 0200, ADRs 0196–0198)
As a founder on the IDIP path, I want the gateway's seed leg to provision the identity stack instead of kanidm, so that the community's key infrastructure is declaratively owned like every other core service.
idss-idp— each with its own unit and declared health check (ADR 0112) — and no kanidm./bootgated by invite-token forward-auth; the witness's TCP port stays private.As a founder, I want the identity legs to run only after the doors are proven live, so that agent boot never races TLS.
role: operator.As a founder, I want to watch identity stand up in the same honest checklist as everything else, so that the IDIP path feels like founding, not a side quest.
As a security-conscious community, I want no identity keys on the gateway or in the control plane, so that compromise of the infrastructure never equals compromise of identities.
Sign-in and the OIDC bridge (
idss-idp; ADRs 0196, 0199; prototype #732)As a member of an IDIP community, I want to sign in to any community service with my twelve words, so that one identity opens every door.
id.<apex>, Then the bridge's sign-in page accepts their recovery phrase, reconnects their agent from the derived passcode, runs the KERI challenge/response, verifies their membership ACDC (right issuer, right schema, TEL issued-not-revoked via the issuer-side check), and completes the OIDC code flow back to the service.As a member whose community is degraded, I want sign-in to survive a witness outage, so that a flaky witness never locks the community out.
As a waiting (not-yet-approved) member, I want the bridge to refuse me honestly, so that "awaiting approval cannot authenticate" holds on IDIP exactly as on kanidm.
As an operator, I want the bridge to wear my community's brand natively, so that members always know whose door they are at.
As a catalogue service (or the auth gate, or Netbird), I want to consume OIDC at
id.<apex>exactly as with kanidm, so that the identity substrate is invisible to me.subis the member's AID prefix (stable across key rotation);preferred_username,name,emailcome from the membership ACDC; and groups mirror kanidm 1:1 — membership =members,role: operator=operators, each committee credential =committee:<slug>.As a community, I want revocation to bite within a bounded window, so that suspension means suspended.
As an operator, I want the bridge to be stateless about people, so that losing it loses nothing that matters.
Member lifecycle (ADR 0198)
As a steward, I want to invite someone with a single-use link, so that joining stays as frictionless as today.
/bootdoor: no live invite token, no agent boot, no drive-by AID minting.As an invitee, I want to join from a plain browser with no wallet app, so that the doorway to self-sovereign identity is a link.
As a steward, I want to approve a waiting member alone, so that nobody waits on a committee to get in.
kt = 1of N) through the multisig exchange, the grant is gated on witness receipt of the group anchor, and the member becomes active.As an operator, I want suspension to pause access everywhere in one switch, so that ADR 0074's contract holds on IDIP.
As an operator, I want removal to un-member without pretending to erase, so that the community is honest about what a KEL is.
As an operator, I want committee membership independently grantable and revocable, so that komiti changes never touch core membership.
committee:<slug>from their groups and nothing else.As an operator, I want the roster to be runtime people, so that a redeploy can never delete a member.
Stewards and the group AID (ADR 0197)
As a founder, I want the community's key machinery exercised from day one, so that adding stewards later can't hit an untested path.
As a steward, I want to add a second steward as a v1 feature, so that the community isn't one lost phrase from ending.
role: operatorso theoperatorsgroup tracks the steward set.As a community, I want issuance cheap and control-changes deliberate, so that daily membership work never waits while takeovers can't happen quietly.
kt = 1of N); Given rotation (adding/removing stewards, key changes), Then a majority of N must co-sign.Rescue (ADRs 0195, 0201 — the 0088 ladder)
As a founder who lost the device but kept the phrase, I want full recovery from the twelve words, so that paper is a real backup.
As a founder who lost the phrase but still has a signed-in device, I want to re-key now, so that a lost paper isn't a countdown to disaster.
As a founder who lost both, I want an honestly-named end state, so that nobody sells me false hope.
As a community that never configured backups and lost its gateway, I want identities to survive anyway, so that only what genuinely can't be saved is lost.
Backup and restore (ADR 0201)
As an operator, I want the community identity to be one dataset in the backup engine, so that P7's coverage story includes the most precious thing.
As an operator restoring a rebuilt gateway, I want identity and roster back in one act, so that the bridge can never be lied to by a mismatch.
Honest limits (ADR 0199)
Implementation Decisions
id.<apex>. Catalogue services, the auth gate, the front door's routes, and thegate-oidcclient shape do not change.idss-idp, a separate Go binary wrappingzitadel/oidc/v3'soppackage (ory/fositeis the fallback if the API fights us; never hand-roll the OIDC surface). Own systemd unit + declared health check (ADR 0112), provisioned in Nix the way the kanidm block is, served atid.<apex>— kanidm's slot. Its OIDC clients are declared in Nix. Verification is a thin verifier against the gateway's KERIA (vlei-verifier's checks as the reference).IsIssued) and consulted by the bridge at sign-in and on every refresh. (KERIA 0.4.0 propagation is a build-time check; the issuer-side check is correct regardless.)/bootgate), the roster, orchestration state, andIsIssued./multisig/*exchange on every group event from inception (1-of-1). Issuance/revocation atkt=1of N; rotation by majority. "Add a steward" is v1. Stewards == operators, kept consistent by re-issuing the membership ACDC on rotation (agent-ruled two-way door)./bootbehind invite-token forward-auth; witness TCP private. The identity stand-up legs are sequenced after the carrier's door probe (liveBoxHost gate) so agent boot never races TLS.communityName: MATOUas a const) — membership (withrole, optionalemail) and per-committee; served by the community's schema server, which must be gateway-reachable for member agents.sub= AID prefix; profile claims from the membership ACDC; groups mirror kanidm 1:1 (members,operators,committee:<slug>— one ACDC per committee, independently revocable). Rejected: agroupslist inside one ACDC.Testing Decisions
A good test proves external behaviour at a seam, never implementation detail. Four seams, all pre-existing; no new seam classes:
--drivefounding and nextcloud journeys. The kanidm path's drive must stay green untouched — the strongest regression statement the seam ruling makes.idss-idpproven at its public surface: discovery, auth-code + PKCE, claims/groups content, refusal of a credential-less AID, refresh with the issuer-side re-check, revocation mid-session. Prior art: the smoke-idp pattern — a faithful in-process double for CI plus the real stack on the clan-lab; the prototype's flow script is the reference for the double's KERI conversation.IsIssuedcontract. Prior art: the kanidm adapter's contract tests and the memberorbit projection tests.IsIssuedafter restore). Prior art: smoke-backups.The signify-ts renderer legs get no seam of their own — they are proven through the drive — with one unit-level exception: the mnemonic → passcode → AID determinism claim (the ADR 0201 rung's named verification).
Out of Scope
Further Notes
/identity/set,/spaces/*, space-invites smuggled in IPEX, and X-User-AID RBAC. Its live reds are this spec's guardrails: multi-stewardkt=1issuance without the exchange forks the KEL (hence ADR 0197's native multisig), escrow until witness receipt, rc1 never saving received ACDCs.Blocked — this is a child spec, not an implementable slice
This issue is a
/to-specchild spec (Phase 1 of the design-to-agent pipeline — its own title says "IDIP child spec"), but it is labelledready-for-agent(Phase 3). A Sandcastle swarm worker cannot implement it, for two structural reasons:docs/PROCESS.md, "what makes an issue agent-ready") requires every agent-ready issue to carryinterface,seam,acceptance,depends_on,out_of_scope, andneeds_human_decision: []. This issue carries none — it is the feature spec, not a slice manifest.idss-idpprovisioning, the OIDC bridge, the keria member-orchestrator adapter, member lifecycle, native multisig stewards, the rescue ladder, and backup/restore). The spec itself carries a "Sequencing note for the slice map" and describes several independently-buildable slices converging on the drive last. Sandcastle implements one slice per iteration.What a human must do to re-arm (the Phase-2 → Phase-3 tail, per
docs/PROCESS.md):/slice-map— fold this spec into the dependency DAG, producingdocs/slices/idip.{mermaid,yaml}(currently absent — slice-map has not run for IDIP). Human gate: confirm the graph, especially the cross-feature edges into the existing founding / provisioning / members / backups slices./to-tickets— emit one issue + task manifest per IDIP slice, withdepends_onblocking edges onto the tracker./triage— route each emitted slice toready-for-agent/ready-for-human/needs-design.The per-slice issues that
/to-ticketsemits are what the swarm then picks up. This spec issue should not be relabelledready-for-agentagain — it stays as the parent spec that the sliced tickets link to.Removing
ready-for-agent, addingagent-blocked, and releasing my claim.Relabelled
ready-for-agent→no-triage: the blocking comment above is right — this is a child spec (Phase 1 output, /to-tickets input), not an implementable slice. The slice map now exists (docs/slices/idip.{yaml,mermaid}, commit1553cc7, Ben-confirmed); /to-tickets will emit the implementable tickets + task manifests from it, and those carryready-for-agent./to-tickets ran over
docs/slices/idip.yaml(commitf81b31b): tickets #771–#788, one per slice, task manifests + 30 native dependency edges,ready-for-agent— the swarm frontier is #771 keri-stack-nix, #772 keri-client-core, #773 credential-schemas, #774 founding-s3a-identity; apex is #788 idip-e2e-drive. The yaml now carriesticket:numbers and the living map links them.