Author: Ismael Fernandez
The purpose of this extension is to easily fetch secrets from a Vault instance
You will be able to reach vault and get your secrets using a token
Vault cli
Set up the VAULT_ADDR
and the VAULT_TOKEN
as envvars.
Return the value of your secret.
Under the hood, it is doing te command vault read -field=$fiel $path"
load('ext://vault_client', 'vault_read_secret', 'vault_set_env_vars')
vault_set_env_vars('https://localhost:8200','mytoken')
my_foo = vault_read_secret('path/myfoo', 'value')
my_bar = vault_read_secret('path/mybar', 'foobar')