Skip to content

Sandbox security

Every build runs in its own sandbox. This page describes the properties that sandbox has. They hold for every engine and every model.

  • One build, one sandbox, one organization. Sandboxes are never shared or reused between builds or between customers.
  • Stronger than a container. Each sandbox runs behind hardware virtualisation or an isolated user-space kernel, so the code in it does not share an operating system kernel with anything else. Plain containers are not used for builds.
  • Disposable. The sandbox is destroyed when the build ends. A new build starts from a clean environment.

The engine never holds a secret: not a git token, not a model API key, not an MCP credential.

When the build needs an authenticated call, the credential is attached to the request outside the sandbox, on its way out, and only for the destination it belongs to. A program inside the sandbox cannot read it, print it or send it somewhere else, because it was never there.

Credentials are short-lived and scoped to the build: the one repository it may push to, the model endpoint, the MCP servers of the spec.

A sandbox starts with no network access. Each build receives an allowlist with the hosts it needs and nothing more:

  • the model endpoint,
  • your git host, for the one repository,
  • the package registries of the stack,
  • the MCP servers named in the spec.

Any other connection is refused and logged.

Threat What limits it
Text in a file, a dependency or a tool result tries to redirect the model (prompt injection) The engine has nothing to steal and nowhere to send it; gates are out of its reach; a person reviews the pull request
Code or data sent outside Network denied by default, allowlist per build. With models on your own GPUs there is no external model call at all
A compromised dependency Only allowlisted registries; the sandbox is destroyed after the build
The builder learning the held-out tests They never enter the sandbox where code is written
One customer reaching another’s build One sandbox per build and organization; credentials scoped per build
The engine weakening its own checks Gates are configured and run outside the sandbox
Runaway cost Budgets enforced outside the engine

No isolation technology is perfect. The design assumes the code inside the sandbox may be hostile and limits what it could do if it were.

The rules above hold in all three. What changes is where the pieces run and which of your own controls sit on top.

SaaS BYOC On-premise
Where sandboxes run A cluster operated by Renaiss A dedicated node pool in your cloud account Dedicated nodes in your data centre
Who else uses those nodes Builds of other customers, each in its own sandbox. A sandbox is never shared Only your builds Only your builds
Egress allowlist Set by Khala per build Set by Khala per build, inside your network rules: NAT, firewall, private endpoints Set by Khala per build, inside your perimeter firewall. Can have no route to the internet
Where credentials are attached An egress gateway operated by Renaiss, with secrets read from your secret manager through access you grant An egress gateway in your account, with secrets from your cloud’s secret manager An egress gateway in your network, with secrets from your secret manager
Where the model call goes A hosted provider you approve A hosted provider, your cloud’s model service or GPUs in your account Your own GPUs, or a hosted provider if you open the route
Snapshots of paused sandboxes Storage operated by Renaiss A bucket in your account, encrypted with your key Your S3-compatible storage
Who can inspect the nodes Renaiss operations You You
  • The egress allowlist of a build.
  • Refused connections, in the build’s logs.
  • The scope and lifetime of the credentials you grant.
  • The complete record of each build.