A Clojure library designed to enhance your edn config with secrets stored in vault.
{
:some-db-credentials #ts/vault ["/path/to/db/password"]
:just-the-db-password #ts/vault ["/path/to/db/password" :password]
}
For this to work two environment variables need to be present:
$VAULT_ADDR
:the url where vault can be found (e.g. https://vault.yourdomain.com)$VAULT_TOKEN
: a valid token for vault.
And you have to require the reader-function like this:
(:require
[de.otto.tesla.vault.vault_reader :only [read-secret]])
Christian Stamm, Florian Weyandt, Carl Düvel
Released under Apache License 2.0 license.