8000 T138 — The hostname proxy refuses a host-address port that listens on 127.0.0.1 only · Issue #2932 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

T138 — The hostname proxy refuses a host-address port that listens on 127.0.0.1 only #2932

Closed

Description

@norrietaylor

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_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.

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
  • 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
    • 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
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.

Activity

  1. added
    kind:task
    size:M
    model:standard
    on Nov 3, 2026
  2. minimal-foundry commented on Nov 3, 2026

    @minimal-foundry
    Contributor

    Done. #2966 merged.

    branch agent/2932-the-hostname-proxy-refuses-a-host-address-port-t · epic #1437 · PR #2966

    round outcome job
    1 pushed 3aaeecdb
    2 pushed 80ee94fc
    3 pushed 9c52db7a

    Updated 2026-11-04T16:58:23.449Z.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:taskmodel:standardsize:M

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0