Skip to content

feat(runtime): DNAT published TCP ports for keep-authority Bridge - #496

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

ZhiXiao-Lin merged 1 commit into
mainfrom
feat/b3-sandbox-bridge-publish

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • CLI/SDK SandboxViaOci admits static TCP port_map only with Bridge + A3S_BOX_OCI_NATIVE_KEEP_NETWORK_DEVICE_AUTHORITY=1; installs iptables DNAT (PREROUTING + localhost OUTPUT) and FORWARD accept to the NetworkStore endpoint IP.
  • Rejects host_port=0. Compose sandbox published ports remain fail-closed.
  • Does not flip b2_process_session_recovery_closed or close ROADMAP B3/B4/B2.

Test plan

  • cargo check -p a3s-box-core -p a3s-box-runtime
  • cargo test -p a3s-box-core --lib sandbox_rejects_vm_only_features_together
  • Linux CI / matched-root lab: -p 18080:80 reaches container; teardown removes DNAT rules

Made with Cursor

Admit static TCP port_map under Bridge+keep-authority; install per-box DNAT/FORWARD. Compose ports stay fail-closed. Keeps B3/B2 open.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit e87e015 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