Security: how your platform credentials are protected
Platform credentials are protected by encrypting every OAuth token at rest with AES-256-GCM and isolating them per organization rather than pooling them. Connecting an ad account means handing over a token that can read and change real spend, so the storage of that token is the part worth scrutinising — and the encryption key refuses to fall back to a development default in production.
How credentials are stored
- AES-256-GCM, an authenticated cipher — tampering with stored ciphertext is detected on decrypt rather than silently producing garbage.
- A unique initialization vector per value, so two identical tokens don't produce identical ciphertext.
- Fail-closed in production. If the encryption key is missing, the app refuses to start that path rather than falling back to the development key that ships in the source. A public fallback key in production would make every stored token readable, so the failure is deliberate and loud.
- Per-organization isolation. Credentials belong to one organization and are only resolvable inside it.
What happens when you disconnect
Removing an integration deletes the stored credential rows, and the in-memory cache of resolved tokens is invalidated at the same time — a decrypted token must not outlive the row it came from. That ordering matters: a disconnect that clears the database but leaves a warm cache is a disconnect that didn't happen yet.
For Stripe and Zoho, Disconnect also asks the platform to end the access, once no other workspace uses it. For the other platforms, Agent Planners deletes its copy of the token, and the authorization stays listed in that platform's own app or security settings until you remove it there. To end access completely, remove Agent Planners there as well.
How your connections are protected, point by point
- Tokens and keys are encrypted. Access tokens, refresh tokens and API keys you paste are encrypted with AES-256-GCM before they are stored: a new random value (IV) for every secret, and an authentication tag that makes a tampered value fail to decrypt. The key comes from the server's configuration. In production the app refuses to run that code without it, instead of falling back to the development key.
- Secrets never reach your browser. Account lists the app shows you are sent without their credentials, and the browser code cannot load the encryption module. After you paste a key, the page shows at most its last four characters.
- One workspace per connection. A connection belongs to the workspace it was made in. Reading, using, changing or removing it is checked against the signed-in workspace, so one workspace never reaches another's connections. A single sign-in used in two workspaces is two separate connections.
- Who can connect, use and remove. Admins and editors connect, re-authorize and disconnect. An editor can change only the connections they authorized; an admin can change any of them. Members can see which accounts are connected and run tasks on them, but cannot add or remove a connection. A personal Gmail, Google Calendar or Outlook connection is used only for the person who connected it, never for a teammate's task.
- What Disconnect does. Disconnect deletes the stored credentials and clears every cached copy of the decrypted token. For Stripe and Zoho it also asks the platform to end the access, once no other workspace uses it. For other platforms, Agent Planners deletes its copy of the token, and the grant stays listed in that platform's own app or security settings until you remove it there.
- How long things are kept. Task history (steps, results and reports) is kept for 90 days unless an admin chooses 7 to 3,650 days or keep forever. The per-task execution log is kept 30 days by default (1 to 90). The MCP and API call log is kept 30 days and holds argument names, never their values. Platform answers cached during a run expire after 15 minutes. The audit log is not shortened by these settings.
- A record of changes. Removing accounts, approvals and rejections, and key and connection settings are written to the workspace's audit log, with who did it. Calls from MCP clients and the REST API are recorded there too, unless an admin turned call recording off for that key. Those rows keep argument names, never their values or the platform's answer.
Scopes are requested narrowly
The other half of credential security is asking for less. Where a narrower scope does the job we use it — report exports use Google's drive.file scope, which grants access only to files the app itself created, rather than a full Drive read scope. See the AdMob OAuth scopes write-up for how we approach that choice generally.
Authentication
User authentication and organization membership run through Clerk. We don't store passwords — there is no password database of ours to breach.
Frequently asked questions
- How are my ad platform credentials stored?
- OAuth tokens are encrypted at rest with AES-256-GCM using a per-value initialization vector, and are scoped to a single organization. In production the app refuses to operate that path if the encryption key is missing rather than falling back to a development default.
- What happens to my tokens when I disconnect an integration?
- The stored credential rows are deleted and the in-memory cache of resolved tokens is invalidated at the same time, so a decrypted token cannot outlive the row it came from.
- Do you store my password?
- No. Authentication runs through Clerk, so there is no password database on our side.
- Does disconnecting revoke access at the platform?
- For Stripe and Zoho, yes: the platform is asked to end the access once no other workspace uses it. For other platforms we delete our copy of the token, and the authorization stays listed in that platform's own settings until you remove it there.
- Who in my workspace can use a connection?
- Admins and editors connect and remove connections (an editor only their own); members can run tasks on connected accounts but cannot add or remove them. A personal Gmail, Google Calendar or Outlook connection works only for the person who connected it.