Skip to content

vault key

vault returns structured data from Vault using the Vault CLI (vault). key is passed to vault kv get -format=json $KEY and the output from vault is parsed as JSON. The output from vault is cached so calling vault multiple times with the same key will only invoke vault once.

Example

{{ (vault "$KEY").data.data.password }}