Secrets providers
Reference secrets from an external vault in environment variables and have wtree Cloud resolve them at deploy time.
Secrets providers connect wtree Cloud to an external secret manager. You write a reference in any environment variable editor, and wtree Cloud fetches the value at deploy time:
DATABASE_URL=${{vault.prod-vault.myapp/creds:DB_URL}}
API_KEY=${{vault.doppler-prod.API_KEY}}Values are never stored in the wtree Cloud database or shown in the UI. Your vault stays the source of truth and members see only the reference.
Providers
| Provider | Purpose | Ref format |
|---|---|---|
| HashiCorp Vault / OpenBao | KV v2 secrets engine | <path>:<field> |
| Infisical | Cloud or self-hosted, one project and environment | <SECRET_NAME> |
| AWS Secrets Manager | AWS-hosted secrets, optional JSON field | <name> or <name>:<field> |
| AWS Parameter Store | SSM parameters, including SecureString | <parameter-name> |
| Doppler | One project config | <SECRET_NAME> |
| Azure Key Vault | Azure-hosted flat secrets | <secret-name> |
| Scaleway Secret Manager | Scaleway secrets, folders and JSON field | [folder/]<name>[:field] |
| Phase | One app, environment and path | <SECRET_KEY> |
Reference syntax
${{vault.<provider-name>.<ref>}}<provider-name> is the name you gave the provider. It is unique per organization and allows letters, numbers, dashes and underscores. <ref> depends on the provider, see the table above.
References work wherever values flow into a deployment:
- Service environment variables (applications, Docker Compose, databases)
- Project-level and environment-level shared variables
- Build-time arguments and build secrets
Vault references resolve before ${{project.X}} and ${{environment.X}}, so they compose:
DB_PASSWORD=${{vault.prod-vault.myapp/prod:DB_PASSWORD}}
DATABASE_URL=postgres://app:${{environment.DB_PASSWORD}}@db:5432/appThe editors autocomplete references. Type ${{, pick vault., then a provider, then a secret name fetched from it. See Environment variables.
Add a provider
Open Integrations › Secret vaults and click Add provider.
Choose the provider type and fill in its form. Credentials are masked after saving; leaving a masked field untouched keeps the stored value.
Click Test connection, save, then assign the projects and environments that may use it.
Access control
Each provider has an assignment list:
- A project with no environments selected enables the provider in all its environments, including ones created later.
- Selected environments enable it only there. A
prod-vaultassigned only toproductioncan't be referenced fromdevelopment. - A provider with no assignments is enabled nowhere.
The server enforces this before any request reaches your vault. A reference to a provider that isn't enabled fails the deployment with an error, and autocomplete only suggests enabled providers.
Every environment evaluates project-level shared variables. Referencing an environment-restricted provider there fails deployments in the other environments. Put those references in environment-level or service-level variables.
Permissions use the vaultProvider resource. Owners and admins create, update, delete and test providers. Members can read provider and secret names for autocomplete, never credentials or values. See Permissions.
Security notes
- Rotating a secret takes effect on the next deployment.
- A missing or deleted secret fails the deployment instead of injecting an empty value.
- Anyone who can edit variables and deploy in an assigned project can read what the provider's credentials reach there. Use least-privilege credentials, scoped per environment where the provider allows it (Doppler service tokens, Vault policies, Infisical machine identities).
