-
Notifications
You must be signed in to change notification settings - Fork 4.6k
fix(sandbox): allowlist exec environment; require explicit opt-in for unconfined Linux #4617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
14b4307
1841aef
cf95e16
3fa17d8
4667a57
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -81,6 +81,7 @@ | |
| if _p not in sys.path: | ||
| sys.path.insert(0, _p) | ||
|
|
||
| from examples.sandbox.misc.example_support import unix_local_client # noqa: E402 | ||
| from examples.sandbox.misc.workspace_shell import WorkspaceShellCapability # noqa: E402 | ||
|
|
||
|
|
||
|
|
@@ -638,10 +639,10 @@ async def run_worker() -> None: | |
| ) | ||
|
|
||
| from agents.extensions.sandbox import DaytonaSandboxClient, E2BSandboxClient | ||
| from agents.sandbox.sandboxes import DockerSandboxClient, UnixLocalSandboxClient | ||
| from agents.sandbox.sandboxes import DockerSandboxClient | ||
|
|
||
| sandbox_clients: list[SandboxClientProvider] = [ | ||
| SandboxClientProvider("local", UnixLocalSandboxClient()), | ||
| SandboxClientProvider("local", unix_local_client()), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
On Linux without AGENTS.md reference: AGENTS.md:L157-L157 Useful? React with 👍 / 👎. |
||
| ] | ||
| if _os.environ.get("DAYTONA_API_KEY"): | ||
| sandbox_clients.append(SandboxClientProvider("daytona", DaytonaSandboxClient())) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.