Repository navigation
Commit 07c508c
sandbox: name the runtime identity and gateway without the old store and plan
Two of the shared sandbox modules still reached old APIs for values
that the new interface already owns. `sandbox/mod.rs` named the
artifacts' runtime identity through `host::store`, which only re-exports
`host::runtime::RuntimeIdentity`, and `sandbox/options.rs` found the
gateway of `--net` through `host::sandbox::plan::guest_gateway`, the old
plan's wrapper around `net::guest_gateway`.
`sandbox/mod.rs` now imports `RuntimeIdentity` from `host::runtime`.
`sandbox_network` checks `--net` with `Ipv4Cidr::parse`, whose refusal
is the plan's word for word, `guest network "ADDRESS" must be an IPv4
address with a /1 to /30 prefix that is not its network's network,
broadcast, or gateway (first) address`, with the same code, and takes
the gateway from `net::guest_gateway`, which finds one for every address
that parses. The order of the refusals does not change, and
`SandboxNetwork::new` still checks the network.
This is the first step of SL3.10b, whose split was approved once its
measured scope came to about ten times its estimate: SL3.10c moves the
sandbox network to `NetworkConfig`, and SL3.10d moves the launch off
`SandboxLaunch`, `SandboxSettings` and `SandboxUpper`.
Tests: `network_policies_that_the_planner_refuses_fail_before_launch`
in tests/cli.rs keeps checking, word for word, that `sandbox run
--dry-run` and `sandbox provision` refuse `--net 10.0.0.1/24` before
they launch or record anything.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent ccea875 commit 07c508c
2 files changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | | - | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
435 | 438 | | |
436 | 439 | | |
437 | 440 | | |
| |||
0 commit comments