research: how service access can require presentation of a specific credential (IDIP) #1063
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1063
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?
Question
On the IDIP path, how can access to a service require presentation of a specific credential — not just "is a member", but "holds credential X issued by this community" — and what does that make of the service × komiti matrix (ADR 0076)?
Asked by Ben, 2026-08-31 (this session). Research ticket: the output is a findings doc + options + a recommendation for a ruling, not code.
What we have today
idss-idp,internal/idp/) verifies a KERI challenge + membership-ACDC presentation at sign-in, and mirrors committee credentials into the OIDCgroupsclaim ascommittee:<slug>. Every refresh re-checksIsIssuedagainst the TEL (issuer-side; a verifier agent never learns revocation — prototype #732).committee:<slug>— but presentation happens once, at sign-in, and the gate trusts the claim for the token's lifetime (1 h access / 30 d rotating refresh, ADR 0196).What to investigate (options to weigh, not pre-decided)
committee:<slug>; the credential is presented at sign-in, revocation bites at next refresh (≤1 h) + gate session kill. Cheapest; is it enough? What does "presentation" mean to the community if it's implicit?acrnaming the required credential; the bridge runs an IPEX presentation of that ACDC (internal/idp/keri_verifier.go) and checks its TEL state live before issuing a service-scoped token. Costs: a second ceremony per service per session; is that a signify challenge (key press) or a full re-sign-in? What does the member see (DDR 0172's refusal surface + a "present your credential" screen)?For each: revocation latency, member-facing ceremony cost, what changes in the gate (must stay IdP-blind or the ADR 0016 seam breaks), what changes in the bridge, whether the kanidm path needs a parity story (probably: the matrix stays komiti-keyed there; the word differs, the gate row is the same shape).
Deliverables
docs/research/<date>-idip-credential-gated-service-access.md: findings against primary sources (KERI/ACDC/IPEX specs, signify-ts/KERIA API, ourinternal/idp+ gate code), the option table above filled in, and a proposed default ruling for Ben (ADR 0174: a ruling ticket carries its proposal).Why session (not swarm)
Research run (
/research) against external specs + a live IDIP gateway for the TEL-route probe (matou-workstation holds the standing IDIP community from #1054). No Ben hands needed until the ruling.Related
spikes/890-idip-verifier; DDR 0172/0173.groupsbut Nextcloud mapsocgroups— a credential opens nothing at the files door (kanidm komiti do, DDR 0179) #1104RULED — option 1 (Ben, 2026-09-02): a live roster check at the gate, never a presentation ceremony
ADR 0222 (
docs/adr/0222-service-access-checks-the-roster-not-a-presented-credential.md) records it. The two facts that decided it:GateDecisionreads deny list + matrix + standing per request — it never trusts token claims, so option 1's supposed weakness (revocation latency) doesn't exist. This ticket's own framing ("the gate trusts the claim for the token's lifetime") was wrong; the token matters only for the service's inner roles (ocgroups).Finding from the wiring (worse than the half-wired picture #1104 painted):
WithAuthGateis handed the kanidm-path members orchestrator on BOTH paths (control-plane/cmd/control-plane/main.go), and its holder lookup reads kanidm's directory — nothing reads the IDIP roster. So the matrix is currently unenforceable on IDIP entirely, not just missing the inner door.The wiring the ruling names (three edits, all rekeying existing shapes):
ocgroupsfrom held credentials — #1104 (safe to build: the answer is claims, not presentation);p6-s7i-credential-detail.html(inline picker, the builtKomitiDetailScreencontract:set-open-*/set-restricted-*, restrict additive), flow edge added top6-members-idip.mermaid.Deliverable deviation, stated plainly: no separate
docs/research/findings doc was minted — the investigation ran against the code in-session and the option table folded into ADR 0222's Context/Consequences, which is the durable record. Closing.groupsbut Nextcloud mapsocgroups— a credential opens nothing at the files door (kanidm komiti do, DDR 0179) #1104