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

Closed
opened 2026-09-20 18:52:01 +00:00 by matou-build-agent · 8 comments

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) pins files.<apex> to loopback in the gateway's networking.hosts while docs-editing is placed (renderLoopbackPins), so coolwsd's WOPI callback reaches Caddy over loopback and callbackSources shrinks 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):

  • Caddy serves files.<apex> correctly to a loopback caller (SNI + the real wildcard cert — it binds all interfaces, so it should; not tested live).
  • coolwsd's WOPI host allow-list matches on the host name (files\.<apex>), so the loopback pin does not disturb it.

Recipe

The #1620 roles-proof recipe, docs-editing added:

IDSS_ROLES_PROOF=1
IDSS_ROLES_SERVICES=files
IDSS_ROLES_ADD_SERVICE=docs-editing

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-editing and member-docs-editing legs green on a loopback-only source list; on the kept box, the rendered front-door matcher shows remote_ip 127.0.0.1 ::1 (no public IP) and getent hosts files.<apex> on the gateway answers 127.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.

<!-- rehearsal-target: rented-services --> <!-- rehearsal-confirm: 1 --> ## 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`) pins `files.<apex>` to loopback in the gateway's `networking.hosts` while docs-editing is placed (`renderLoopbackPins`), so coolwsd's WOPI callback reaches Caddy over loopback and `callbackSources` shrinks 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): - Caddy serves `files.<apex>` correctly to a **loopback** caller (SNI + the real wildcard cert — it binds all interfaces, so it should; not tested live). - coolwsd's WOPI host allow-list matches on the host **name** (`files\.<apex>`), so the loopback pin does not disturb it. ## Recipe The #1620 roles-proof recipe, docs-editing added: ``` IDSS_ROLES_PROOF=1 IDSS_ROLES_SERVICES=files IDSS_ROLES_ADD_SERVICE=docs-editing ``` 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-editing` and `member-docs-editing` legs green on a loopback-only source list; on the kept box, the rendered front-door matcher shows `remote_ip 127.0.0.1 ::1` (no public IP) and `getent hosts files.<apex>` on the gateway answers `127.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.
Author
Member

This was generated by AI during triage.

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 carrying 7434ed9a), and a concrete Pass (both operator-docs-editing and member-docs-editing legs green on a loopback-only source list; remote_ip 127.0.0.1 ::1 on the rendered matcher; getent hosts files.<apex> → 127.0.0.1). Nothing is missing that a reporter must supply, so this is not needs-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-agent and not ready-for-human: this needs no human's hands or eyes. Per GOTCHAS #23, on a standing-drive issue ready-for-agent + unblocked is the drive executor's trigger, while the standing-drive label 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-editing added, 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.

> *This was generated by AI during triage.* **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 carrying `7434ed9a`), and a concrete Pass (both `operator-docs-editing` and `member-docs-editing` legs green on a loopback-only source list; `remote_ip 127.0.0.1 ::1` on the rendered matcher; `getent hosts files.<apex>` → `127.0.0.1`). Nothing is missing that a reporter must supply, so this is not `needs-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-agent` and not `ready-for-human`:** this needs no human's hands or eyes. Per GOTCHAS #23, on a `standing-drive` issue `ready-for-agent` + unblocked is the **drive executor's** trigger, while the `standing-drive` label 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-editing` added, 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.
Author
Member

gateway-image: snapshot advanced a6d0dd5 → ebe5da4f19cd by 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).

gateway-image: snapshot advanced `a6d0dd5` → `ebe5da4f19cd` by 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).
Owner

Fire 1 — RED 32/35, zero skips (20260921T023204Z, ebe5da4f, carries 7434ed9a). 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).
  • From the box, both callback shapes reach Nextcloud over loopback (…/wopi/files/1_x → 500 bogus-token, …/settings/systemconfig/x/… → 500; neither 302). Note curl connected ::1 → ::1, so the ::1 entry in the source list is load-bearing.
  • member-docs-editing GREEN 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 pin

  • Caddy's access log: the operator's browser (drive host IP) asked files.<apex> for /settings/admin, /, /apps/files/, /core/css/guest.css?v=… → all 404, Server: nginx.
  • Nextcloud's nginx access log for the same seconds has NONE of those URIs. It has 16 × 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.
  • It is confined to that window: /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 / status are healthy; the Nextcloud package is identical across generations 48–50.
  • What was happening: panel-apply's deploy — switch-to-configuration at 03:17:09–15, kanidm stopped and restarted at 03:17:11, nextcloud-setup re-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-editing sat 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 are f31be6e2 (#1651, site-level handle_errors) and ce479c6a. 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.

**Fire 1 — RED 32/35, zero skips** (`20260921T023204Z`, `ebe5da4f`, carries `7434ed9a`). 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). - From the box, both callback shapes reach Nextcloud over loopback (`…/wopi/files/1_x` → 500 bogus-token, `…/settings/systemconfig/x/…` → 500; neither 302). Note curl connected `::1 → ::1`, so the `::1` entry in the source list is load-bearing. - `member-docs-editing` GREEN 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 pin** - Caddy's access log: the operator's browser (drive host IP) asked `files.<apex>` for `/settings/admin`, `/`, `/apps/files/`, `/core/css/guest.css?v=…` → all **404, Server: nginx**. - Nextcloud's nginx access log for the same seconds has NONE of those URIs. It has 16 × `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. - It is confined to that window: `/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` / `status` are healthy; the Nextcloud package is identical across generations 48–50. - What was happening: `panel-apply`'s deploy — `switch-to-configuration` at 03:17:09–15, **kanidm stopped and restarted at 03:17:11**, `nextcloud-setup` re-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-editing` sat 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 are `f31be6e2` (#1651, site-level `handle_errors`) and `ce479c6a`. 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.
Author
Member

🚨 @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

:rotating_light: @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
Author
Member

drive 20260921T023204Z RED — now blocked by: #1678 #1679 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260921T023204Z` RED — now blocked by: #1678 #1679 (evidence on each). The drive re-fires when the last blocker closes.
Author
Member

gateway-image: snapshot advanced ebe5da4 → fcd6769382b6 by 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).

gateway-image: snapshot advanced `ebe5da4` → `fcd6769382b6` by 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).
Author
Member

drive 20260921T042804Z GREEN end to end — 36/36 legs green — evidence (legs.json, durations, trace, host facts) in test-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.

drive `20260921T042804Z` GREEN end to end — 36/36 legs green — evidence (legs.json, durations, trace, host facts) in `test-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.
Owner

Fire 2 — GREEN 36/36, zero skips (20260921T042804Z, commit 56445548, carries 7434ed9a). #1648 is PROVEN LIVE.

  • Read off the box mid-run (after 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.
  • Frames eyeballed: operator-docs-editing-collabora.png and member-docs-editing-collabora.png are 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.
  • From fire 1's kept box: both callback shapes reach Nextcloud via the pinned name (connection ::1 → ::1, so the ::1 source 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 (zero gate-fault rulings). 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.

**Fire 2 — GREEN 36/36, zero skips** (`20260921T042804Z`, commit `56445548`, carries `7434ed9a`). #1648 is PROVEN LIVE. - **Read off the box mid-run** (after `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. - **Frames eyeballed:** `operator-docs-editing-collabora.png` and `member-docs-editing-collabora.png` are 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. - From fire 1's kept box: both callback shapes reach Nextcloud via the pinned name (connection `::1 → ::1`, so the `::1` source 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 (zero `gate-fault` rulings). 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.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1672
No description provided.