Hashicorpvault

Benefit

  • Secret engine

    Manage credentials without humans getting involved (grant, revoke, rotate, etc.)

    • See dynamic database credential, rotate root database credential

Kubernetes

Cookbook

Read all var and export as env

vault.hashicorp.com/agent-inject-template-env: |
    {{ with secret "uat/admin-api" -}}
    {{ range $k, $v := .Data.data }}
    export {{ $k }}="{{ $v }}"
    {{ end }}
    {{- end }}