Azure sandboxes reach the internet
Azure sandboxes can now reach the internet. Declare .egress("internet") and every connection leaves through the deployment's egress gateway, as on AWS, Kubernetes, and Local:
const box = new alien.Sandbox("box")
.code({ type: "image", image: "ghcr.io/example/agent:1.0" })
.egress("internet")Each sandbox gets its own policy. Narrow it at create, or change it while the sandbox runs:
await box.updateEgress(sandboxId, { allow: ["api.github.com", "pypi.org"] })- Gateway: two VMs that initial setup creates in the deployment's network, sized by a setup variable that defaults to
Standard_D2s_v5. The agent in the sandbox connects to either one, so a single VM going down doesn't cut traffic. - Enforced by Azure's network: the sandbox subnet reaches only the gateways' proxy port. Private ranges, instance metadata, and the deployment network stay blocked.
- Same API: per-sandbox allowlists,
updateEgress, links to your own services, and credential rules work the same as on AWS. - Images: images with the Alien agent. Catalog images such as
ubuntuare refused when you build.
Azure internet egress needs the Alien CLI and SDK 3.3.73 or later. Pull deployments need Operator 3.3.69 or later. A deployment that adds an internet Sandbox re-runs initial setup, which creates the gateway VMs.