Installation
devtools::install_git(url = "https://github.com/gonzalezben81/vault.git")
library(vault)
Post/Write secrets to vault
vault::post_vault_data(url = "vault-url.com",path = "secret-path",token = token,secrets = list(one="two",three="four"))
Get/Retrieve secrets from vault
get_vault_data(url = "vault-url.com",path = "secret-path",token = token)
Wrap secrets via vault
This function allows you to wrap secrets from vault and send them securly to another person via plain text. The vault token returned is only good for one time use,
wrap_secrets(url = "vault-url.com",token = token ,secrets_to_wrap = c("one"=one,"two"=two),ttl = "30m")