Skip to content

feat(runtime): write NetworkStore peer hosts for SandboxViaOci Bridge - #495

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

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

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • SandboxViaOci Bridge prepare writes NetworkStore peer discovery into /etc/hosts (plus add-host/hostname aliases) instead of standalone-only hosts.
  • Hosts lookup uses the Box home networks.json. /etc/resolv.conf still follows BoxConfig DNS.
  • Does not add a DNS server/proxy, published ports, flip b2_process_session_recovery_closed, or close ROADMAP B3/B2.

Test plan

  • cargo check -p a3s-box-runtime
  • Linux CI
  • Matched-root lab: two Bridge sandboxes resolve each other by box name in /etc/hosts

Made with Cursor

Bridge sandbox prepare emits peer discovery into /etc/hosts from home networks.json; resolv.conf stays BoxConfig DNS. Keeps B3/B2 open.

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