Skip to contents

Vault: Gets the approle token from Vault.

Usage

wrap_secrets(url = NULL, token = NULL, secrets_to_wrap = NULL, ttl = "30m")

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.

Value

Return's the wrap token that is used to unwrap the 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.

Examples


if (FALSE)   wrap_secrets(url,token,secrets_to_wrap,ttl)