# Checklist

> What to check before your app goes to production.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://run.docs.sypnia.com/security/checklist/

For agents: Run production checklist: secrets with --secret and no public prefixes; previews on test DB/keys; preview protection; CI with scoped deploy token or GitHub OIDC; agent production approvals; auto_rollback; backward-compatible migrations; security headers; no secrets/PII in logs; DNS account with 2FA or Sypnia Domains.

- [ ] Secrets are stored with `--secret`, never as plain variables, and none uses a public prefix (`NEXT_PUBLIC_`, `PUBLIC_`, `VITE_`).
- [ ] Previews use a test database and test keys, never production's.
- [ ] Preview protection is on (`sypnia` or `password`) if previews show unreleased work.
- [ ] CI deploys with a deploy token scoped to one app, or with GitHub OIDC.
- [ ] Production releases from agents require approval (the default).
- [ ] `release.auto_rollback` is on for apps where a bad deploy costs money.
- [ ] Database migrations stay compatible with the previous deploy for one release.
- [ ] Your app sets security headers (`Content-Security-Policy`, `Strict-Transport-Security`) in `headers`.
- [ ] Logs do not contain tokens, passwords or personal data you do not need.
- [ ] Your custom domain's DNS is in an account with two-factor sign-in, or in Sypnia Domains.
