IDIP credentials reach the token on groups but Nextcloud maps ocgroups — a credential opens nothing at the files door (kanidm komiti do, DDR 0179) #1104
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#1104
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?
The gap
On the IDIP path a community credential reaches the ID token as
committee:<slug>on thegroupsclaim (internal/idp/storage.go:545). Nextcloud's user_oidc maps groups fromocgroupsALONE (--mapping-groups=ocgroups,internal/clan/files.go:849), and the bridge fillsocgroupswith only the files-admin bit —["admin"]for an operator,[]for everyone else (storage.go:547-555).So on IDIP, holding a credential opens nothing at the files door. The claim is minted correctly and consumed by nobody.
The kanidm path does not have this gap:
filesClaimMapPathgives each komiti its ownocgroupsclaim-map entry, which is exactly what DDR 0179 ruled ("a komiti must carry its own claim-map entry here to reach Nextcloud as a group, as files-admin already does for the bare valueadmin" —internal/kanidm/kanidm.go:451-459). The IDIP bridge never got the equivalent.How it surfaced
Drive
20260901T055806Z— 30 legs, 29 green, 1 red, 0 skips, the first run to walk the whole credentials tail.create-credential,preset-invite,preset-joinandpreset-approveall green: a credential was defined, an invite minted carrying it as a preset, a member joined off that invite, and approval issued Membership + the preset in one ceremony. Thencredential-claimred:The leg was asserting parity that had never been built. It is the drive over-claiming, but the underlying gap is real.
Why it matters
DDR 0217's whole vocabulary is that a credential is what a community issues so that it means something. Until this lands, an IDIP credential is a record with no consequence at any service — S7i's "WHICH SERVICES THIS CREDENTIAL OPENS" access matrix has nothing behind it.
Relationship to #1063
#1063 (
/research, still queued) asks how service access should require presentation of a credential — claims-in-token vs step-up IPEX presentation vs a direct TEL check. This ticket is the narrow, already-decided half of that: the kanidm path's answer (claims inocgroups) applied to the IDIP bridge, so parity exists while the richer model is designed. Whether that is the right long-term shape is #1063's call — worth ruling that before building, in case the answer is "presentation, not claims".Drive legs
credential-claimandcredential-claim-goneinjourney.idip.spec.tsare the proof both ways (issue names the group, receipted revoke un-names it). They are pointed at this ticket inCREDENTIAL_LEG_LEDGERand will skip with its number until it ships, then arm themselves.Correction to this ticket's premise — the healer found the deeper half while I was filing it (
7c3a0a06).I wrote above that "the claim is minted correctly and consumed by nobody". The first half was wrong.
RosterEntry.View()projectedCommitteesoff a stored profile field nothing in production has ever written: a committee grant lives inRosterEntry.Heldas an issued ACDC, and neitherAnchorCredentialIssuance,ConfirmReceipt,JoinnorRegistertouchesCommittees. SoMemberView.Committeeswas always empty →Claims.Komitisalways empty →Identity.Groups()could only ever mintmembers. Thecommittee:<slug>half of ADR 0196 was wired to nothing at all.It shipped because a seam test seeded
Committees: []string{"finance"}straight onto the Join entry (internal/idp/keri_verifier_test.go:55), pinning a groups claim production had no path to mint — the test was the only thing that ever set that field.7c3a0a06fixes it:View()now derives the slugs from the held set, gated onCredentialState.issued()— the identical predicateRegistry.IsIssuedanswers the bridge's every-refresh re-check with, so the groups a token carries and the check that keeps it alive can never disagree.What remains, and what this ticket is now narrowed to: with that fixed, the token's
groupsclaim does carrycommittee:<slug>. Nextcloud still maps groups fromocgroupsalone (--mapping-groups=ocgroups,internal/clan/files.go:849), and the IDIP bridge fillsocgroupswith only the files-admin bit (storage.go:547-555). So the remaining gap is exactly the claim-map parity the kanidm path already has viafilesClaimMapPath(DDR 0179) — nothing more, but nothing less: a held IDIP credential still opens nothing at the files door.The
credential-claim/credential-claim-gonelegs stay pointed here and will arm when this lands. Everything else in the tail is unaffected by the correction.UNPARKED — #1063 is RULED (ADR 0222, option 1: access is a live roster check; the answer is CLAIMS, not presentation), so this is safe to build exactly as filed: the bridge fills
ocgroupsfrom held credentials, the DDR 0179 parity. This is wiring edit 2 of 3 (siblings: #1155 gate-reads-roster, #1156 restrict/open editor — both independent of this one). The two skipped drive legs (credential-claim/credential-claim-gone, CREDENTIAL_LEG_LEDGER) self-arm the moment this ships. → ready-for-agent.swarm-claim host=matou-dev-server-01 run=16640
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1104 — status
success⛔ close-report gates REFUSED this close — the following claims did not verify:
322eafa0is not reachable from origin/main (not landed)envelope
close-report for #1104 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope