front door: the editor reaches Files over LOOPBACK — pin files.<apex> on the gateway so ADR 0258's callback sources shrink to loopback alone (no public IP in the bypass) #1648
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#1648
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
Make the community's editor (Collabora) reach Files over loopback on the gateway, so the front door's source-bound callback list (ADR 0258) can shrink to loopback alone and drop the gateway's public IP.
Why
Today coolwsd calls
https://files.<apex>; public DNS answers with the gateway's public IP, so the call leaves and re-enters and reaches Caddy from the public address (read off a kept box, #1620 run 4/7 —remote_ip 127.0.0.1 ::1 <public IP>). That is why ADR 0258's source list has to carry the public IP. Two costs:files.<apex>from the gateway itself — the same hazard #1597 closed forid.<apex>(GOTCHAS #249).Sketch
Pin
files.<apex>to127.0.0.1on the gateway (the #1597 mechanism,487f682a), only while docs-editing is placed. coolwsd's calls then arrive at Caddy from loopback;callbackSourcesreturns loopback only and the public IP leaves the rendered matcher.Unproven — check before building
files.<apex>site correctly to a loopback caller (SNI + the real certificate — it binds all interfaces, so it should; not tested).files.<apex>resolving publicly (the rehearsal's own probes dial from outside, so they should be unaffected).files\.<apex>), so the pin should not disturb it — confirm.What it does NOT fix
Gate
This TIGHTENS what the bypass trusts, but it changes the front-door gate's source list, so the change goes to Ben before it lands (ADR 0258: changes to the source list need a ruling). Proof: the #1620 roles-proof drive (files + docs-editing, both roles open a document) green with loopback-only sources.
Ben's instruction (in session, 2026-09-20): build this — blocked on the updates proof drive #1614 so it is picked up automatically once that drive is green and closed. He was told it changes the front-door bypass's source list (a tightening) before saying so. This replaces the "goes to Ben before it lands" gate in the body for THIS change only.
Limits on what a worker may land under this ticket — anything past them is a new ruling, route it
ready-for-human:clan.FilesEditorCallbackPathsis test-pinned, ADR 0258), never move a path onto the openFilesExemptPathslist.files.<apex>to a loopback caller, or something on the gateway needs the public resolution), STOP and report — do not keep the pin AND the public IP, and do not work around it by loosening the gate.docs/architecture/05-identity-architecture.md.Proof: offline tests land with the change; STATUS says seam-proven / live-unproven until a roles-proof drive (the #1620 recipe:
IDSS_ROLES_PROOF=1,IDSS_ROLES_SERVICES=files,IDSS_ROLES_ADD_SERVICE=docs-editing) goes green with both roles opening a document. The worker files that drive ticket (standing-drive) when it lands the change — a swarm worker cannot run the drive itself.swarm-claim host=bens-mac-04 run=28579
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1648 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope