Secrets and connected accounts
Where your passwords, API keys and connected accounts are kept, who can use them, and how a job gets only the ones it is allowed.
On this page
The short version
- Encrypted and write-only. Secrets are stored with AES-256-GCM. The app shows their names, never their values, not even to admins.
- Each person's accounts are theirs. A GitHub or Google connection belongs to the person who connected it. Colleagues, admins and keys can't borrow it.
- Jobs get secrets by name. A job gets the secrets it is allowed as environment variables inside its own sandbox. Server-only credentials never reach a job.
- The key is on your server. It sits in a root-only file that jobs can't see. Keep a copy somewhere safe.
Where each kind of secret lives
| Where | Who sees it | What goes there |
|---|---|---|
| Settings → Secrets | Admins and workspace admins | Keys: shared secrets for the whole install, a workspace, a user, or one user inside one workspace. Test credentials: logins the AI reviewer uses to test a site, such as a staging admin account. |
| Settings → Integrations | Everyone, for their own accounts | Your own GitHub and Google Workspace (Gmail, Calendar, Drive) connections, and which bots and workspaces may use them. |
| Settings → API & MCP | Everyone, for their own keys | Your API key, Agent keys for AI apps such as Claude or ChatGPT, Agent webhooks, and My Secrets, your personal secrets. |
| Settings → Models | Admins | Model account sign-ins (seats). See Seats. |
/opt/operationkit/secrets/ | Root on the server | Passwords and keys the installer generated, and the encryption key. |
In the Scope list on Settings → Secrets, the whole-install level is labelled "Command Center" in this release. When the same name is stored at several levels, the most specific one wins: workspace plus user, then user, then workspace, then the whole install.
The installer makes every server password and key itself. A Cloudflare token or API key you hand over goes in a separate secrets file that is read and then deleted. Never type a secret into client.conf or a chat.
Encrypted and write-only
- AES-256-GCM. Stored secrets, each person's GitHub and Google connections and the provider keys are all encrypted with it.
- Names, never values. After you save a secret you can replace it, not read it back. There is no reveal feature: the reveal endpoint always refuses and logs the attempt.
- Everything is logged. Every use and change goes to an audit log that can't be edited. It names the secret, never its value. The log is kept for a year, then exported to a file in the backups and pruned.
- Scrubbed from conversations. If a known secret value turns up in a bot conversation, a card or a job's notes, it is replaced with its name before anything is saved.
Bot files are made to be shared, so they never hold a secret. A bot file names the secret, for example "use the CRM_API_KEY secret", and the importer refuses a file that looks like it contains a real key.
Connected accounts belong to one person
In Settings → Integrations each person connects their own GitHub or Google account for their jobs to work in. That connection is theirs alone:
- Nobody else can use it. Not a colleague, not through a key, not an admin. Running the install doesn't make you everyone who uses it.
- Work assigned to you doesn't borrow your accounts. If someone else assigns you a card, the job runs without your connections, unless you tick "Let cards someone else assigned to me use this connection". It is off by default.
- Keys follow their owner. An agent key can use only its owner's connections, re-checked on every use. Disconnect an account and every key loses it at once. You can narrow a key to some accounts, or none.
- Refusals are recorded. Admins can see each withheld credential: who asked, whose account, which key and why. The record never holds the credential.
How a job is given a secret
A job runs in its own sandbox. It receives secrets as environment variables inside that sandbox, read by name, and nothing else on the server.
- Only the ones allowed. On a new install a job gets only the secrets allowed for its bot or its skills. Installs from before this change pass all of them while logging which ones each job used, so an admin can build the list from evidence and then switch to allowed-only.
- Missing one? The job asks. A job that needs a secret it wasn't given says so on its card, by name. Add the secret, allow it for the bot, and send the card back to work.
- Server-only credentials stay on the server. Keys the install needs for its own background work are never handed to a job.
- Not in the instructions. If a secret value appears in a job's instructions, it is replaced with
[REDACTED:NAME]before the job sees it.
To allow a secret for a bot, an admin runs this on the server (personal-assistant and CRM_API_KEY are examples):
sudo docker exec command-center tsx server/src/scripts/secrets-env-allowlist.ts allow --agent personal-assistant CRM_API_KEY
The same tool's report command lists the names jobs used that aren't allowed yet. Every change is written to the audit log.
Inside the sandbox an allowed secret is plain text in the job's environment. Allow only what a bot needs.
Where the encryption key lives
The key that decrypts stored secrets is in /opt/operationkit/secrets/secrets-kek. Only root can read it. It is mounted read-only into the app's container and never into a job's sandbox. A copy also sits in secrets/stack.env in the same root-only folder.
The nightly backup includes the secrets/ folder, because a restored database can't be read without the key. Keep one more copy of secrets-kek somewhere you control, such as a password manager.
Because the key is on the same server, encryption protects a copied database or a stolen backup without its key. It does not protect a server someone already controls. For a drive that leaves the data centre, see Disk encryption.
f504a64), 11 Nov 2026Suggest an edit