(vault-addr*)
Retrieves the Vault address from the VAULT_ADDR environment variable.
Retrieves the Vault address from the VAULT_ADDR environment variable.
(vault-client)
Returns an authenticated vault client.
Returns an authenticated vault client.
(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}
(vault-token*)
Retrieves the Vault token from the VAULT_TOKEN environment variable.
Retrieves the Vault token from the VAULT_TOKEN environment variable.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close