The Doorkeeper identity: seeded, sidecar-driven, vouched for by the community identity, rescued with it #1300

Closed
opened 2026-09-07 19:42:17 +00:00 by ben · 2 comments
Owner

Parent

Map: The community wallet: matou-app holds and presents IDIP credentials, and the Coa and IDSS setups are paired (#1293)

Question

Decide the Doorkeeper identity: booted at seeding (like the founder's first boot, ADR 0212 amendment) on the gateway's KERIA as a single-sig AID with the gateway's witnesses; owned by which unit (the bridge, via a signify sidecar — the ADR 0200 amendment that allows a server-side signify for a non-issuing identity); how the community identity vouches for it (delegation vs issued credential vs descriptor-named, from the research); how a wallet stores and shows it (a named contact, "the Ngāti X door", authenticated once by mutual challenge?); its place in the rescue dataset (ADR 0201) and what a restored gateway does (re-derive from the stored passcode vs mint a new doorkeeper and re-vouch); what the bridge does when the sidecar is down (fail closed, the browser twelve-words door as the fallback until retired). Output: an ADR (this repo) + the descriptor field it adds.

Reworded by ADR 0235 (2026-09-10, #1298)

The Doorkeeper is a pure verifier: it receives no registrations, issues no sign-in challenge (the bridge does — ADR 0212 §1, delivered by QR/deep link), holds no credential copies. Decide only: seeding it (its AID on the gateway KERIA, passcode in the ADR 0201 dataset), the verifier sidecar (signifypy per research #1299 / #1387) that accepts the wallet’s IPEX presentation and answers the bridge over loopback, how it resolves the community group AID / schema OOBIs / community.registry from the descriptor, vouching by the community identity (research #1299: delegation vs credential), and rescue. Blocked by research #1387 (verification mechanics on the pinned stack).

## Parent Map: [The community wallet: matou-app holds and presents IDIP credentials, and the Coa and IDSS setups are paired](https://git.matou.nz/Matou/idss/issues/1293) (#1293) ## Question Decide the **Doorkeeper identity**: booted at seeding (like the founder's first boot, ADR 0212 amendment) on the gateway's KERIA as a single-sig AID with the gateway's witnesses; owned by which unit (the bridge, via a signify sidecar — the ADR 0200 amendment that allows a server-side signify for a non-issuing identity); how the community identity vouches for it (delegation vs issued credential vs descriptor-named, from the research); how a wallet stores and shows it (a named contact, "the Ngāti X door", authenticated once by mutual challenge?); its place in the rescue dataset (ADR 0201) and what a restored gateway does (re-derive from the stored passcode vs mint a new doorkeeper and re-vouch); what the bridge does when the sidecar is down (fail closed, the browser twelve-words door as the fallback until retired). Output: an ADR (this repo) + the descriptor field it adds. ## Reworded by ADR 0235 (2026-09-10, #1298) The Doorkeeper is a **pure verifier**: it receives no registrations, issues no sign-in challenge (the bridge does — ADR 0212 §1, delivered by QR/deep link), holds no credential copies. Decide only: seeding it (its AID on the gateway KERIA, passcode in the ADR 0201 dataset), the verifier sidecar (signifypy per research #1299 / #1387) that accepts the wallet’s IPEX presentation and answers the bridge over loopback, how it resolves the community group AID / schema OOBIs / `community.registry` from the descriptor, vouching by the community identity (research #1299: delegation vs credential), and rescue. Blocked by research #1387 (verification mechanics on the pinned stack).

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime.

Ruling: apply no-triage. This is a /wayfinder-pipeline ticket (a child of map #1293), not work for the triage state machine. It moves through the wayfinder fan-out (grill-ux-with-docs → wireframe → to-spec) one ticket per session under /wayfinder; the triage state roles (ready-for-agent / needs-design / etc.) do not apply until this feature reaches to-tickets. no-triage tells triage automation to skip it so it is not repeatedly re-surfaced as untriaged.

Why a two-way door: a single additive label, reverted by removing it. It widens no security posture, destroys no data, spends nothing, and touches no credential or member-facing trust surface.

What proves it: the established precedent — the existing wayfinder map #262 carries exactly this pairing (no-triage + wayfinder:map). These tickets are owned by the wayfinder pipeline in docs/agents/issue-tracker.md (Wayfinding operations), not by triage.

> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** **Ruling:** apply `no-triage`. This is a `/wayfinder`-pipeline ticket (a child of map #1293), not work for the triage state machine. It moves through the wayfinder fan-out (`grill-ux-with-docs` → `wireframe` → `to-spec`) one ticket per session under `/wayfinder`; the triage state roles (`ready-for-agent` / `needs-design` / etc.) do not apply until this feature reaches `to-tickets`. `no-triage` tells triage automation to skip it so it is not repeatedly re-surfaced as untriaged. **Why a two-way door:** a single additive label, reverted by removing it. It widens no security posture, destroys no data, spends nothing, and touches no credential or member-facing trust surface. **What proves it:** the established precedent — the existing wayfinder map #262 carries exactly this pairing (`no-triage` + `wayfinder:map`). These tickets are owned by the wayfinder pipeline in docs/agents/issue-tracker.md (Wayfinding operations), not by triage.
ben self-assigned this 2026-09-11 04:14:06 +00:00
Author
Owner

Resolution — ADR 0236 (Ben's ruling, 2026-09-11; landed d65ff9f6)

There is no Doorkeeper identity. The sign-in bridge verifies a presented credential in Go against the issuer's witnessed ledger, read from the community witness. Seeding, the signify sidecar, vouching and the rescue entry all fall away; ADR 0200's "no Go signify" stands (bytes, not an agent client).

  1. No identity, no sidecar. idss-idp checks the wallet's signature over the challenge, recomputes the credential's and issuance event's SAIDs, finds the iss seal and no rev seal in the issuer's witnessed KEL (witness GET /query, unsigned), matches the schema, and asserts holder a.i == the signing AID. Golden vectors from keripy pin the digests. Option A (AID + signifypy) rejected: one more identity to seed/rescue/re-vouch, a saved copy per presentation, two runtimes, and a door passcode an attacker could steal to impersonate the door.
  2. The wallet posts the bare credential CESR stream (credentials().get(said, includeCESR=true)) with its signed challenge in ADR 0212's presentation field — the GLEIF vLEI-verifier convention, no IPEX wrapper. Present-as-holder is built general: the same export answers an IPEX apply from any identity-bearing verifier with a grant from stored attachments, and posts raw to an HTTP door. The bridge's request names the schema it wants.
  3. Trust list. The verifier runs over (issuer, issuer OOBI, schema SAID, schema OOBI) rows; v1 pinned to the community identity + the two gateway schemas. Another issuer is a row + a rule, never a verifier change. The operator-editable list is out of scope on this map.
  4. Ledger unreachable → fail closed, plain message, dashboard standing check, no cached verdicts.
  5. Descriptor: doorkeeper{aid,oobi} retires, signin{url} arrives. The wallet keeps known doors — the home door pre-trusted from the descriptor, any other added once by first-contact consent ("a door you haven't met") and remembered; it never presents to a door it does not know. The challenge signature covers the door's address (idss-idp:<door url>:<aid>:<nonce>), so a harvested signature is worthless elsewhere.
  6. The bridge keeps no copy; a session records only SAID/schema/issuer/claims; mid-session revocation lands when the session lapses (#1302 may shorten).
  7. "Doorkeeper" stays as the name of the bridge's verifier role, not an identity. The browser door verifies through the same path once it presents (#1302 rules its retirement).

Amends ADR 0212 §1–2, ADR 0226 §5–6, ADR 0235 §5; charting ruling 4 reversed. CONTEXT.md: Doorkeeper rewritten, Known door added. Detail: ADR 0236.

## Resolution — ADR 0236 (Ben's ruling, 2026-09-11; landed `d65ff9f6`) **There is no Doorkeeper identity.** The sign-in bridge verifies a presented credential **in Go** against the issuer's witnessed ledger, read from the community witness. Seeding, the signify sidecar, vouching and the rescue entry all fall away; ADR 0200's "no Go signify" stands (bytes, not an agent client). 1. **No identity, no sidecar.** `idss-idp` checks the wallet's signature over the challenge, recomputes the credential's and issuance event's SAIDs, finds the `iss` seal and no `rev` seal in the issuer's witnessed KEL (witness `GET /query`, unsigned), matches the schema, and asserts holder `a.i` == the signing AID. Golden vectors from keripy pin the digests. Option A (AID + signifypy) rejected: one more identity to seed/rescue/re-vouch, a saved copy per presentation, two runtimes, and a door passcode an attacker could steal to impersonate the door. 2. **The wallet posts the bare credential CESR stream** (`credentials().get(said, includeCESR=true)`) with its signed challenge in ADR 0212's `presentation` field — the GLEIF vLEI-verifier convention, no IPEX wrapper. **Present-as-holder is built general**: the same export answers an IPEX `apply` from any identity-bearing verifier with a `grant` from stored attachments, and posts raw to an HTTP door. The bridge's request names the schema it wants. 3. **Trust list.** The verifier runs over `(issuer, issuer OOBI, schema SAID, schema OOBI)` rows; v1 pinned to the community identity + the two gateway schemas. Another issuer is a row + a rule, never a verifier change. The operator-editable list is out of scope on this map. 4. **Ledger unreachable → fail closed**, plain message, dashboard standing check, no cached verdicts. 5. **Descriptor: `doorkeeper{aid,oobi}` retires, `signin{url}` arrives.** The wallet keeps **known doors** — the home door pre-trusted from the descriptor, any other added once by first-contact consent ("a door you haven't met") and remembered; it never presents to a door it does not know. **The challenge signature covers the door's address** (`idss-idp:<door url>:<aid>:<nonce>`), so a harvested signature is worthless elsewhere. 6. **The bridge keeps no copy**; a session records only SAID/schema/issuer/claims; mid-session revocation lands when the session lapses (#1302 may shorten). 7. **"Doorkeeper" stays as the name of the bridge's verifier role**, not an identity. The browser door verifies through the same path once it presents (#1302 rules its retirement). **Amends** ADR 0212 §1–2, ADR 0226 §5–6, ADR 0235 §5; charting ruling 4 reversed. `CONTEXT.md`: Doorkeeper rewritten, **Known door** added. Detail: [ADR 0236](https://git.matou.nz/Matou/idss/src/branch/main/docs/adr/0236-there-is-no-doorkeeper-identity-the-bridge-verifies-a-presented-credential-in-go.md).
ben closed this issue 2026-09-11 20:00:35 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1300
No description provided.