Skip to content

feat(runtime): refuse symlink/reparse volume host sources - #498

Merged
ZhiXiao-Lin merged 5 commits into
mainfrom
feat/b3-windows-bind-host-source-fail-closed
Sep 17, 2026
Merged

ZhiXiao-Lin merged 5 commits into
mainfrom
feat/b3-windows-bind-host-source-fail-closed

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • MicroVM/Sandbox volume prepare refuses symlink / Windows reparse host sources before canonicalize follows them (plain file or directory only).
  • Managed VolumeStore create/remove and Runtime Volume path validation apply the same reparse fence.
  • ROADMAP/CHANGELOG Partial only — does not close B3, invent virtio-fs POSIX UID/GID bind parity, or claim host-enforced :ro.

Test plan

  • cargo test -p a3s-box-runtime --lib prepare_volume_mount_rejects_symlink_or_reparse_host_source
  • cargo test -p a3s-box-runtime --lib test_parse_volume_mount
  • cargo check -p a3s-box-runtime -p a3s-box-cli
  • CI green on PR

ZhiXiao-Lin and others added 5 commits September 18, 2026 00:35
Fail closed before canonicalize follows bind or named-volume paths so
Windows junctions cannot widen shares. Does not close B3 or invent POSIX
UID/GID bind parity.

Co-authored-by: Cursor <[email protected]>
Satisfy clippy::match_like_matches_macro so workspace -D warnings CI passes.

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