reachability: the S10 gate probes 80/443 only — passes with 53, 51820 and 3478 closed #328
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#328
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?
webPorts = []int{80, 443}(internal/reachability/prober.go:32) and the probe passes "the moment at least one answers" (:127-132).A gateway needs more than that publicly reachable:
internal/clan/acmedns.go:108-109,listen = "0.0.0.0:53")docs/architecture/03-fleet-topology.md:45):46)So founding can declare the gateway reachable, wire the name, and hand off — leaving a fleet whose certificates will fail at first renewal and whose remote nodes cannot join. For a single-site fleet the mesh forms over the LAN and this does not bite, which is likely why it has not been seen.
Note "at least one answers" is also weaker than it looks: a gateway serving 80 but not 443 passes.
Definition of done
The gate probes the ports the gateway actually needs for the configuration being stood up (mail ports only when mail is provisioned), and reports per-port results so the three troubleshooting lanes stay accurate. Worth confirming whether the current behaviour is a live gap for multi-site fleets before choosing the fix.
Found 2026-08-07 while scoping home-gateway reachability (dynamic address / automatic port opening / IPv6). Full trace in
docs/research/2026-08-07-home-gateway-reachability-scope.md.Verified:
webPorts = []int{80, 443}confirmed as the only ports probed, and confirmed the pass condition is "at least one of these answers" (an early return oncelen(open) > 0). Confirmed acme-dns's public listener is on port 53, WireGuard on 51820/udp and coturn on 3478/udp per the architecture doc, and mail ports per ADR 0115 — none of these are probed anywhere in the reachability package. Claim holds.Agent Brief
Category: bug
Summary: The public reachability gate should probe the ports the configuration being stood up actually needs, not just 80/443, and report per-port results.
Current behavior:
The outside-in reachability probe checks only ports 80 and 443, and passes as soon as one of the two answers. It never checks DNS (53), WireGuard (51820/udp), the TURN relay (3478/udp), or mail ports — so a gateway can pass the gate and hand off with, e.g., 443 open but 80 closed, or with DNS/mesh/mail unreachable. For a single-site, non-mail fleet this doesn't currently bite (the mesh forms over the LAN), which is likely why it hasn't been noticed.
Desired behavior:
The gate probes the set of ports relevant to the configuration being stood up — both web ports always, DNS when acme-dns is part of the setup, mail ports when mail is provisioned — and reports which specific ports are open/filtered/refused, rather than collapsing to a single pass/fail bit, so the existing three troubleshooting lanes (ports/firewall/CGNAT) stay accurate per port rather than for an aggregate result.
Key interfaces:
Acceptance criteria:
Out of scope:
Fixed in
cd6710f(onmain).The P1-S10 gate no longer passes on "at least one of 80/443 answers" — both web ports are now required, and the port set is scoped to the configuration being stood up:
founding.Reachability.Probenow takes aProbeSpec{AcmeDNS, Mail};RunReachabilityderives it from the draft Address kind — own-domain runs acme-dns for the delegated zone (ADR 0014) so port 53 is probed and required, while the broker-delegated subdomain path needs no acme-dns port. Mail is provisioned later (ADR 0115), so it is never in the founding-time spec, but the same probe covers25/465/587/993once a mail-provisioning surface drives it.ReachabilityResultnow carries a per-port[]PortResult(open/refused/filtered) and the ports/firewall lanes name the actual not-open ports, so the three troubleshooting lanes stay accurate per port rather than collapsing to one bit.Acceptance:
TestProbe_OneWebPortClosedDoesNotPass).TestProbe_MailPortsProbedOnlyWhenProvisioned).TestProbe_AcmeDNSPortProbedWhenInSpec+ founding wiringTestReachabilityProbeSpecScopedToAddressKind).Out of scope per triage: the multi-site WireGuard/relay blocking policy stays a separate architectural ruling (#329) — this slice does not gate single-site hand-off on ports it does not need.
Evidence:
internal/reachability/prober_test.go,internal/founding/standup_test.go;control-plane/cmd/smoke-reachability+scripts/smoke-reachability.shupdated to answer on both web ports (live clan-lab run deferred).go build/vet/test+ the push go-ci gate (golangci-lint) green.