Content Encryption at Rest
Encrypt saved conversations, model payloads, and tool results with a deployment-held key, independently of stored credentials. This is an Enterprise feature, disabled by default.
Encrypted chats instead use a browser-held key with organization escrow. Both features protect stored content; the server still processes plaintext while handling requests.
What Is Encrypted
- LLM proxy request and response payloads — the LLM Logs records.
- Chat message bodies.
- MCP tool call arguments and results — the MCP Logs records. A tool result carries whatever the tool returned — an email inbox, for example — so it is treated as content, not metadata.
- Guardrail analyses and the unsafe context boundary, which quote the content they judged.
Metadata stays in plaintext: timestamps, model names, token counts, tool and server names, and cost figures. Statistics, cost limits, and usage metering keep working unchanged.
Behavior Changes While Encryption Is On
- Conversation search matches titles only — message bodies are ciphertext.
- MCP log search matches server names and methods only — tool arguments and results are ciphertext.
- OTel spans stop carrying message/tool content by default — the
ARCHESTRA_default flips toOTEL_ CAPTURE_ CONTENT falseso plaintext content does not reach the telemetry backend while the database copies are encrypted. An explicittruere-enables capture (see the observability docs) and logs a startup warning.
Enabling on a Running Deployment
Use two rollouts so every replica can decrypt content before any replica writes it encrypted.
-
Check disk headroom, back up the database, and preserve the new encryption key separately from the stored-secrets key.
-
Set the new key in
ARCHESTRA_and finish a rollout of all replicas. They can now decrypt with it while writes remain unchanged.CONTENT_ ENCRYPTION_ SECRET_ PREVIOUS -
Move the key to
ARCHESTRA_and finish a second rollout. New writes are encrypted, and a background sweep encrypts older rows.CONTENT_ ENCRYPTION_ SECRET -
After every replica has updated, run the sweep once more to cover plaintext written during rollout. From
/app/backendinside an upgraded application container:bashnode dist/standalone-scripts/reencrypt-content.ee.mjs
For a source checkout configured with the deployment's database and keys, run pnpm --filter @backend db:reencrypt-content from platform/ instead. Confirm the sweep exits successfully before removing the previous key. It rechecks the full table, including rows missed during rollout.
Rotating the Key
Replace the key without downtime: every replica learns the new key before any replica writes with it, then a sweep moves stored content to it. Change the variables as in Change a Platform Secret, and let each rollout finish on every web and worker pod before you go on.
-
Keep the current key in
ARCHESTRA_and put the new key inCONTENT_ ENCRYPTION_ SECRET ARCHESTRA_. Finish a rollout.CONTENT_ ENCRYPTION_ SECRET_ PREVIOUS -
Swap them: the new key in
ARCHESTRA_, the old key inCONTENT_ ENCRYPTION_ SECRET ARCHESTRA_. Finish a rollout.CONTENT_ ENCRYPTION_ SECRET_ PREVIOUS -
Once every web and worker pod runs with the swapped keys, run the sweep:
bashkubectl -n archestra exec deploy/archestra-platform -- \ sh -c 'cd /app/backend && node dist/standalone-scripts/reencrypt-content.ee.mjs'It exits successfully and its last line shows
"status":"completed". Run it again:"totalRewritten":0confirms no content is left under the old key. -
Remove the old key from
ARCHESTRA_, or set it to the new key, and finish a rollout.CONTENT_ ENCRYPTION_ SECRET_ PREVIOUS
- The background sweep is not enough on its own. It can mark itself complete while a pod that has not restarted still writes with the old key, and those rows would become unreadable once the old key is gone.
- During the swap rollout, workers that have not restarted yet can move some rows back to the old key. This is harmless, and it is why the sweep runs only after the rollout finishes.
- The database cannot show which key a row uses. The second sweep run is the check.
Roll Back a Rotation
Roll back by keeping every key that any pod has written with:
- During the first rollout: restore the original values.
- During the swap or before the sweep finishes: set the old key active and the new key previous. Never drop the new key once a pod has run with it active.
- After you removed the old key: if conversations or LLM Logs pages fail to load, put the old key back as the previous key, finish a rollout, and run the sweep again.
For every other secret, see Secret Rotation.
Disk Headroom
Before enabling encryption, provide at least 2.5× the current combined size of the message, interaction, and tool-call tables. Encryption increases stored size and needs temporary space during the sweep. Backups and replication also need capacity for that write volume.
Startup Verification
On every startup Archestra verifies the configured key against previously encrypted content and aborts on a mismatch or a missing key. Unlike stored secrets, there is deliberately no accept-new-key override: chat history cannot be re-entered. Disabling encryption after enabling it is not currently supported.
Key Escrow for Encrypted Chats
Configure an organization escrow public key so designated key holders can recover encrypted chats if local browser storage is lost.
Setting ARCHESTRA_ enables encrypted chats across your organization. Provide an RSA public key of at least 2048 bits in PEM or base64-encoded PEM format. When enabled, the browser generates an AES key per chat and encrypts that key with your escrow public key before storing the conversation.
Recovering an Encrypted Chat
Recovery requires the escrow private key and direct database access, outside Archestra. Keep that key with designated recovery operators and test your organization's recovery process before enabling encrypted chats. Archestra has no in-app recovery workflow. Content that was redacted before storage cannot be recovered.