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.

    1. export PG_CREDS='{"username":"user", "password":"pass"}'

    Admin API

    Declarative configuration

    HTTPie

    1. --data name=env \
    1. http -f PUT :8001/vaults/my-env-vault \
    2. name="env" \
    3. description="Store secrets in environment variables"

    Result:

    Secrets management is supported in decK 1.16 and later.

    1. - config:
    2. prefix: null
    3. description: Store secrets in environment variables
    4. name: env

    With the entity in place you can reference secrets like this:

    1. {vault://my-env-vault/my-secret-value}