Changelog

Sandboxes reach your services through links

A sandbox can now call your own services, such as your app's API, without them being public:

alien.ts
const tools = new alien.Sandbox("tools")
  .code({ type: "image", image: "ghcr.io/example/tools:1.0" })
  .egress("internet")
  .link(api)
  .build()

Every sandbox of tools reaches api through the egress gateway, with the same per-sandbox policy, checks, and connection log as its internet traffic. The gateway connects to api inside the deployment's network. Commands in the sandbox read the URL from ALIEN_API_BINDING, as a linked Container does.

  • Any TCP protocol: HTTP, WebSocket, gRPC, and database or cache protocols, on api's declared ports
  • Runtime policies narrow links: "internet" allows every declared link, { allow: ["link:api"] } only the links it names, { allow: [] } none
  • Declared in the stack: sandbox code and runtime policies can't add a link
  • Platforms: AWS, Azure, Kubernetes, and Local. Google Cloud refuses links when you build.

Links need the Alien CLI and SDK 3.3.74 or later, and an Operator from 3.3.72 or later on Kubernetes.

Read the docs →