engine-adapters: smoke-idp — family-4 proven on the clan-lab #178
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#178
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
Family-4 proof: on a lab gateway with real kanidm — invite → signup → approve creates a real enabled person; suspend denies at the gate and disables the account; a reset link wraps a real kanidm token; komiti create/rename/delete; then REDEPLOY the gateway and prove every runtime person and komiti survives (ADR 0105's load-bearing rule). Executes spec #19's standing smoke clause.
Acceptance criteria
Blocked by
Task manifest
Done — family 4 (the member IdP, ADR 0105) proven on real kanidm. Commit
95a27d5onorigin/main.A self-contained smoke binary (
control-plane/cmd/smoke-idp,scripts/smoke-idp.sh) drove the production kanidm engine adapter (idp-adapter #171) end to end against a real kanidm on a clan-lab gateway (node1,127.0.0.1:8443behind the internal CA→leaf chain). Every act is driven THROUGH the adapter and read back from kanidm's directory by an independent admin client — so the evidence is "kanidm's directory reflects it", not "the adapter says so". All three legs PASS on real hardware:clan machines update node1redeploy and thekanidm-provisionre-application untouched; the structural groups re-declared.Evidence (3 JSON verdicts + the setup):
docs/spike-findings/smoke-idp-178.md. Lab config:spikes/smoke-idp/. Labclan-lab-smoke-idp-178-340907d9(golden pin clan-coredb4db726, kanidm 1.10.3), run on node1, all legs exit 0, then destroyed.The gate earned its keep — two real adapter bugs the fake double masked, both FIXED in this slice
200 null, not404. kanidm answers a GET for a missing person/group with HTTP 200 + a JSONnullbody.internal/kanidm'sPerson/entityExistskeyed existence off the status alone, so every missing entity read as found. Fixed to read existence from the body; the contract-test double is made faithful andTestPerson_Missing_ReadsNotFoundlocks it.overwriteMembersstrips runtime memberships on redeploy.kanidm-provision's defaultoverwriteMembers=trueresets each declared group to exactly its declared members on every run — silently stripping the runtime kaitiaki designation on redeploy (a direct breach of ADR 0105's load-bearing rule, caught by the survive leg). Fixed withoverwriteMembers=false(existence declared, membership runtime). This is a hard requirement for founding's real gateway provisioning — worth an ADR 0105 note.⚠️ FOLLOW-UP NEEDED (not blocking #178)
The admin
setPasswordcredential-update path ininternal/kanidmdoes not work against real kanidm 1.10:GET …/_credential/_update) returns an array[CUSessionToken, CUStatus], not{"token":…};[CURequest, CUSessionToken](request first) with the externally-tagged variant{"password":…};…/_credential/_commit, not…/_update_commit; and kanidm's default account policy refuses to commit a bare admin-set password (can_commit:false, warnings:["MfaRequired"]).The member's real credential path is the reset-token intent flow (
MintResetToken), which works, so the smoke drives signup as a passkey / by-hand with no temp password — the acceptance clauses do not depend onsetPassword. ButsetPassword(used by the by-handTempPasswordand the signup password fallback, ADR 0077) needs a focused follow-up: rework it to kanidm's credential-update protocol and reconcile the password fallback with kanidm's credential policy. Recommend a human file this as a new ticket in the engine-adapters arc.config_eval— the one-shot transport retry never fires and the operator is told to fix a flake that is fine #1272