roles proof: #1648's files.<apex> loopback pin — both roles open a document on a LOOPBACK-ONLY callback source list (no gateway public IP) #1672
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.
Depends on
Reference
Matou/idss#1672
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?
What
Run the #1620 roles-proof drive with files + docs-editing and confirm both roles open a genuinely loaded Collabora document with the front door's callback source list loopback-only (no gateway public IP). This is the live proof that #1648's
files.<apex>loopback pin works end to end.Why
#1648 (landed, commit
7434ed9a) pinsfiles.<apex>to loopback in the gateway'snetworking.hostswhile docs-editing is placed (renderLoopbackPins), so coolwsd's WOPI callback reaches Caddy over loopback andcallbackSourcesshrinks to loopback alone. It is offline-proven only — a swarm worker cannot run a live drive. The two live facts still to prove (ADR 0258 amendment, GOTCHAS #293):files.<apex>correctly to a loopback caller (SNI + the real wildcard cert — it binds all interfaces, so it should; not tested live).files\.<apex>), so the loopback pin does not disturb it.Recipe
The #1620 roles-proof recipe, docs-editing added:
Both roles (operator + member) must open a genuinely LOADED document (the member AFTER the operator's editor-admin visit — the #1620 run 7/8 sequence), with the gateway built from a commit carrying
7434ed9a. Eyeball the frames (a refused editor still draws its container, #1620 run 3).Pass
Both
operator-docs-editingandmember-docs-editinglegs green on a loopback-only source list; on the kept box, the rendered front-door matcher showsremote_ip 127.0.0.1 ::1(no public IP) andgetent hosts files.<apex>on the gateway answers127.0.0.1. On green, mark ADR 0258 / GOTCHAS #293 / STATUS #1648 live-proven and close.Filed by the #1648 worker (a swarm worker cannot run the drive itself) per Ben's ruling on #1648.
Ruled by agent under ADR 0174 — veto anytime.
Ruling:
standing-drive+ready-for-agent(+enhancement).This is a fully-specified live rehearsal drive: a concrete recipe (
IDSS_ROLES_PROOF=1,IDSS_ROLES_SERVICES=files,IDSS_ROLES_ADD_SERVICE=docs-editing), a concrete gateway build requirement (a commit carrying7434ed9a), and a concrete Pass (bothoperator-docs-editingandmember-docs-editinglegs green on a loopback-only source list;remote_ip 127.0.0.1 ::1on the rendered matcher;getent hosts files.<apex>→127.0.0.1). Nothing is missing that a reporter must supply, so this is notneeds-info.Why a two-way door: the label choice is revertible by a single tracker action, and the drive's own six-clause verdict + eyeballed frames prove the outcome. Running it costs only routine lab-droplet money on the standing rehearsal-drive rail — explicitly on ADR 0174's allowed (not one-way-door) side. It widens no security posture (it proves an already-landed narrowing — #1648's loopback pin), touches no personal credentials, needs no member-facing trust accept, and destroys no data.
Why
ready-for-agentand notready-for-human: this needs no human's hands or eyes. Per GOTCHAS #23, on astanding-driveissueready-for-agent+ unblocked is the drive executor's trigger, while thestanding-drivelabel keeps it out of the swarm-worker queue (list-ready-tasks.sh) — so a worker cannot pick it up. This is exactly the label set the parent roles-proof drive #1620 carried (standing-drive+ready-for-agent). No blockers are open.What proves it: the #1620 roles-proof recipe with
docs-editingadded, run by the drive rail; the leg verdicts and the two on-box probes named under Pass above. On green, mark ADR 0258 / GOTCHAS #293 / STATUS #1648 live-proven and close.gateway-image: snapshot advanced
a6d0dd5→ebe5da4f19cdby matou-dev-server-01 (#661 auto-rebuild — build.sh resolved the newest published agent ancestor, #654). The rented drive now boots current agent bits; no human build.sh run was needed. Rebuild timings: total 15m42s (provision 1m52s, nixos-install 2m16s, installer-base 9m24s, snapshot 1m59s) (#1139).Fire 1 — RED 32/35, zero skips (
20260921T023204Z,ebe5da4f, carries7434ed9a). Box kept (live-box.json). Read-only findings from the session babysitting this drive:What #1648 itself did — all as designed
/etc/hosts:127.0.0.1 id.<apex> files.<apex>; rendered matcher:remote_ip 127.0.0.1 ::1(no public IP).…/wopi/files/1_x→ 500 bogus-token,…/settings/systemconfig/x/…→ 500; neither 302). Note curl connected::1 → ::1, so the::1entry in the source list is load-bearing.member-docs-editingGREEN and the frame is a genuinely LOADED document — the editor's callback works on the loopback-only list.The three reds (
operator-files,member-files,operator-docs-editing) are ONE event, 03:17:22–03:17:27Z, and nothing in it touches the pinfiles.<apex>for/settings/admin,/,/apps/files/,/core/css/guest.css?v=…→ all 404, Server: nginx.GET /authz/gate[?v=…]→ 404, HeadlessChrome UA, from 127.0.0.1 — the query strings match the browser's asset requests. The front door delivered the request to the Files upstream with the forward_auth sub-request's URI (/authz/gate) instead of the original URI. Nextcloud answered its branded "Page not found", which is what both roles' legs read./apps/dashboard/at 03:17:21 was proxied correctly, and everything from 03:18:58 on (the member's whole leg) is correct.nextcloud-occ app:list/statusare healthy; the Nextcloud package is identical across generations 48–50.panel-apply's deploy —switch-to-configurationat 03:17:09–15, kanidm stopped and restarted at 03:17:11,nextcloud-setupre-ran 03:17:12–14. Caddy was NOT reloaded (last reload 03:09:00) and the control plane was NOT restarted (up since 03:04:44). Probed now, the gate answers a clean 401 to a session-less request.operator-docs-editingsat on the 404 page for its whole 90 s wait (it does not re-navigate), so its red is the same few seconds, not a second failure.Not established: why the rewritten URI reached the service upstream. Run 8 (
a6d0dd55) passed the same leg order, so it is either a race with the panel-apply switch that run 8 happened to miss, or a regression in the 54 commits since — the front-door candidates aref31be6e2(#1651, site-levelhandle_errors) andce479c6a. Whatever the gate answers while kanidm is restarting is the first thing to look at.Any fix that changes what the gate admits or how forward_auth fails goes to Ben first (sign-in trust). A harness-side wait for the panel-apply deploy to settle before the door legs is fair game, but it would hide this, not fix it — a member using Files during any deploy would hit the same 404s.
🚨 @ben rehearsal healer: CLAUDE AUTH FAILED on account B (token sk-ant-oat01-8…[REDACTED — full token was printed here; rotate it]) — not logged in. Token source is the host's env file (per the host registry's env directive) (token-sync from the org secret CLAUDE_CODE_OAUTH_TOKEN[_B]); env seen by the call: logs/claude-env.txt in /home/dev/swarm/Matou/idss/test-results/drive-rented-services/20260921T023204Z
drive
20260921T023204ZRED — now blocked by: #1678 #1679 (evidence on each). The drive re-fires when the last blocker closes.rehearsal-report.shdrifted - bdb42ff6’s token-leak fix must land in dev-factory (which still leaks) and ride back on a FACTORY_REF bump #1683gateway-image: snapshot advanced
ebe5da4→fcd6769382b6by matou-dev-server-01 (#661 auto-rebuild — build.sh resolved the newest published agent ancestor, #654). The rented drive now boots current agent bits; no human build.sh run was needed. Rebuild timings: total 14m34s (provision 1m32s, nixos-install 2m18s, installer-base 8m29s, snapshot 2m04s) (#1139).drive
20260921T042804ZGREEN end to end — 36/36 legs green — evidence (legs.json, durations, trace, host facts) intest-results/drive-rented-services/20260921T042804Z/on the executor host; a representative screenshot is attached here if one was captured (#596). Closing per the standing instructions: the rented-services journey passes, #183 is ready to be boring.Fire 2 — GREEN 36/36, zero skips (
20260921T042804Z, commit56445548, carries7434ed9a). #1648 is PROVEN LIVE.redeploy-services, before release):/etc/hosts→127.0.0.1 id.<apex> files.<apex>; rendered matcher →remote_ip 127.0.0.1 ::1— no gateway public IP in the bypass.operator-docs-editing-collabora.pngandmember-docs-editing-collabora.pngare each a genuinely LOADED Collabora document (full toolbar, its own file name). The member opens AFTER the operator's editor-admin visit, so both the WOPI callback and the #1642 settings-file fetch work over loopback alone.::1 → ::1, so the::1source is load-bearing), and coolwsd's host-NAME allow-list is undisturbed by the pin.Fire 1's reds were not the pin: the front door leaked the forward_auth sub-request URI (
/authz/gate) to the Files upstream for ~7 s during panel-apply's deploy. It did not recur in fire 2 (zerogate-faultrulings). The harness now attributes it correctly (#1678/#1679); the PRODUCT defect stays open as #1680 — any gate change there goes to Ben first.Arming block removed from the workstation.