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.
(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.
(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.
(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.
(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:`.
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |