Liking cljdoc? Tell your friends :D

vault.env

Code to resolve secrets from a map of environment configuration. This is useful for service startup configs using the app-id authentication scheme.

If a client is not provided, the code initializes one from the VAULT_URL, VAULT_APP_ID, and VAULT_USER_ID environment variables.

Code to resolve secrets from a map of environment configuration. This is
useful for service startup configs using the app-id authentication scheme.

If a client is not provided, the code initializes one from the `VAULT_URL`,
`VAULT_APP_ID`, and `VAULT_USER_ID` environment variables.
raw docstring

config-clientclj

(config-client env)

Configure a new Vault client from the given environment. Will attempt to authenticate the client based on the available env variables.

Configure a new Vault client from the given environment. Will attempt to
authenticate the client based on the available env variables.
raw docstring

init-app-clientcljdeprecated

(init-app-client env)

Initialize and auth a new HTTP Vault client. Returns nil if the :vault-addr is not configured. If it is, but the app-id or user-id are missing, throws an exception.

Initialize and auth a new HTTP Vault client. Returns nil if the `:vault-addr`
is not configured. If it is, but the app-id or user-id are missing, throws an
exception.
raw docstring

load!clj

(load! env secrets)
(load! client env secrets)

Retrieves environmental configuration and returns a map of configuration variables. If there is an error, the system will exit.

Retrieves environmental configuration and returns a map of configuration
variables. If there is an error, the system will exit.
raw docstring

resolve-secretsclj

(resolve-secrets client env secrets)

Looks up the given collection of environment variables in Vault if the values are prefixed with vault:.

Looks up the given collection of environment variables in Vault if the
values are prefixed with `vault:`.
raw docstring

resolve-uriclj

(resolve-uri client vault-uri)

Resolves a Vault path URI as provided to the environment. Throws an exception if the URI does not resolve to a non-nil value.

Resolves a Vault path URI as provided to the environment. Throws an exception
if the URI does not resolve to a non-nil value.
raw docstring

vault-prefixclj

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close