network rules to narrow the allowlist further.
Allow specific destinations
allowOut / allow_out accepts a mix of CIDRs and domain patterns. Combine it with denyOut: ["0.0.0.0/0"] to build a strict allowlist - deny everything, then add exceptions. Do not rely on allowOut without denyOut to keep other egress open: it can also block destinations that are not on the list, so list every host the workload needs.
Rule format
Allow rules take precedence over deny rules when they overlap.
Update rules on a running sandbox
Networking can be updated after creation - changes apply immediately to new connections. The sandbox must beactive; updating network on a paused sandbox returns a ConflictError. Resume it first, or set the rules at creation so they follow the sandbox through every pause and resume.
Rules only filter traffic the sandbox itself initiates. The SDK reaches the
sandbox through the platform rather than through its network, so commands
and file operations keep working under a deny-all policy.