One microVM per branch
Every branch is its own PostgreSQL server in its own lightweight VM. Superuser SQL, extensions and COPY FROM PROGRAM stay inside that VM; the VM, not database permissions, separates tenants. Postgres inside the VM runs under a syscall filter that blocks the VM’s host channels.
The gateway verifies the instance
Before forwarding a byte of your session, the gateway checks the instance’s certificate names exactly your branch, instance and generation. A stale route to a reused address is refused, not followed.
Short-lived, scoped credentials
Database passwords are signed tokens for one branch and one role, valid for an hour by default. Connections require TLS. Instances themselves accept only certificate logins from the platform — there is no shared platform password.
Fresh identity after every restore
Branches start from memory snapshots, so each clone or wake reseeds randomness, drops restored sessions and gets a new key and certificate before it can take traffic.
Accounts and API tokens
Sign in with GitHub or a single-use email link; sessions are HttpOnly, SameSite cookies with origin checks. API tokens are stored only as hashes and shown once. Roles (owner, admin, member) are enforced by the server, and every org has an append-only audit log.
Org isolation in the API
Every API query is scoped to your organization; other orgs’ projects, branches, data and metrics answer 404. Public endpoints are rate limited, and operator APIs are on a separate, private listener.