Archestra stores sensitive data — API keys, OAuth tokens, and MCP server credentials — as secrets. By default, secrets are encrypted at rest in the database using AES-256-GCM. For enterprise deployments that require an external secrets store, Archestra integrates with HashiCorp Vault, keeping only path references in the database while all secret values live in Vault.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/archestra-ai/archestra/llms.txt
Use this file to discover all available pages before exploring further.
Storage Backends
Archestra supports three secrets manager modes controlled by theARCHESTRA_SECRETS_MANAGER environment variable.
DB
Default mode. Secrets are encrypted at rest in the Archestra database using AES-256-GCM. The encryption key is derived from
ARCHESTRA_AUTH_SECRET. No external dependencies required.VAULT
Enterprise mode. Secret values are stored in HashiCorp Vault. Archestra reads, writes, and deletes them in Vault; only references to secret paths stay in the database.
READONLY_VAULT
Read-only Vault mode. Archestra reads existing secrets from Vault but does not write or delete. Use when secrets are managed externally and Archestra should only consume them.
Database Storage
Database storage is active by default. To configure it explicitly, set:ARCHESTRA_AUTH_SECRET environment variable. Encryption and decryption are fully transparent — no additional configuration is needed. Existing plaintext secrets are automatically migrated to encrypted format on startup.
HashiCorp Vault
HashiCorp Vault integration is an enterprise feature. Contact sales@archestra.ai for licensing information.
Core Environment Variables
| Variable | Required | Value |
|---|---|---|
ARCHESTRA_SECRETS_MANAGER | Yes | VAULT |
ARCHESTRA_HASHICORP_VAULT_ADDR | Yes | Your Vault server address |
ARCHESTRA_ENTERPRISE_LICENSE_ACTIVATED | Yes | Your license value |
ARCHESTRA_HASHICORP_VAULT_AUTH_METHOD | No | TOKEN (default), K8S, or AWS |
ARCHESTRA_HASHICORP_VAULT_KV_VERSION | No | 1 or 2 (default: 2) |
ARCHESTRA_HASHICORP_VAULT_SECRET_PATH | No | Path prefix for stored secrets |
ARCHESTRA_HASHICORP_VAULT_SECRET_METADATA_PATH | No | Override path prefix for KV v2 metadata operations |
If
ARCHESTRA_SECRETS_MANAGER is set to VAULT but the required environment variables are missing, the system falls back to database storage automatically.Secret Storage Paths
Vault paths are built as{prefix}/{secretName}. A secret named github_token is written to {prefix}/github_token. The ARCHESTRA_HASHICORP_VAULT_SECRET_PATH variable sets the prefix; its default depends on the configured KV engine version.
| KV Version | Default Prefix | Resolved Path |
|---|---|---|
2 | secret/data/archestra | secret/data/archestra/{secretName} |
1 | secret/archestra | secret/archestra/{secretName} |
ARCHESTRA_HASHICORP_VAULT_SECRET_PATH by swapping /data/ for /metadata/:
ARCHESTRA_HASHICORP_VAULT_SECRET_METADATA_PATH when your metadata prefix does not follow this /data/ ↔ /metadata/ convention.
Example: Reading Database URL from a Custom Vault Path
Vault Authentication
Archestra supports three authentication methods for connecting to HashiCorp Vault.- Token (Default)
- Kubernetes (K8S)
- AWS IAM
The simplest authentication method. Provide a static Vault token directly.
| Variable | Required | Description |
|---|---|---|
ARCHESTRA_HASHICORP_VAULT_TOKEN | Yes | Vault authentication token |
Full Vault Configuration Example
The following shows a complete Kubernetes deployment configuration using KV v2 and K8S authentication:openai_api_key is stored at: