idip: bridge identity claims — derived handle, AID-derived email, and role claims #1917
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.
Blocks
Reference
Matou/idss#1917
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
#1915
What to build
The bridge carries, beside
sub(the AID): a derived handleu+ first 20 lowercase hex of sha256(AID) (21 chars, lowercase, letter-first) as its own claim; an AID-derived email as its own claim (never inemail); and the operator role in the shapes the services' renders map (agroupsmembership plus the per-service role claim names), from the roster's live operator standing.Acceptance criteria
emailstill carries only a real address on recordBlocked by
None — can start immediately
swarm-claim host=matou-dev-server-01 run=34315
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=matou-dev-server-01 run=34318
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=bens-mac-04 run=34318
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=elitebook-distributed-server-03 run=34349
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
Decision: the two AID-derived claims the bridge sends "as their own claim beside
sub" (this ticket) are namedhandle(the derived usernameu+20 hex of sha256(AID)) andderived_email(the AID-derived address). The operator-role shapes reuse the exact claim NAMES the services' existing kanidm claim maps already read —groups(operators, Forgejo),ocgroups(admin, Nextcloud),role=administrator(PeerTube, video.go),roles/owner+member(Gramps, whakapapa.go),pgroups/admins+members(Paperless, paperless.go) — so each service's IDIP render only switches the issuer, never the claim name.Why a two-way door: revertible by a later commit — no service render ticket has landed that reads
handle/derived_emailyet, so renaming later costs nothing and touches no live community. Not on the one-way-door list (no credential, no security-posture widening, no data destruction). The per-service role claim names are not a choice at all: they are what the kanidm-path renders already map.What proves it:
internal/idpTestDerivedHandle_StablePerAID_UniqueAcrossCase(stable per AID, unique across case, 21-char lowercase letter-first),TestSeam_IDIPClaims_OperatorCarriesRoleInEveryDeclaredShape,TestSeam_IDIPClaims_MemberCarriesNoOperatorShape,TestSetUserinfo_DemotedStewardDropsOperatorRole.close-report for #1917 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope