Isolation and secrets

What Pod keeps apart, what it leaves to you inside a sandbox, and which values to treat as passwords

What Pod keeps apart

Each sandbox is a virtual machine of its own, with its own kernel, disk and network address. One sandbox cannot see another's memory, files or processes, whoever owns them.

Inside one sandbox, Pod keeps nothing apart. Every process, user and container in it shares that machine. Containers you run inside a sandbox are separated only as far as the container runtime separates them, and that is not a boundary Pod stands behind.

One sandbox for each of your users

If you give sandboxes to your own users, give each user a sandbox of their own, never a shared one with a container or a login for each. Label each with the user (Your users) so you can read usage and cap what each may hold.

Pod never hands a sandbox from one user to another: a sandbox is only ever reused if you reuse it. When you do, what the last user left on its disk is still there. Start each user from a clean snapshot instead, and delete the sandbox when they are done.

Create a sandbox with no_save when its contents must not be copied: no key but the one that made it can snapshot it, fork it or share it.

Values to treat as passwords

Anyone who holds one of these can act with it. Keep them out of logs, URLs you share, screenshots and the files you commit.

ValueWhat it allowsHow long it lasts
An API key (pod_live_…, pod_test_…)Every call its scopes allow, in its projectUntil it is revoked or expires
A stream ticketOpening one command's stream, once30 seconds by default, 60 at most, and one use

A stream ticket exists so a browser can open a command's stream without holding your key: make one on your server and hand only the ticket to the browser. It is good for one connection and expires quickly, so it is safe to put in a page, but not to log.

If a key leaks, revoke it at once and make a new one: a revoked key is refused everywhere within a minute, and every change it made is in your organization's audit log.

Secrets inside a sandbox

Anything you put inside a sandbox, such as an environment variable or a file, can be read by every process that runs in it, including an agent. Give a sandbox only the secrets its work needs, and prefer a key with only the scopes it needs over your own.

Never put a secret in a spec file: it is committed with your code.