files-door: #1105's own strictness reads the front-door config with a symlink-blind grep -r, so a gateway routing correctly over the mesh reds as "the files route is absent" #1118

Closed
opened 2026-09-01 20:32:04 +00:00 by ben · 0 comments
Owner

The red

Drive 20260901T201017Z took deploy-takeover GREEN a second time (the takeover is now reliably green) and red at files-door on the sentence #1105 added:

the gateway renders no reverse_proxy/proxy_pass line at all — the files route is absent,
not merely pointed at the wrong target (ADR 0210, #1105)

That conclusion is false. Read live off the standing gateway (170.64.146.102) with the rent-operator key:

# files.rehearsal-e.idss.nz → 100.118.121.63:80 over the mesh (wt0), behind the auth gate.
@files host files.rehearsal-e.idss.nz
handle @files {
    reverse_proxy 100.118.121.63:80 {

The route is present, and it is exactly ADR 0210's contract — the front door proxying to the device's mesh address, with grep -c 127.0.0.1:8084 = 0.

Cause — mine, and the same family the assertion was written to fix

grep -r does not follow symlinks it meets while walking a directory (only ones named as command-line arguments). NixOS renders the config as:

/etc/caddy/caddy_config -> /etc/static/caddy/caddy_config

so grep -rh reverse_proxy /etc/caddy returns empty on a correctly-configured box. Before #1105 that empty result passed vacuously — the check could never fail, which is precisely why #1105 tightened it. But the tightened version drew a confident conclusion from an input it could not observe: it said the route is absent when the truth was I could not read the config.

So #1105 turned a silent false-pass into a loud false-fail. Loud is better — but the sentence was wrong, and it cost a drive.

The generalisable lesson, beyond the flag: an assertion must distinguish "the thing is wrong" from "I could not see the thing". That is the seventh instance in this arc of a check reporting something it had no way to observe, and the first one I introduced myself.

Fix (landed)

  • grep -Rh — capital R dereferences symlinks — for both the caddy and nginx reads. Proven live on the gateway: -r yields nothing, -R yields the seven reverse_proxy lines including the device's mesh target, and the 127.0.0.1:8084 count is 0, so the leg now passes for the right reason.
  • The empty-output sentence no longer asserts the route is absent; it names both possibilities (absent, or unreadable where we looked) as failures of the assertion itself.
  • #1105's other strict checks are unchanged: a missing gateway IP, a non-zero ssh exit, and a 127.0.0.1:8084 target all still fail loud (ADR 0100).

Filed and fixed in one motion by the watching session under ADR 0174 — harness-only, revertible, and verified against the live gateway before landing.

## The red Drive `20260901T201017Z` took **`deploy-takeover` GREEN a second time** (the takeover is now reliably green) and red at `files-door` on the sentence #1105 added: ``` the gateway renders no reverse_proxy/proxy_pass line at all — the files route is absent, not merely pointed at the wrong target (ADR 0210, #1105) ``` **That conclusion is false.** Read live off the standing gateway (`170.64.146.102`) with the rent-operator key: ``` # files.rehearsal-e.idss.nz → 100.118.121.63:80 over the mesh (wt0), behind the auth gate. @files host files.rehearsal-e.idss.nz handle @files { reverse_proxy 100.118.121.63:80 { ``` The route is present, and it is exactly ADR 0210's contract — the front door proxying to the **device's mesh address**, with `grep -c 127.0.0.1:8084` = **0**. ## Cause — mine, and the same family the assertion was written to fix `grep -r` does not follow symlinks it meets while walking a directory (only ones named as command-line arguments). NixOS renders the config as: ``` /etc/caddy/caddy_config -> /etc/static/caddy/caddy_config ``` so `grep -rh reverse_proxy /etc/caddy` returns **empty on a correctly-configured box**. Before #1105 that empty result passed vacuously — the check could never fail, which is precisely why #1105 tightened it. But the tightened version drew a confident conclusion from an input it could not observe: it said *the route is absent* when the truth was *I could not read the config*. So #1105 turned a silent false-pass into a loud false-fail. Loud is better — but the sentence was wrong, and it cost a drive. **The generalisable lesson, beyond the flag:** an assertion must distinguish *"the thing is wrong"* from *"I could not see the thing"*. That is the seventh instance in this arc of a check reporting something it had no way to observe, and the first one I introduced myself. ## Fix (landed) - `grep -Rh` — capital `R` dereferences symlinks — for both the caddy and nginx reads. **Proven live on the gateway:** `-r` yields nothing, `-R` yields the seven `reverse_proxy` lines including the device's mesh target, and the `127.0.0.1:8084` count is 0, so the leg now passes for the right reason. - The empty-output sentence no longer asserts the route is absent; it names both possibilities (absent, or unreadable where we looked) as failures of the assertion itself. - #1105's other strict checks are unchanged: a missing gateway IP, a non-zero ssh exit, and a `127.0.0.1:8084` target all still fail loud (ADR 0100). Filed and fixed in one motion by the watching session under ADR 0174 — harness-only, revertible, and verified against the live gateway before landing.
ben closed this issue 2026-09-01 20:32:30 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1118
No description provided.