What is Secrets Manager?
Bitwarden Secrets Manager is a solution for storing, managing, and deploying secrets like API keys, database credentials, and certificates in your development and deployment workflows.Key Concepts
Projects
Projects are organizational units that group related secrets together. Examples:- Production Environment
- Staging Environment
- Mobile App
- Web Application
Secrets
Secrets are the actual sensitive values (API keys, passwords, tokens, etc.) stored within projects.Service Accounts
Service accounts are machine identities that can access secrets programmatically. They use access tokens for authentication.Access Policies
Access policies control which users, groups, or service accounts can access specific projects and secrets.Authentication
Secrets Manager API requires authentication using thesecrets policy:
Service Account Tokens
For programmatic access, use service account access tokens:- Create a service account
- Generate an access token
- Use the token in API requests
API Structure
All Secrets Manager endpoints use thesecrets authorization policy:
Access Control
User Access
- Organization admins have full access
- Regular users need explicit access grants
- Access is controlled via access policies
Service Account Access
- Service accounts have limited, scoped access
- Can only access explicitly granted projects/secrets
- Perfect for CI/CD pipelines
Common Workflows
Development Workflow
- Create Projects for each environment (dev, staging, prod)
- Add Secrets to projects (API keys, DB credentials)
- Grant Access to developers via groups
- Create Service Accounts for deployment automation
CI/CD Integration
- Create Service Account for CI/CD system
- Generate Access Token
- Grant Access to required projects
- Fetch Secrets in deployment pipeline
- Inject into Environment variables
Best Practices
Organization
- Use Projects to separate environments and applications
- Name Clearly - use consistent naming conventions
- Limit Access - grant minimum required permissions
- Rotate Tokens - regularly rotate service account tokens
Security
- Use Service Accounts for automation, not user tokens
- Audit Access - regularly review who has access
- Rotate Secrets - update secrets periodically
- Monitor Usage - check event logs for unusual activity
Next Steps
Projects
Organize secrets into projects
Secrets
Manage secret values
Service Accounts
Automate secret access
Limits
| Feature | Free | Teams | Enterprise |
|---|---|---|---|
| Projects | 3 | Unlimited | Unlimited |
| Secrets | 5 | Unlimited | Unlimited |
| Service Accounts | 0 | Based on plan | Based on plan |
Secrets Manager is available as an add-on for Teams and Enterprise plans.