Skip to contents

This function gets "secrets" or "data" from the vault instance and returns them inside a dataframe. You will need the HashiCorp Vault URL you are using including the full path to the secret e.g. my/secrets and lastly you will need a token that allows you to interact with Vault via the API.

Usage

get_vault_data(url = NULL, path = NULL, token = NULL, dataframe = "N")

Arguments

url

URL of the HashiCorp Vault instance.

path

path to the secret in the vault instance. The ?version=2 can be removed and the most recent version of the secret will be returned. An user can specify a specific version of a secret as needed.

token

token for the vault instance.

dataframe

whether to return the secret data via a dataframe. The default is "N"

Value

Return's the data or secrets that are in the vault instance.

Details

Vault: Gets the Vault Data

Examples


if (FALSE)   get_vault_data(url = "https://vault-url.com",path = "data?version=2",token = "hvs.token",dataframe="N")