HashiCorp Vault / OpenBao
Use HashiCorp Vault or OpenBao KV v2 secrets in your Dokploy environment variables.
Dokploy talks to the KV version 2 secrets engine. The same provider works with HashiCorp Vault and OpenBao (the open-source fork) — their APIs are identical.
Configuration
In Settings → Secrets → Add Provider, choose HashiCorp Vault / OpenBao and fill in:
- Name: the identifier used in references, e.g.
prod-vault. - Vault URL: the address of your Vault/OpenBao server, e.g.
https://vault.example.com:8200. It must be reachable from your Dokploy server. - Token: a Vault token with
read(andlist, for autocomplete) capabilities on the secrets you want to expose. - KV Mount: the mount path of the KV v2 engine. Defaults to
secret. - Namespace (optional): for Vault Enterprise or OpenBao namespaces, e.g.
admin.
Use Test Connection to validate the token before saving, then assign the projects/environments where the provider may be used.
Create a token from a policy that only grants read/list on the paths Dokploy needs, for example:
path "secret/data/myapp/*" {
capabilities = ["read"]
}
path "secret/metadata/*" {
capabilities = ["list"]
}Reference Format
KV v2 secrets are maps of fields, so references always include the path and the field, separated by a colon:
DB_PASSWORD=${{vault.prod-vault.myapp/prod:DB_PASSWORD}}
API_KEY=${{vault.prod-vault.shared:API_KEY}}myapp/prod is the secret path inside the KV mount and DB_PASSWORD is the field inside that secret. The autocomplete walks your KV tree and suggests complete path:field references.
Trying it with OpenBao
For a quick local test, OpenBao's dev mode gives you a ready-to-use server:
docker run -d --name openbao -p 8200:8200 \
-e BAO_DEV_ROOT_TOKEN_ID=dev-token \
-e BAO_DEV_LISTEN_ADDRESS=0.0.0.0:8200 \
openbao/openbao:latestThen create the provider with URL http://<your-host>:8200, token dev-token and mount secret.
Dev mode stores everything in memory and is for testing only.
Secrets Providers
Reference secrets from external secret managers (HashiCorp Vault, OpenBao, Infisical, AWS Secrets Manager, Doppler, Azure Key Vault, Scaleway Secret Manager) directly in your environment variables.
Infisical
Use Infisical secrets (cloud or self-hosted) in your Dokploy environment variables.