Liking cljdoc? Tell your friends :D

carica.middleware.vault


vault-addrclj

source

vault-addr*clj

(vault-addr*)

Retrieves the Vault address from the VAULT_ADDR environment variable.

Retrieves the Vault address from the VAULT_ADDR environment variable.
sourceraw docstring

vault-clientclj

(vault-client)

Returns an authenticated vault client.

Returns an authenticated vault client.
sourceraw docstring

vault-substitute-configclj

(vault-substitute-config vault-path & keyseq)

Overrides a specified key with the value found at the given location in vault. The vault location coordinates are of the form PATH:KEY. If the path is a flat scalar string value (e.g. vault would return {"data": "myvalue"}) it can be omitted from the location string.

Args: vault coordinate string, configuration key(s)

Example: {:something 1 :otherthing 2}

Given this middleware: (vault-substitute-config "secret/path/to/my/value:keyname" :otherthing)

Given Vault contains this json at the above path: {"keyname": 5}

The resulting config is now: {:something 1 :otherthing 5}

Overrides a specified key with the value found at the given location in vault. The vault location coordinates are of the form PATH:KEY. If the path is a flat scalar string value (e.g. vault would return {"data": "myvalue"}) it can be omitted from the location string.

Args: vault coordinate string, configuration key(s)

Example:
{:something 1
 :otherthing 2}

Given this middleware:
(vault-substitute-config "secret/path/to/my/value:keyname" :otherthing)

Given Vault contains this json at the above path:
{"keyname": 5}

The resulting config is now:
{:something 1
 :otherthing 5}
sourceraw docstring

vault-tokenclj

source

vault-token*clj

(vault-token*)

Retrieves the Vault token from the VAULT_TOKEN environment variable.

Retrieves the Vault token from the VAULT_TOKEN environment variable.
sourceraw docstring

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

× close