You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
min task run: allow --network own_ip on a VM host #3162
min task run --network own_ip refuses on a host that runs boxes in a VM (every macOS host, and Linux on --provider local-minvmd). The refusal was added in #3159, in task_box_network() in crates/minimal/src/task.rs.
Why it refuses: an own-address box on a VM host registers its host row with the VM host daemon under the name it will have, before its create (T66). A task box is a fresh instance, and the daemon gives it its name only at the create. There is no name to register the row under, so the run refuses rather than create a box that no host row holds. The refusal fails closed.
The design expects own_ip boxes on LocalVM (gominimal/arch architecture.md, line 1264 at 7a86ec7b, the enforcement chain's host-wide rules).
Flip condition: remove the refusal when a fresh-instance task box can register its host row under the name the daemon gives it at create (T66). The refusal's comment in task_box_network() names this issue.
Done when:
min task run --network own_ip creates an own-address task box on a VM host, with a host row under its daemon-given name.
The refusal and its unit-test expectation are removed.
An e2e leg on a VM lane shows the box's egress follows its rules and it cannot reach a host loopback port no [host-exposures] entry opens.
Activity
docs(task): name #3162 and its flip condition on the own_ip VM-host r…
feat(minimal): take the network and egress flags on min task run and …