Skip to content

fix(runtime): reject unclassified SandboxViaOci external binds - #505

Merged
ZhiXiao-Lin merged 8 commits into
mainfrom
feat/b3-sandbox-reject-unclassified-external-binds
Sep 18, 2026
Merged

ZhiXiao-Lin merged 8 commits into
mainfrom
feat/b3-sandbox-reject-unclassified-external-binds

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • After Box-owned volume/workspace storage and managed Secret classification, SandboxViaOci create rejects any remaining OCI type=bind mount as an unclassified external bind.
  • Named/anonymous volumes and /workspace continue to attach as a3s.oci.attachments.v2.
  • Does not invent bind-alias storage identities, close ROADMAP B3/B2, or change MicroVM binds.

Test plan

  • CI Format / Clippy / Test
  • Unit: rejects_external_binds_without_volume_ownership
  • Unit: accepts_volume_owned_binds_after_classification
  • Confirm SDK smoke still uses named volumes (not raw host binds)

ZhiXiao-Lin and others added 6 commits September 18, 2026 07:20
External -v host binds were staged into the OCI bundle but left out of attachments.v2, so create could succeed without a complete storage contract. Fail closed after volume/workspace/secret classification until bind-alias identities land.

Co-authored-by: Cursor <[email protected]>
Classify prepare-rewritten sandbox/attachments/{slot} binds as
a3s.box.bind.{slot} before the unclassified-bind reject gate so -v
works on SandboxViaOci after fail-closed create.

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

Copy link
Copy Markdown
Author

Follow-up landed in #508: classify staged sandbox/attachments/{slot} binds as a3s.box.bind.{slot} before the unclassified reject gate so -v remains usable on SandboxViaOci after this fail-closed create path merges. Stacked on this branch.

ZhiXiao-Lin and others added 2 commits September 18, 2026 07:56
…d-aliases

feat(runtime): attach staged caller bind aliases to v2 storage
@ZhiXiao-Lin
ZhiXiao-Lin merged commit 6857fe6 into main Sep 18, 2026
5 of 7 checks passed
ZhiXiao-Lin added a commit that referenced this pull request Sep 18, 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