anthropics / anthropics/claude-agent-sdk-typescript
`sandbox.network.allowedDomains` not enforced for Bash tool or WebFetch
- Lingua principale
- Shell
- Stelle
- 1.8k
- Fork
- 226
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
## Summary
`sandbox.network.allowedDomains` is accepted by the SDK but has no enforcement
effect on Bash subprocess network calls or WebFetch requests.
## Steps to Reproduce
Configure sandbox:
{ "sandbox": { "enabled": true, "network": { "allowedDomains": ["*.walmart.com"] } } }
Run: curl https://google.com (via Bash tool)
Or: WebFetch https://google.com
## Expected
Both blocked. Error returned for non-allowed domains.
## Actual
Both succeed. Restriction silently ignored.
## Root Cause
No OS-level enforcement exists — no proxy, no pf rules, no seccomp/bubblewrap,
no Darwin Sandbox. Bash subprocesses have full network access regardless of config.
The SDK docs say "use WebFetch permission rules for network" but WebFetch is also
not blocked. It's unclear what allowedDomains actually enforces.
## SDK version: 0.2.120 / macOS
## Request
Either implement real enforcement or document clearly that Bash network is unrestricted.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.