operator-files: panel-granted operator isn't Nextcloud admin; member-files misreads 404 #1678
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#1678
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
verdict.json— red, 32/35 green, firstRedLegoperator-files. Three reds, all in one 6-second window right afterpanel-apply's gateway redeploy. This is not the KNOWN own-VPS pairing frontier:legs.jsonrecords zero skips, andpairis green (274ms). It is a new red on the #1547 role-door legs.Two distinct defects, one window
1. HARNESS —
readMemberAdminDenialtreats 404 as "member reached the admin screen" (certain)app/tests/e2e/fixtures/provision.ts:1472falls through toundeniedfor any status that is not 403/401/null:The comment says "a 200", but the code never checks for one — so a 404 is classified as the member standing on the admin screen and raised as a security-class red. Nextcloud 32 serves 404 (not 403) to a non-admin on
/settings/admin, so the member-files red is the inverse of the truth: the member was correctly refused.The sibling implementation in the same repo gets it right —
app/tests/e2e/fixtures/roleDoors.ts:456:Two checkers of the same rule disagree;
provision.tsis missing theresp.ok()guard.2. PRODUCT/TIMING — the operator's admin group lands 7s before his session, and doesn't reach it
logs/droplet-journal.txt, duringpanel-apply'sswitch-to-configuration(03:17:09–03:17:15):The roles reconciler adds
proof-operatortonextcloud_adminsat 03:17:13. The operator's Nextcloud OIDC sign-in runs 7 seconds later and succeeds but without admin (nginx access log):Signed in, landed on the dashboard — then
/settings/adminanswers 404, i.e. not an admin. This is the defect class STATUS.md:320 already names: "GrantOperator(roles.go:80) changes the ledger and mints the rescue key but NEVER adds the person to kanidmoperators/files-admin... a promoted operator is admin nowhere, Nextcloud included" — foundation ticket #1537. The reconciler now fires, but its group write does not reach the session minted immediately after.What follows is a redirect storm, 03:17:21–03:17:27 — 16
/authz/gate404s and ~17 distinctgate-oidcauthorize requests, each with a fresh state:Those
/authz/gate404s are Nextcloud's branded 404 (the ~2000-byte bodies) — the gate allowed (2xx), so Caddy proxied the literal path to the Nextcloud backend, which has no such route. That branded page is verbatim whatoperator-docs-editingquotes: "Roles Proof Page not found". So the third red is the same event, not an independent one; its 91s is Playwright waiting for#headeron that stale error document.Correcting the healer's note
logs/healer-claude.out(commit3b227968) attributes the red to a Nextcloud asset settling window and cites the 03:17:24 nginx*.chunk.mjs404s. Two facts contradict that as the cause:systemctl show idss-control-plane→NRestarts=0,ExecMainStartTimestamp=Mon 2026-09-21 03:04:44 UTC. It was up throughout./settings/adminnever appears in nginx's access log at all — not once in the whole run. The 404 the harness saw was Nextcloud's non-admin refusal, not a missing-asset 404. The.chunk.mjs404s are a symptom of the stale error document, not its cause.The committed door-settle wait will likely mask reds #1 and #3 by retrying past the window, but member-files will stay red forever: after settling, the member still gets 404, and
readMemberAdminDenialstill calls that a security breach.Live box (reachable)
The access line as given was refused (
Permission denied (publickey)); the box answers on the run's own identity fromartifacts/live-box.json. Read-only checks only. It is now healthy — which is itself evidence the window was transient:And the drive recovered on its own:
03:19:07 "GET /apps/files/ HTTP/1.1" 200 12884—member-docs-editinggreen.Absent from the run directory
state/founding-state.json— missing;logs/founding-state.logrecords onlycat: ... No such file or directory.logs/guest-*.logare 127-byte stubs (no VM guest —host.jsonhas"qemu": "exit ENOENT"; this drive is a real droplet)./settings/adminrequest line in the droplet's nginx access log, as noted above.What plugging it needs
app/tests/e2e/fixtures/provision.ts:1489— gate theundeniedfall-through on a successful response, matchingroleDoors.ts:456: treat a non-ok status (404 included) asdenied, and reserveundeniedforresp.ok(). Add a case totests/e2e/fixtures/rolesProof.test.tspinning404 → denied. No ruling needed; the repo already contains the correct form.nextcloud_adminswrite must be ordered before, and visible to, the next OIDC session mint; today a sign-in 7s later still comes back non-admin. Either have the reconciler complete beforepanel-applyreports done, or have the door re-read group membership rather than trusting the session's claims.3b227968settle wait alone is not sufficient.drive
20260921T023204Zred atoperator-files:GET /settings/admin returned HTTP 404 — not an admin session (an unauthenticated session gets a 401 here)evidence:
/home/dev/swarm/Matou/idss/test-results/drive-rented-services/20260921T023204Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedContext from the #1672 babysitting session: defect 2 here is most likely #1679, not a group-timing problem — in the red window Nextcloud never received
/settings/adminat all; it receivedGET /authz/gate(the forward_auth sub-request URI leaked to the Files upstream) and answered its branded 404 to BOTH roles, and to/and/apps/files/as well. The operator reached/settings/adminwith 200 at 03:05 and 03:26. Defect 1 (the missingresp.ok()guard inprovision.ts) stands on its own.swarm-claim host=bens-mac-04 run=28904
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1678 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope