operator-session: the founded community's own operator is refused at their admin door — the kanidm path never seeds the founder row into the members ledger (sig b5659a2277df) #1242
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.
Reference
Matou/idss#1242
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 failure
Archive drive run 7 (
test-results/private-path/20260905T205312Zon elitebook-03, commit5ca8855a= #1240 landed) —founding-prefixGREEN (604 s),operator-sessionRED after 63 s (artifacts/legs.json). The door marker recordshttps://admin.e2e-drive.idss.internal:41715/→ 302, the passkey login and the authorization code both succeed (logs/guest-kanidm.log), and — for the first time — the token exchange completes (#1240 is proven good: nosignin_exchange, no x509 warning inlogs/guest-control-plane.log). The community SSO session is minted and the gate reaches its decision.The gate then refuses the community's own founding operator. The page the leg read (
artifacts/ceremony/admin-door-neither-landed.png, and the error text) is our own DA-S2 refusal surface:The reporter could not file this itself (filing cap hit on #1235: 2 already filed), so #1235 was parked ready-for-human; this ticket is the healer's diagnosis (
artifacts/healer-refusal.json, actionfile, rule 3 product surface), verified line by line against main5ca8855a, filed and ruled by hand.The defect
On the kanidm path the admin pseudo-service is answered straight from the members ledger:
internal/member/komiti.go:583-588—GateDecision:if service == AdminService { if o.isOperator(sessionIdentity) → allow; else deny GateReasonOperatorsOnly }.internal/member/komiti.go:631-637—isOperator=ledger.Load()→findMember(ls, personID)→ok && m.Role == RoleOperator. An unknown person is not an operator.internal/controlapi/refusal.go:128-136—refusalOperatorsrenders exactly the copy above.The session identity is
operator— the FIXED kanidm account name on every kanidm render:clan.OperatorAccount(internal/clan/vmguest.go:110), declared into the guest's kanidm atvmguest.go:705and into the public gateway's atvmguest.go:1508; the founding passkey is minted against it (internal/fleetwire/enrolment.go:243).Nothing on the kanidm path ever writes a member row for it. The ledger is
member.NewFileLedger(<stateDir>/members.json)(control-plane/cmd/control-plane/whole_composition.go:617); a missing file loads as a zeroLedgerState(internal/member/ledger.go:259). The only production writer of a founder row is the IDIP founder register (internal/fleetwire/founderroster.go:115-126→POST /api/v1/idip/roster/register), andinternal/founding/founderroster.go:49-52says so in words: "On the kanidm path it is never called (no IDIP roster)." The kanidm founding's "admin" step is a log line and a view field only (internal/founding/deploy.go:631-632:ds.Admin = adminAccount(s.Draft)+"operator admin seeded from declarative config"—logs/founding-state.logshows that row rested done with"admin": "drive@example.nz", no ledger written).resting_composition.go:261-263still carries the TODO: "founding seeds the founder row as runtime data, out of scope for #155". Thememberpackage doc (internal/member/member.go:14-17) andMembersView(member.go:42-43) both promise "the founder as row one, never empty" — that seed was never built.So on the founded guest: no
members.json→ zero state →isOperator("operator")= false → operators-only deny. The founding operator is locked out of their own control panel by their own gate, on every kanidm path (VM private, own-VPS, self-hosted, rented). Nothing caught it before because no kanidm-path drive entered the panel through the front door until #1236 added theoperator-sessionleg (the public journeys'oidc-adminlegs sign into Nextcloud, not the panel; the IDIP journey has the founder register +IdipGateDecider). Twin of the IDIPoidc-adminred #1018 closed.The same red is latent on
provision-nextcloud.live.spec.tsandsettings-brand-reapply.live.spec.ts(both carryestablishAdminDoorSessionsincebf9507ad), and on every standing community's members page (row one is missing there too).RULED (agent, two-way under ADR 0174 — Ben vetoes async): shape A — the control plane seeds the founder row itself, idempotently, at boot, on the kanidm path.
The row the gate needs is fully derivable without founding's help:
Member{PersonID: clan.OperatorAccount, Role: RoleOperator, Status: StatusActive}— the ledger carries no name or email (those are IdP attributes joined at list time, ADR 0077), and the account name is a compile-time constant on every kanidm render. A boot seed also heals every already-founded community (rehearsal-e,rehearsal-b, any real one) on its next control-plane start, which no founding-leg fix can.Rejected:
internal/fleetwire/founderroster.go). Needs a new write verb on the kanidm control plane, a new founding op on four drives, and leaves every standing community locked out until re-founded; founding has no datum to contribute that the plane does not already hold.GrantOperator/RevokeOperatorininternal/member/roles.gowrite it); a second source of truth reopens the #277-class drift the rederive fixed.What to build
control-plane/cmd/control-plane/whole_composition.go~617, right aftermembersLedger := member.NewFileLedger(...)and ONLY when this is the kanidm path (deps.idp != nil; never whendeps.idipIdentity— the IDIP path's roster +IdipGateDeciderown that answer): load the ledger; if it holds no row withRole == RoleOperator, prependMember{PersonID: clan.OperatorAccount, Role: member.RoleOperator, Status: member.StatusActive}(row one — the never-empty rule, DDR 0095) andSave. Log one INFO line naming the seeded account. Put the seed in a small named function ininternal/member(e.g.SeedFounder(ledger, personID) (seeded bool, err error)) so it is unit-testable without the composition.operatorrow":roles.go:93forbids revoking the last operator, so a zero-operator ledger can only mean unseeded — the seed can never resurrect a deliberately demoted account or fight aGrantOperatorto someone else.Savefailure at boot fails loud like the composition's other file-store faults (ADR 0088) — never a silent skip that leaves the gate refusing.resting_composition.go:261-263(the "out of scope for #155" TODO), theinternal/member/member.gopackage doc ("seeded by founding as runtime data" → the plane seeds it at boot on the kanidm path; the founder register does on IDIP), and theoidc-admin/operator-sessioncontext ininternal/member/komiti.go:631-634if it names founding.operator/operator/active; second call no-op; ledger with an operator row under another PersonID → untouched; (b) composition seam (idip_wholeness_test.gostyle) — kanidm deps with a fresh state dir writemembers.jsonwith row one = operator;idipIdentity: truewrites nothing.go test ./internal/member/ ./control-plane/...green.Acceptance
operator-sessiongoes green:establishAdminDoorSessionlands on[data-status="dashboard-chrome"], and the drive advances togateway-change/browse-cataloguewith a REAL session behind it.members.jsonwrite on that path).Evidence:
elitebook-03:~/swarm/Matou/idss/test-results/private-path/20260905T205312Z/—artifacts/legs.json,artifacts/healer-refusal.json,artifacts/ceremony/admin-door-neither-landed.png,logs/guest-control-plane.log,logs/guest-kanidm.log,logs/founding-state.log.close-report for #1242 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope