@@ -3051,14 +3051,6 @@ class SandboxSettings(TypedDict, total=False):
| `ignoreViolations` | [`SandboxIgnoreViolations`](#sandbox-ignore-violations) | `None` | Configure which sandbox violations to ignore |
| `enableWeakerNestedSandbox` | `bool` | `False` | Enable a weaker nested sandbox for compatibility |
-**Filesystem and network access restrictions** are NOT configured via sandbox settings. Instead, they are derived from [permission rules](/en/settings#permission-settings):
-
-- **Filesystem read restrictions**: Read deny rules
-- **Filesystem write restrictions**: Edit allow/deny rules
-- **Network restrictions**: WebFetch allow/deny rules
-
-Use sandbox settings for command execution sandboxing, and permission rules for filesystem and network access control.
-
#### Example usage
```python
@@ -3085,6 +3077,9 @@ Network-specific configuration for sandbox mode.
```python
class SandboxNetworkConfig(TypedDict, total=False):
+ allowedDomains: list[str]
+ deniedDomains: list[str]
+ allowManagedDomainsOnly: bool
allowLocalBinding: bool
allowUnixSockets: list[str]
allowAllUnixSockets: bool
@@ -3094,12 +3089,17 @@ class SandboxNetworkConfig(TypedDict, total=False):
| Property | Type | Default | Description |
| :- | :- | :- | :- |
+| `allowedDomains` | `list[str]` | `[]` | Domain names that sandboxed processes can access |
+| `deniedDomains` | `list[str]` | `[]` | Domain names that sandboxed processes cannot access. Takes precedence over `allowedDomains` |
+| `allowManagedDomainsOnly` | `bool` | `False` | Managed-settings only: when set in managed settings, ignore `allowedDomains` from non-managed settings sources. Has no effect when set via SDK options |
| `allowLocalBinding` | `bool` | `False` | Allow processes to bind to local ports (e.g., for dev servers) |
| `allowUnixSockets` | `list[str]` | `[]` | Unix socket paths that processes can access (e.g., Docker socket) |
| `allowAllUnixSockets` | `bool` | `False` | Allow access to all Unix sockets |
| `httpProxyPort` | `int` | `None` | HTTP proxy port for network requests |
| `socksProxyPort` | `int` | `None` | SOCKS proxy port for network requests |
+The built-in sandbox proxy enforces the network allowlist based on the requested hostname and does not terminate or inspect TLS traffic, so techniques such as [domain fronting](https://en.wikipedia.org/wiki/Domain_fronting) can potentially bypass it. See [Sandboxing security limitations](/en/sandboxing#security-limitations) for details and [Secure deployment](/en/agent-sdk/secure-deployment#traffic-forwarding) for configuring a TLS-terminating proxy.
+
### `SandboxIgnoreViolations`
Configuration for ignoring specific sandbox violations.