Vault: Gets the approle token from Vault.
Arguments
- url
URL of the HashiCorp Vault instance.
- token
The token used to wrap the secrets in Vault via the wrapping utility.
- secrets_to_wrap
The secrets you want to wrap via the Vault wrapping utility.
- ttl
Time to live or ttl, refers to the time a token is able to be used to unwrap the wrapped secrets in Vault.
Details
This function wraps secrets via the wrap endpoint in Vault. The function returns a single use token that can be utilized once to retrieve the secrets.