Skip to content

feat(runtime): stage SandboxViaOci Bridge host veth under keep-authority - #490

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
feat/b3-sandbox-netdevice-stage
Sep 17, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
feat/b3-sandbox-netdevice-stage

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • Under A3S_BOX_OCI_NATIVE_KEEP_NETWORK_DEVICE_AUTHORITY=1 (matched root), SandboxViaOci NetworkMode::Bridge stages one host veth pair (NetworkStore IP/MAC on the container end; peer DOWN/unbridged), emits linux.netDevices, and reuses existing attachments.v3 classify.
  • Without the env, sandbox named bridge still fail-closes at validate/prepare.
  • Does not wire CNI/bridge fabric, unlock Compose named networks, flip b2_process_session_recovery_closed, or close ROADMAP B3/B2.

Test plan

  • cargo test -p a3s-box-runtime --lib runtime_owned_compiler_emits_linux_net_devices
  • cargo test -p a3s-box-runtime --lib runtime_owned_compiler_omits_net_devices
  • Linux CI: local_execution::oci_host_netdevice unit tests
  • Matched-root lab: create/start Bridge sandbox; eth0 has NetworkStore IP; teardown removes lease ifaces

Made with Cursor

Opt-in keep-authority Bridge path creates one host veth, applies NetworkStore IPAM, emits linux.netDevices for attachments.v3. Peer stays unbridged. Keeps B3/B2 open; GA rootless unchanged.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit ff178e4 into main Sep 17, 2026
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant