Skip to content

feat: support sandbox extra path grants#2920

Merged
qiyaoq-oai merged 7 commits intomainfrom
feat/allow-extra-path
Apr 17, 2026
Merged

feat: support sandbox extra path grants#2920
qiyaoq-oai merged 7 commits intomainfrom
feat/allow-extra-path

Conversation

@qiyaoq-oai
Copy link
Copy Markdown
Contributor

  • Add SandboxPathGrant manifest support for explicit access to absolute paths outside sandbox workspace.
  • Centralize path handling in WorkspacePathPolicy.normalize_path(...), including extra grant matching, symlink-aware host validation, and most-specific grant selection.
  • Harden access boundaries by rejecting filesystem-root grants, // root aliases, and grants that resolve to /.
  • Preserve nested grant semantics, including writable parent + read-only child cases through remote symlink targets and macOS exec confinement.
  • Update sandbox provider integrations to use shared path policy across Docker, Unix-local, Runloop, Vercel, Cloudflare, E2B, Modal, Daytona, and Blaxel.

@qiyaoq-oai qiyaoq-oai changed the title Feat/allow extra path Support sandbox extra path grants Apr 17, 2026
@github-actions github-actions bot added documentation Improvements or additions to documentation enhancement New feature or request feature:extensions feature:sandboxes labels Apr 17, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2da3f45ba3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/agents/extensions/sandbox/runloop/sandbox.py Outdated
@seratch seratch added this to the 0.14.x milestone Apr 17, 2026
@seratch seratch changed the title Support sandbox extra path grants feat: support sandbox extra path grants Apr 17, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c9deeda4d2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/agents/extensions/sandbox/daytona/sandbox.py Outdated
Comment thread src/agents/extensions/sandbox/blaxel/sandbox.py Outdated
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b3ed127e50

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/agents/extensions/sandbox/vercel/sandbox.py Outdated
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

workspace_path = self.normalize_path(path)

P1 Badge Validate Daytona read paths via remote realpath helper

DaytonaSandboxSession.read() still uses lexical self.normalize_path(path) instead of _validate_path_access. A workspace symlink (for example link/secret.txt) can resolve outside /workspace and still be downloaded via fs.download_file, bypassing extra_path_grants confinement for SDK reads. This leaves ungranted filesystem reads possible through symlink targets.


workspace_path = self.normalize_path(path)

P1 Badge Validate Blaxel read paths via remote realpath helper

BlaxelSandboxSession.read() also calls lexical self.normalize_path(path) and then fs.read_binary. If a path inside the workspace traverses a symlink to an ungranted location, the read can still succeed, so read boundaries do not match the new extra-grant model. Use _validate_path_access (remote realpath check) before invoking the file API.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/agents/extensions/sandbox/vercel/sandbox.py Outdated
@qiyaoq-oai
Copy link
Copy Markdown
Contributor Author

@codex review again please

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 926cd4c7db

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/agents/extensions/sandbox/blaxel/sandbox.py Outdated
Comment thread src/agents/extensions/sandbox/daytona/sandbox.py Outdated
@qiyaoq-oai qiyaoq-oai merged commit 3772047 into main Apr 17, 2026
9 checks passed
@qiyaoq-oai qiyaoq-oai deleted the feat/allow-extra-path branch April 17, 2026 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies documentation Improvements or additions to documentation enhancement New feature or request feature:extensions feature:sandboxes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants