Repository navigation
CONDITIONS
Governs: specs/networking/deployment-and-egress-gateway.md §5.3 line 145 ("Non-matching names are refused.") and §4.1 line 54 (the deny-all carve-out is the resolver alone, so in-zone names resolve and every other name is refused).
Ruling. The design requires a refusal, and it does not name an rcode. An NXDOMAIN that the relay makes itself, with nothing forwarded, is a refusal in that sense. The change also gives the fast failure that the design asks of a refusal elsewhere (§5.7 line 201, "deterministic fast failure at the surface, never a stall"). That line governs the HTTP surfaces, so I use it only as support. The spec amendment follows the design (rule 9). The SOA builder is in boxes::core::zone_answer, next to ANSWER_TTL_SECS, and both relays use it. The placement is correct (rule 8). The forward-nothing order in decide is unchanged (rule 7). The relay's warning carries answer = "NXDOMAIN". The guest's debug line prints answer=NXDomain through ?rcode. The design names no field here, so this is not a deviation.
Three conditions remain. C1: the PR body says that the VM-lane test guest_deny_all_resolver_reachable still expects rcode 5 and answer=Refused. No issue is linked. This PR breaks that proof, so this PR fixes it. C2: the e2e leg exited 1 on this head, and not_run is not a pass (rule 4). C3: NET-141 now says the resolver Minimal owns for a box answers NXDOMAIN. For a native deny-all host-address box, that resolver is the zone answerer (provider.rs host_ip_box_resolves_through_answerer). The answerer still answers REFUSED, so getent hosts example.com in that box still sees a temporary failure. The design allows REFUSED there, and the answerer is outside this task's layers. For that reason the condition is to state the gap in the spec and file it, not to change the answerer.
Precedent: #2997 used §5.3 line 145 for NET-141. This ruling agrees with it.
Not checked: whether glibc and npm read the root-owned SOA as the PR says. That needs a run in a real box, which is C2. I did not compile.
Conditions
- C1:
crates/minvmd/tests/guest_classifier_integration.rsguest_deny_all_resolver_reachable(lines 1237-1256): assert therefusedread is "3", not "5", and match the guest boot-log line onanswer=NXDomain, notanswer=Refused. Update the comment and the failure messages to say NXDOMAIN. This PR changes the guest listener, so without this edit the MINVMD_E2E VM lane proof of NET-079 fails on this head. - C2: Run
./scripts/session-e2e.sh own_ip_egress_declared_and_enforcedon a lane that can run it, for this head, and record a pass in the PR's Tests table. The run on this head exited 1. Its deny-all and partial-allow-list legs are the only proof of the NXDOMAIN and root SOA on the wire inside a real box. A leg that did not run is open. - C3:
docs/specs/18-spec-box-networking/18-spec-box-networking.mdNET-141 scope comment: add that a native deny-all host-address box resolves through the box zone's answerer (NET-079), and that the answerer still answers an out-of-zone name REFUSED (crates/minimald/src/net/answerer.rs, thezone_answer::Verdict::Refusedarm). State this as a residual. File an issue for it, and link the issue from the comment and from the PR body.
Ruled at 5a5cfd8 against gominimal/arch@7a86ec7bb3c0 by claude-opus-5-5; arch_rulings 920, job 2e1b6d66-f819-4581-95fc-06e03d70b872.