8000 fix(minvmd): drop tcp to a decided box's resolver instead of reading streams · gominimal/minimal@d868c7a · GitHub
[go: up one dir, main page]

Skip to content

fix(minvmd): drop tcp to a decided box's resolver instead of reading …

Minimal Arch / arch-review succeeded Nov 19, 2026 in 0s

PASS

Inputs. Re-review of #3592 at d868c7a9, on arch 8b824707, the same arch as every earlier ruling on this PR. The latest ruling that is not a FAIL or a CONFIRM is the PASS at 026d4760. since-conditions.json is empty after that PASS, so no condition is open and the compare is enough. I checked that since.diff equals git diff 026d4760..d868c7a9 and that pr.diff equals git diff b02a7880..d868c7a9. The compare holds one commit, d868c7a9. No findings.json or arch-map.md is staged, so I found the sections by search, as the earlier rulings did.

What the compare does. It removes the host-side TCP DNS stream reader (DnsTcpStreams, reset_from_box in forward_revoke.rs). In its place, dns_pins::tcp_query_refusal drops every TCP segment from a decided row (deny-all, or one that declares allow_dns_hosts) to its own resolver on port 53, first fragments included. The drop logs one rate-limited line through warn_refused_dns_query with the name <tcp dns>. The spec 18 NET-141 annotation (line 566) and the known-limits paragraph (lines 1508-1516) now say that the host-side copy decides UDP and drops TCP for these rows, and that a lookup after a truncated UDP answer is not served. No reference to the removed symbols remains in crates/.

Governs. §5.3 line 146 (matched names resolve, non-matching names are refused), §4.1 line 54 (the resolver is the one carve-out, every other name is still refused) and §7.1 line 245 (on LocalVM the host-side helpers implement the §5.3 semantics, default-deny).

Ruling. The design does not name a DNS transport. The drop is fail-closed (rubric rule 7): a TCP query to the resolver is a path the host-side gate no longer reads, so it refuses it. It does not open a path, and it closes one. On base, an allow-list row whose subnets cover the gateway reached the resolver over TCP undecided. That carried any name past §5.3 line 146. The resolver opening in crates/boxes/src/core/egress.rs (lines 194-199) admits UDP under any declaration and leaves TCP to the box's own rules. The in-VM gate (crates/minimald/src/net/dns_gate.rs lines 221-226) already says that the UDP datagram is the only DNS path v1 carries. So the host-side copy now matches the in-VM copy, and the spec records the cost in its stated limits. The test decided_rows_tcp_to_the_resolver_never_reaches_the_switch proves the gate itself (rubric rule 3). The allow-list row admits 0.0.0.0/0 over TCP, a declared name's TCP query is dropped, the drop is silent toward the guest, and the line names the box, the source and egress-unmatched-dns-name. TCP to another address and from a row with no names still passes. NET-141 conforms. This follows the PASS rulings at 456aa59d and earlier, which accepted a UDP-only host-side decision before the TCP reader was added.

Not checked. I did not compile or run the tests, per the instructions. The session e2e leg is unchanged by this compare.

Ruled at d868c7a against gominimal/arch@8b824707cde6 by claude-opus-5-5; arch_rulings 1524, job c5409cf9-130b-42ce-aeb2-59a11a0102c5.

0