Security

Security starts with where your credentials live.

Stategraph stores your state and coordinates changes — but it never runs Terraform and never sees your cloud credentials. They stay on the machine running the CLI. Everything else builds on that split.

Zero-trust execution SSO Least-privilege tokens Full audit trail Self-host
Book a security review Contact Sales

Your cloud credentials never leave your machine

Stategraph runs as two parts. The CLI runs on your machine or CI runner and executes Terraform/OpenTofu locally against your cloud, with your credentials. The Server stores authoritative state and coordinates concurrent changes — and that's all. It never runs Terraform, and it never sees your cloud.

CLI (local) runs Terraform / OpenTofu against your cloud holds cloud credentials
↔
Server stores state, coordinates changes no cloud credentials
→
Your Cloud reached only by the local CLI your account, your keys

A compromised server still can't touch your cloud — it has no credentials to touch it with. Read the architecture →

Controls your security team will ask about

Identity, least privilege, and a complete record of who changed what.

Single sign-on

user@co → IdP → Stategraph
oidc · github · google

Sign in through any OIDC provider, such as Okta, Microsoft Entra ID, or Auth0. GitHub and Google sign-in work too. Restrict sign-in to your email domain.

Least-privilege access tokens

apply one state
never exceeds its creator

Mint capability-scoped tokens from the CLI. For example, a token can apply to one state and nothing else. A token can never hold more than the session that created it.

Service accounts for CI/CD

ci-runner → scoped token
durable · attributed

Give pipelines their own durable identities and per-run session tokens, so a change reads as "the deploy pipeline made this," not a departed employee's key.

Audit and transaction history

tx_a3f9 · aws_instance · changed
tx_b421 · iam_role · added
every change · attributed

Every state change is a transaction with an author, a timestamp, and a full record on an immutable timeline. Query it directly — it's the same data the API exposes.

Encryption and residency

at rest in transit
your region · your boundary

Postgres encryption at rest and TLS in transit. Self-host to pin data to a region or keep it entirely inside your perimeter. Stategraph Cloud uses the sub-processors on this list.

Your data, your perimeter

Your infrastructure
self-host · air-gapped

Run the whole platform inside your own environment, air-gapped if you need it, with no change to the CLI, API, or features. Release images carry a Sigstore signature and an SPDX SBOM. Verify an image → Self-hosting →

Least privilege, by construction

Issue a credential that can do exactly one thing. A CI token that commits to one state can't manage users, can't mint more tokens, and can't touch any other state.

stategraph — access tokens
# a token that can apply to one state and nothing else
$ stategraph user access-tokens create \
--name ci-prod-apply \
--apply-modified 'a1b2c3d4-...=*'
# this token cannot manage users, mint tokens, or reach any other state

Capabilities are admin, plan, and apply, plus user management and token issuance. You can scope each one to a tenant, a state, or the resources in a state. Access-token docs →

Bring your checklist

Security reviews are run by engineers, not sales. Walk through the architecture, the controls, and your requirements with the people who built them.

Book a security review Enterprise options