Prototype: a browser proves AID control at the bridge's sign-in (signify-ts challenge/response + ACDC presentation) #732

Closed
opened 2026-08-24 01:18:07 +00:00 by ben · 1 comment
Owner

Parent

Map: IDIP as a core identity alternative to kanidm (#725)

Question

Raise fidelity on the hardest unknown: what the sign-in screen IS when the member holds an AID, not a password. Build a throwaway: a page loading signify-ts that connects to a KERIA agent with the member's passcode, answers a bridge-issued challenge with a signed response, and presents its membership ACDC; a stub bridge that verifies against the community registry and returns an OIDC code. Answer: is a passcode/mnemonic entry at every sign-in acceptable, or does the browser keep the agent session (and what does that mean for shared devices); how long does it take; what fails when the witness is down. Link the prototype from this ticket.

## Parent Map: [IDIP as a core identity alternative to kanidm](https://git.matou.nz/Matou/idss/issues/725) (#725) ## Question Raise fidelity on the hardest unknown: what the sign-in screen IS when the member holds an AID, not a password. Build a throwaway: a page loading signify-ts that connects to a KERIA agent with the member's passcode, answers a bridge-issued challenge with a signed response, and presents its membership ACDC; a stub bridge that verifies against the community registry and returns an OIDC code. Answer: is a passcode/mnemonic entry at every sign-in acceptable, or does the browser keep the agent session (and what does that mean for shared devices); how long does it take; what fails when the witness is down. Link the prototype from this ticket.
ben self-assigned this 2026-08-24 14:09:26 +00:00
Author
Owner

Resolution (prototype driven 2026-08-24; asset spikes/732-aid-signin/, commit 8b00944, findings in its NOTES.md)

The whole sign-in ran end-to-end against a real KERIA (0.2.0-rc1, signify-ts 0.3.0-rc2, 6 demo witnesses): witnessed member AID -> membership ACDC via IPEX -> bridge as its own witness-less KERIA agent -> KERI challenge/response -> presentation with issuer/schema/TEL check.

Answers to the ticket's questions:

  1. Passcode at every sign-in is acceptable. Reconnect-from-passcode ~1.3 s; full repeat sign-in (reconnect + challenge + presentation) ~7 s; ~2.5 s once the bridge holds the credential. Browser session-keeping is an optimisation, not a necessity — #733 rules member-side storage freely.
  2. Timings (laptop lower bound): founding stand-in ~13 s; member first boot ~7.5 s; issuance ~9 s; challenge/response ~1.3 s; presentation + check ~4.5 s.
  3. Witness down: sign-in survives (all parties are agents on the one gateway KERIA; no new witnessed event at sign-in). What breaks is member JOIN (new AID + issuance) — the honest degradation row belongs on join, not sign-in.
  4. THE finding — revocation never reaches a verifier agent on this KERIA. After revoke, the issuer's agent reads rev instantly; the bridge's stored copy, its live credentials().state(ri, said), and even a post-OOBI-refresh query all read iss forever. ADR 0196's "TEL re-check on refresh" cannot be a bridge-agent-side check: the authoritative issued/not-revoked answer must be served from the issuer side — the #733 keria adapter (the surface that performs suspension) exposes it, and the bridge consults it at sign-in and every refresh. (KERIA 0.4.0 may improve propagation — verify at build time; the issuer-side check is correct regardless and has zero propagation latency.)

Also: matou's membership schema pins communityName: MATOU (const) — IDSS mints its own schema; the map's schema-governance fog is reinforced.

To drive it yourself: spikes/732-aid-signin/run.sh (TUI; scratch stack proto732 is up; ./run.sh down tears it down). The prototype is deleted or its flow.mjs lifted when the bridge is specced.

## Resolution (prototype driven 2026-08-24; asset `spikes/732-aid-signin/`, commit `8b00944`, findings in its `NOTES.md`) The whole sign-in ran end-to-end against a real KERIA (0.2.0-rc1, signify-ts 0.3.0-rc2, 6 demo witnesses): witnessed member AID -> membership ACDC via IPEX -> bridge as its own witness-less KERIA agent -> KERI challenge/response -> presentation with issuer/schema/TEL check. **Answers to the ticket's questions:** 1. **Passcode at every sign-in is acceptable.** Reconnect-from-passcode ~1.3 s; full repeat sign-in (reconnect + challenge + presentation) ~7 s; ~2.5 s once the bridge holds the credential. Browser session-keeping is an optimisation, not a necessity — #733 rules member-side storage freely. 2. **Timings** (laptop lower bound): founding stand-in ~13 s; member first boot ~7.5 s; issuance ~9 s; challenge/response ~1.3 s; presentation + check ~4.5 s. 3. **Witness down: sign-in survives** (all parties are agents on the one gateway KERIA; no new witnessed event at sign-in). What breaks is member JOIN (new AID + issuance) — the honest degradation row belongs on join, not sign-in. 4. **THE finding — revocation never reaches a verifier agent on this KERIA.** After revoke, the issuer's agent reads `rev` instantly; the bridge's stored copy, its live `credentials().state(ri, said)`, and even a post-OOBI-refresh query all read `iss` forever. **ADR 0196's "TEL re-check on refresh" cannot be a bridge-agent-side check: the authoritative issued/not-revoked answer must be served from the issuer side — the #733 keria adapter (the surface that performs suspension) exposes it, and the bridge consults it at sign-in and every refresh.** (KERIA 0.4.0 may improve propagation — verify at build time; the issuer-side check is correct regardless and has zero propagation latency.) Also: matou's membership schema pins `communityName: MATOU` (const) — IDSS mints its own schema; the map's schema-governance fog is reinforced. To drive it yourself: `spikes/732-aid-signin/run.sh` (TUI; scratch stack `proto732` is up; `./run.sh down` tears it down). The prototype is deleted or its `flow.mjs` lifted when the bridge is specced.
ben closed this issue 2026-08-24 14:26:05 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#732
No description provided.