Environment Variables Vault
Define a secret in a environment variable:
We can now reference this secret
You can also define a json
string if you want to store multiple secrets in a single environment variable.
export PG_CREDS='{"username":"user", "password":"pass"}'
Admin API
Declarative configuration
HTTPie
--data name=env \
http -f PUT :8001/vaults/my-env-vault \
name="env" \
description="Store secrets in environment variables"
Result:
Secrets management is supported in decK 1.16 and later.
- config:
prefix: null
description: Store secrets in environment variables
name: env
With the entity in place you can reference secrets like this:
{vault://my-env-vault/my-secret-value}