Skip to content

fix(core): resolve host_port=0 at product admission - #503

Merged
ZhiXiao-Lin merged 4 commits into
mainfrom
feat/b3-resolve-auto-host-ports-at-admission
Sep 17, 2026
Merged

ZhiXiao-Lin merged 4 commits into
mainfrom
feat/b3-resolve-auto-host-ports-at-admission

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • Move Docker-style 0:guest ephemeral host-port resolution into a3s-box-core and call it from CLI, MicroVM Compose build_box_config, and SDK Sandbox admission.
  • Prevents unresolved auto-assign from reaching TSI/passt/keep-authority DNAT where it was skipped or rejected.
  • Scale catalogs still keep raw 0:guest for discovery. Does not unlock Compose sandbox GA publish or close B3/B4/B2.

Test plan

  • CI Format / Clippy / Test
  • a3s-box-core port resolve unit tests
  • Compose test_build_box_config_resolves_auto_assigned_host_port
  • Confirm scale catalog tests still accept ports = [\"0:8080\"]

ZhiXiao-Lin and others added 4 commits September 18, 2026 07:07
CLI already allocated ephemeral ports for 0:guest, but Compose and the SDK left unresolved auto-assign in port_map so TSI/passt could silently drop publish intent. Share normalize_and_resolve_port_maps in core and use it at CLI/Compose/SDK admission; scale catalogs keep raw 0:guest.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit 8dc16b1 into main Sep 17, 2026
0 of 7 checks passed
ZhiXiao-Lin added a commit that referenced this pull request Sep 17, 2026
ZhiXiao-Lin added a commit that referenced this pull request Sep 17, 2026
ZhiXiao-Lin added a commit that referenced this pull request Sep 17, 2026
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