Skip to content

fix(runtime): fail closed on passt host_port=0 publish - #502

Merged
ZhiXiao-Lin merged 3 commits into
mainfrom
feat/b3-passt-reject-host-port-zero
Sep 17, 2026
Merged

ZhiXiao-Lin merged 3 commits into
mainfrom
feat/b3-passt-reject-host-port-zero

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • MicroVM bridge passt rejects unresolved host_port=0 and invalid port_map entries instead of silently skipping them.
  • Aligns with keep-authority SandboxViaOci DNAT honesty; CLI auto-assign resolution before boot is unchanged.
  • Does not close ROADMAP B3/B2 or claim UDP/Compose auto-assign publish.

Test plan

  • CI Format / Clippy / Test
  • Unit: passt_tcp_port_specs accept static maps; reject 0:guest and invalid entries
  • Confirm no B2/B3 exit-gate flips in ROADMAP

ZhiXiao-Lin and others added 3 commits September 18, 2026 07:01
Bridge passt previously skipped unresolved auto-assign and invalid port_map entries, so publish could look successful while dropping intent. Reject those mappings to match keep-authority DNAT honesty; CLI still resolves 0:guest before boot.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit 8ea73da 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
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
ZhiXiao-Lin added a commit that referenced this pull request Sep 18, 2026
* fix(runtime): OCI-map SandboxViaOci diff baselines

Managed Sandbox prepare previously installed rootfs_snapshot.json via a host walk while live/stopped diff used OCI-mapped metadata modes, so diffs could report mapping noise. Capture the baseline from the same metadata contract and fail closed on prepare; CLI prefers the mapped path when ID mappings are retained.

Co-authored-by: Cursor <[email protected]>

* docs: drop leftover CHANGELOG merge markers after #502

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>
ZhiXiao-Lin added a commit that referenced this pull request Sep 18, 2026
)

* feat(cli): unlock Compose sandbox TCP publish under keep-authority

Admit static TCP ports on Bridge when keep-authority is set, matching
CLI/SDK DNAT. Still refuse UDP and host_port=0; does not close B4.

Co-authored-by: Cursor <[email protected]>

* fix(core): use matches! for keep-authority opt-in

Satisfy clippy::match_like_matches_macro so workspace -D warnings CI passes.

Co-authored-by: Cursor <[email protected]>

* style(cli): rustfmt Compose sandbox published-port error

Satisfy cargo fmt --check on the keep-authority publish path.

Co-authored-by: Cursor <[email protected]>

* fix(runtime): omit false keep-authority in box-owner.json

Skip serializing keep_network_device_authority when false so GA owner
records keep the legacy field set, and teach local SDK smoke to accept
the optional bool. Unblocks Python owner-death evidence after keep-
authority started writing false into box-owner.json.

Co-authored-by: Cursor <[email protected]>

* docs: resolve ROADMAP merge markers after #502

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>
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