Secret Storage
Archestra encrypts saved credentials in PostgreSQL by default. Use HashiCorp Vault to keep their values outside the database. This storage protects credentials; content encryption protects messages and tool results separately.
Database Storage
Keep the default database storage unless you need Vault. Archestra encrypts saved values with AES-256-GCM using a key derived from ARCHESTRA_.
Key Rotation
Rotate during a maintenance window. Every process that reads stored secrets must stop before any process starts with the new key. The first process that starts with both keys re-encrypts every stored secret, then serves traffic. A rolling restart would let old pods keep writing under the old key.
With Helm:
-
Back up PostgreSQL and the current key. The chart keeps the key under
secrets-encryption-secretin the<release>-authSecret:bashkubectl -n archestra get secret archestra-platform-auth \ -o jsonpath='{.data.secrets-encryption-secret}' | base64 -d -
Under
archestra.env, setARCHESTRA_to the new key andSECRETS_ ENCRYPTION_ SECRET ARCHESTRA_to the old one. RunSECRETS_ ENCRYPTION_ SECRET_ PREVIOUS helm upgradewith--set archestra.replicaCount=0 --set archestra.worker.replicaCount=0, so every pod stops. -
Run
helm upgradeagain without those two flags. One pod's log showsRe-encrypted stored secrets under the new ARCHESTRA_SECRETS_ENCRYPTION_SECRET. Check that an integration can still read its credential. -
Remove the previous key in a later upgrade.
Outside Helm, stop every process, set both variables on all of them, and start one. Start the rest once its log shows the re-encryption.
Startup refuses a key that cannot decrypt existing secrets. Preserve the old key until rotation finishes. For every other secret, see Secret Rotation.
HashiCorp Vault
HashiCorp Vault stores secret values externally instead of in the database. PostgreSQL stores each secret's metadata.
Vault storage requires an Enterprise license and a Vault identity that can create, read, update, and delete secrets, plus list their paths. For KV v2, allow listing and deletion on the metadata path too.
- Set
ARCHESTRA_SECRETS_MANAGER=VAULTandARCHESTRA_.HASHICORP_ VAULT_ ADDR - Configure one authentication method below on every web and worker pod, using Kubernetes Secret references for sensitive values.
- After rollout, open Settings → Secrets and use Check Vault Connectivity. Confirm Connection Successful before saving credentials.
Missing or invalid required Vault configuration, or an inactive Enterprise license, logs a warning and falls back to database storage. Check the active storage after rollout.
Set a custom storage prefix with ARCHESTRA_. ARCHESTRA_ overrides KV v2 metadata paths.
Vault Authentication
Choose the method matching your deployment identity using ARCHESTRA_.
| Method | Supply |
|---|---|
TOKEN | ARCHESTRA_. |
K8S | ARCHESTRA_, bound to the workload's service account. |
AWS | ARCHESTRA_, bound to its AWS identity. |
The Vault configuration entries cover KV versions, custom auth mount points, token paths, and AWS endpoints.