Repository navigation
Closed
Labels
kind:taskA task the plan skill rendered; the body carries ## Taskmodel:standardA standard model: work that needs care, or routine work that is largesize:M200 to 500 net lines; one PR
Description
Task
| slice | size | difficulty | model | who | estimated lines |
|---|---|---|---|---|---|
| macOS names open | M | needs care | standard | an agent | 350 (150 code, 200 tests) |
A request through the hostname proxy to a
host_ipbox's port bound to 127.0.0.1 only is refused with 403, telling the user to bind it to 0.0.0.0, and a host service on 127.0.0.1 is never reached by a box name.
Covers:
- NET-071
Layers:
- route:
- crates/minimald/src/net/dns.rs: a host-address route forwards a port only while a listener holds it at 0.0.0.0 or another non-loopback address, read from the daemon's own
/proc/net/tcp; a port that only a 127.0.0.1 listener holds gives a loopback-only verdict, on a native daemon and inside a VM alike cargo nextest run -p minimald loopback_only_listener_read_from_proc_net_tcp
- crates/minimald/src/net/dns.rs: a host-address route forwards a port only while a listener holds it at 0.0.0.0 or another non-loopback address, read from the daemon's own
- proxy:
- crates/minimald/src/net/proxy.rs: a loopback-only verdict is refused 403 with the body
The box listens on this port at 127.0.0.1 only. Bind it to 0.0.0.0 to reach it by name.and the ruleloopback-only listener, before anything is dialed - crates/minimald/src/server/tests.rs:
spawn_backend_sayinglistens at 0.0.0.0, since the proxy now refuses a 127.0.0.1-only host-address backend - crates/minimald/tests/classifier_root_integration.rs: the proof's backend binds 0.0.0.0, for the same refusal
- crates/minvmd/tests/guest_classifier_integration.rs: the deny-all box's server binds 0.0.0.0, for the same refusal
cargo nextest run -p minimald proxy_refuses_loopback_only_host_address_port
- crates/minimald/src/net/proxy.rs: a loopback-only verdict is refused 403 with the body
- spec:
- docs/specs/18-spec-box-networking/18-spec-box-networking.md: NET-071 gains a sub-requirement: IF a request through the hostname proxy targets a host-address box's port that a listener holds only at 127.0.0.1 THEN THE SYSTEM SHALL refuse it and tell the user to bind the port to 0.0.0.0; tier T0, verified by proxy_refuses_loopback_only_host_address_port
Plan block
### T138 — The hostname proxy refuses a host-address port that listens on 127.0.0.1 only
slice: S0
kind: task
covers: NET-071
size: M
est: 150 code, 200 tests
executor: agent
difficulty: needs care
model: standard
diagnostics: what a person reads is the refusal: a request through the hostname proxy to a `host_ip` box's port that only a 127.0.0.1 listener holds gets 403 with the body "The box listens on this port at 127.0.0.1 only. Bind it to 0.0.0.0 to reach it by name.", pinned by proxy_refuses_loopback_only_host_address_port; `min bug` bundles carry the daemon log, whose refusal line names the rule `loopback-only listener`
observability: the proxy's `network policy violation` line carries `rule_matched="loopback-only listener"` with the box and the port
layers:
- route:
- crates/minimald/src/net/dns.rs: a host-address route forwards a port only while a listener holds it at 0.0.0.0 or another non-loopback address, read from the daemon's own `/proc/net/tcp`; a port that only a 127.0.0.1 listener holds gives a loopback-only verdict, on a native daemon and inside a VM alike
test: cargo nextest run -p minimald loopback_only_listener_read_from_proc_net_tcp
- proxy:
- crates/minimald/src/net/proxy.rs: a loopback-only verdict is refused 403 with the body `The box listens on this port at 127.0.0.1 only. Bind it to 0.0.0.0 to reach it by name.` and the rule `loopback-only listener`, before anything is dialed
- crates/minimald/src/server/tests.rs: `spawn_backend_saying` listens at 0.0.0.0, since the proxy now refuses a 127.0.0.1-only host-address backend
- crates/minimald/tests/classifier_root_integration.rs: the proof's backend binds 0.0.0.0, for the same refusal
- crates/minvmd/tests/guest_classifier_integration.rs: the deny-all box's server binds 0.0.0.0, for the same refusal
test: cargo nextest run -p minimald proxy_refuses_loopback_only_host_address_port
- spec:
- docs/specs/18-spec-box-networking/18-spec-box-networking.md: NET-071 gains a sub-requirement: IF a request through the hostname proxy targets a host-address box's port that a listener holds only at 127.0.0.1 THEN THE SYSTEM SHALL refuse it and tell the user to bind the port to 0.0.0.0; tier T0, verified by proxy_refuses_loopback_only_host_address_port
produces: none
consumes: none
proof: A request through the hostname proxy to a `host_ip` box's port bound to 127.0.0.1 only is refused with 403, telling the user to bind it to 0.0.0.0, and a host service on 127.0.0.1 is never reached by a box name.
Reacted by minimal-foundry
Metadata
Metadata
Assignees
Labels
kind:taskA task the plan skill rendered; the body carries ## Taskmodel:standardA standard model: work that needs care, or routine work that is largesize:M200 to 500 net lines; one PR
Activity
minimal-foundry commentedon Nov 3, 2026
Done. #2966 merged.
branch
agent/2932-the-hostname-proxy-refuses-a-host-address-port-t· epic #1437 · PR #29663aaeecdb80ee94fc9c52db7aUpdated 2026-11-04T16:58:23.449Z.