Running the control plane
This page is for whoever operates OverMind in BYOC or on-premise. In SaaS Renaiss does all of it. It covers the control plane: the API, its background worker and the panel. Shield is deployed with your agent and has its own page, Enable Shield.
What runs
Section titled “What runs”One binary, overmind, and one PostgreSQL 18 database. Nothing else is required.
| Command | What it does |
|---|---|
overmind migrate |
Applies database migrations and exits |
overmind server |
Serves the API on PORT and runs the background worker in the same process |
overmind worker |
Runs only the background worker, for when API and worker scale apart |
overmind org … |
Opens an organization with its first owner |
overmind plan … |
Assigns a plan to an organization |
overmind rekey |
Seals again, under the current evidence key, what retired keys protect |
overmind version |
Prints the version the binary was built with |
The worker executes hosted runs and Builder jobs from the queue, delivers alerts (webhooks, Slack, email), sends welcome emails, sweeps expired evidence once a day and, once an hour, raises an alert for an agent that expected a nightly run and has had none for 30 hours. Several workers can run at once: each job is taken by one of them, and a job that fails is retried with a growing delay, five times at most.
An SMTP server is needed for sign-in. Members have no password and sign in with a code sent by email, so without mail nobody gets in.
Configuration
Section titled “Configuration”All of it comes from environment variables. The process refuses to start when a value it needs is missing or one it was given cannot be read, and says which.
| Variable | Required | Meaning |
|---|---|---|
OVERMIND_ENV |
In production | production, development (default) or test. Production turns off every development shortcut below |
DATABASE_URL |
Yes | PostgreSQL connection string |
OVERMIND_AUTH_SECRET |
Yes | At least 32 characters. Sign-in codes are hashed with it. Changing it invalidates codes that were sent and not yet used, nothing else |
OVERMIND_EVIDENCE_KEY |
In production | 32 random bytes in base64 (openssl rand -base64 32). Read the evidence key before you choose how to store it |
OVERMIND_EVIDENCE_KEY_ID |
No | Name of that key, v1 by default. Changed only when rotating |
OVERMIND_EVIDENCE_OLD_KEYS |
While rotating | Retired keys as name:key pairs separated by commas. They only read |
OVERMIND_ALLOWED_ORIGINS |
Yes, in practice | Comma-separated origins of the panel, such as https://overmind.example.com. Requests that change data from any other origin are refused. The default lists development addresses only |
OVERMIND_PUBLIC_URL |
No | Address of the panel, for links in alerts and emails. Without it they carry no link |
OVERMIND_TRUSTED_PROXIES |
Behind a proxy | Addresses or CIDR ranges of the reverse proxies in front of the API. See behind a proxy |
OVERMIND_COOKIE_SECURE |
No | true in production by default. Set false only to serve plain HTTP in development |
PORT |
No | 8797 by default |
LOG_LEVEL |
No | debug, info (default), warn or error |
MAILER |
No | smtp (default). log writes emails to the log and is refused in production |
SMTP_HOST, SMTP_PORT |
Yes | Mail server. The defaults point at a local development mail server |
SMTP_USERNAME, SMTP_PASSWORD |
If the server asks | |
SMTP_FROM |
Yes, in practice | Sender, such as OverMind <no-reply@example.com> |
SMTP_TLS |
Yes, in practice | none (default), starttls or tls. Use one of the last two outside development |
OVERMIND_WEBHOOKS_ALLOW_PRIVATE |
Never in production | Lets webhooks target plain HTTP and private addresses. Ignored when OVERMIND_ENV=production |
First start
Section titled “First start”overmind migrateovermind serverovermind org -name "Example" -slug example -owner-email ana@example.com -owner-name "Ana Torres" -locale esovermind plan -agents 5 example <plan>Run migrate before every new version starts, then start it.
No API opens an organization or changes its plan; the operator does both from the binary.
overmind org creates the organization with its owner, who receives an email and signs in
with a code. overmind plan assigns the plan your contract names. Both are recorded in the
organization’s audit log with no actor, which is how the log shows something the operator did.
Going down a plan deletes nothing: evidence retention is brought down to what the plan keeps, and agents over the limit stay connected. Going up does not raise retention by itself; the owner chooses it in Settings.
Health and logs
Section titled “Health and logs”| Endpoint | Says |
|---|---|
GET /health |
The process is up. Use it for liveness |
GET /ready |
The process can reach its database. Use it for readiness |
Both answer {"status":"ok"} and need no session.
The process logs one JSON line per request with method, path, status, duration and a request
id. It never logs a body, a cookie or an address. Every response carries that id in
X-Request-ID, so a line in the log can be found from what a client saw.
Stopping
Section titled “Stopping”On SIGTERM the server stops taking requests, lets the ones in flight finish for up to 10
seconds, waits for sign-in emails that are being sent and stops the worker. It exits with
status 0 when all of that finished in time, and with an error when something had to be cut
short. Give it 40 seconds before killing it.
Behind a proxy
Section titled “Behind a proxy”Terminate TLS at the proxy. The session cookie is Secure in production, so the panel must be
served over HTTPS.
The API limits sign-in codes per client address, 20 every 15 minutes, and 3 per email. It
takes the address from the connection. Behind a reverse proxy every connection comes from the
proxy, so set OVERMIND_TRUSTED_PROXIES to the proxy’s address or range. Only then is
X-Forwarded-For believed, and only the part of it that a trusted proxy wrote.
The panel
Section titled “The panel”The panel is a static site. Serve it from the same origin as the API, with the API under
/api: the panel calls /api/v1/… and the API serves /v1/…, so the proxy strips the
prefix.
Serving the panel from another origin works only if that origin is in
OVERMIND_ALLOWED_ORIGINS. The desktop application is that case.
The evidence key
Section titled “The evidence key”OVERMIND_EVIDENCE_KEY protects three things, each with a key derived from it per
organization:
- Evidence: the transcripts and traces of test executions, encrypted in the database.
- The address and the signing secret of every notification destination.
- The key that signs Evidence Packs.
Losing it loses the first two. Evidence already stored cannot be read and destinations stop delivering. Keep the key in your secret manager and back it up apart from the database.
Rotating the key
Section titled “Rotating the key”Every key has a name, stored with everything it seals. An installation that never rotated uses
the name v1, and a name is never used again for another key.
The rotation has two rollouts, so that at no moment a process meets data it cannot read.
-
Generate a new key (
openssl rand -base64 32) and choose a name for it: up to 20 lowercase letters, digits or hyphens, such as2027-01. -
Teach every process to read the new key, still sealing with the old one. Restart every server and worker with:
Terminal window OVERMIND_EVIDENCE_KEY=<old key>OVERMIND_EVIDENCE_KEY_ID=v1OVERMIND_EVIDENCE_OLD_KEYS=2027-01:<new key>Wait until no process is left on the previous configuration.
-
Make the new key current. Restart every server and worker with:
Terminal window OVERMIND_EVIDENCE_KEY=<new key>OVERMIND_EVIDENCE_KEY_ID=2027-01OVERMIND_EVIDENCE_OLD_KEYS=v1:<old key>While this rolls out, some processes seal with one key and some with the other, and all of them read both. Wait until no process is left sealing with the old key.
-
Run
overmind rekeywith the configuration of step 3. It seals again, under the new key, what the old one protects, and records the public key that verifies the Evidence Packs signed under each key, for every organization. It can run while the servers are up. It exits with an error if anything is left under another key, and logs how much and whether that key is configured. Run it again until it exits clean. -
Remove the old key from
OVERMIND_EVIDENCE_OLD_KEYSand restart.
A process still on the old configuration after step 4 keeps sealing under the old key. That is
why a server or a worker refuses to start when the database holds anything sealed under a key
it was not given, and says which key. If that happens after step 5, put the old key back, run
overmind rekey again and look for the process that was left behind. Nothing is deleted by
any of this, so the data is readable again as soon as its key is back. Alerts whose deliveries
ran out of retries in the meantime are not sent again.
In SaaS Renaiss runs this procedure. The variables are in the configuration table above. What the key protects, and how evidence is stored, is in Evidence, keys and retention.
Backups
Section titled “Backups”PostgreSQL holds everything: organizations, runs, findings, the audit log and the encrypted evidence. A backup of the database is a backup of the platform, as long as the evidence key is kept with the same care and somewhere else. A database restored without its key has its runs and scores and none of its evidence.
OverMind takes no backups itself. Take them with your database’s own tools, and try a restore before you need one.
Routine
Section titled “Routine”- Evidence retention. Each organization keeps evidence for a number of days, 90 by default and at most what its plan allows. The daily sweep deletes older evidence; runs, scores and findings stay.
- Stuck notifications. A destination shows in Settings when its last delivery failed and
why. A sign-in email that fails appears only in the log, as
sign-in code not sentwith the user’s id, so watch for that line. - The audit log is append-only and has no retention. An admin exports it as CSV from the panel, 10,000 events at a time.
- Removing someone at once. An admin removes a member in Settings and their sessions end with the next request. To end one session, the person signs out.