engine-adapters: idp-adapter — real kanidm behind the member orchestrator's idp port #171
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.
Blocks
Depends on
Reference
Matou/idss#171
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
Engine-adapters child spec: #161 (ADRs 0102–0107; scoped on wayfinder #160 — Ben ruled live: per-family clan-lab smokes gate each family, the arc closes on a real-hardware end-to-end, tickets arm the swarm). Everything else agent-decided, post-hoc review pending.
What to build
The kanidm adapter (ADR 0105): drives kanidm's HTTPS REST API on the gateway's internal listener (internal CA→leaf chain, admin credential from clan vars). Persons (create / pending / enable / disable / remove), reset tokens (the branded reset link wraps kanidm's native token), komiti as kanidm groups under the reserved naming discipline, kaitiaki as membership of the structural group. Runtime people are the adapter's alone: the declarative layer's scope guarantee (a redeploy never erases them) is part of this ticket's contract tests. Family close replaces restingMemberIDP.
Acceptance criteria
Blocked by
Task manifest
Landed in
5c19394(onorigin/main).The production
member.IDPadapter ships asinternal/kanidm(ADR 0105): anAdapterdriving kanidm's HTTPS REST API behind the member orchestrator's port (ADR 0077).client_credentialsgrant — spike Q4); a cached bearer refreshed transparently on a 401; the admin credential never leaves the gateway.kanidm.Clientbuilds the HTTP client that validates the internal CA→leaf chain (spike Q2 gotcha 2).account_expire), enable (purge expire) / disable (past expire — durable + reversible, ADR 0074) / remove; all idempotent, a gone person a no-op. → AC1, AC2MintResetTokendrives kanidm's native credential-update-intent token (the token the branded link wraps); errors for a nonexistent person. Therefused while suspendedguard is the member orchestrator's (ErrMemberNotActive). → AC3komiti_prefix, so they can never collide with, or surface among, operators/members/kaitiaki; create (idempotent) / rename (carries membership) / delete (accounts untouched) / add/remove member. → AC4kaitiakigroup (ADR 0078), read frommemberof; never a komiti.Seam (manifest: adapter contract tests):
internal/kanidm/{kanidm_test.go,fakekanidm_test.go}drive every port verb end to end (real HTTP/JSON/bearer handshake) against a faithful kanidm REST double, including ADR 0105's load-bearing rule — runtime people + komiti survive a re-declaration of the structural groups untouched (TestRuntimeEntities_SurviveReprovision). The naming discipline is the adapter's half of AC5; the full real-kanidm redeploy proof is the family-4 clan-lab smoke (#178). Fullgo test ./...green.Not wired into main.go by design: the member composition root goes whole at
compose-aggregation-loop(#181), which retiresrestingMemberIDP. #171 is the adapter build; #172 (member-orbit-adapters) and #178 (smoke) are now unblockable.