docs/en/enterprise/features/secrets-manager/overview.mdx
The Secrets Manager feature lets your organization connect an external secret store — AWS Secrets Manager, Google Cloud Secret Manager, or Azure Key Vault — and reference those secrets directly from environment variables on your automations and crews. Instead of pasting plaintext values into the platform, you store one set of credentials per provider and refer to secrets by name.
This gives you:
There are two ways to wire CrewAI Platform up to your cloud's secret store. They differ significantly in rotation behavior, so choose based on how often your secrets rotate and how strict your security posture is.
| Aspect | Static Credentials | Workload Identity (OIDC Federation) |
|---|---|---|
| Authentication | Long-lived access keys / service account JSON stored in CrewAI Platform | Short-lived tokens minted per worker process; no static credentials stored anywhere |
| Rotation propagation | Resolved at deploy time and baked into the deployment's container image — rotated values require a re-deploy | Resolved at automation execution time — rotated values propagate to the next kickoff with no re-deploy |
| Setup effort | Lower — paste keys / upload service account JSON | Higher — register CrewAI Platform as an OIDC provider in your cloud, configure trust policies |
| Best for | Getting started, infrequently-rotated secrets, single-account deployments | Production, frequently-rotated secrets, compliance-driven environments that prohibit long-lived credentials |
| Provider | Static Credentials | Workload Identity |
|---|---|---|
| AWS Secrets Manager | AWS — static keys / AssumeRole | AWS — Workload Identity (OIDC) |
| Google Cloud Secret Manager | GCP — service account key | GCP — Workload Identity Federation |
| Azure Key Vault | Azure — client secret | Azure — Workload Identity Federation |
Setting up Secrets Manager is a three-step flow that involves both your cloud provider and CrewAI Platform:
Two CrewAI Platform features control access to Secrets Manager:
secret_providers — controls who can view or manage provider credentials.environment_variables — controls who can create and edit environment variables (including those that reference secrets).A third feature controls Workload Identity setup:
workload_identity_configs — controls who can view or manage Workload Identity configurations. Required only if you're using the Workload Identity path.Owners always have full access. Members do not receive access to secret_providers or workload_identity_configs by default and must be granted permission via a custom role. See Permissions (RBAC) for the full matrix and step-by-step instructions.
Pick your path: