API client for vault.
Vault provides a platform for distributing secrets across machines. This package wraps the vault http API to allow secrets to be accessed from R. Secrets might be passwords, tokens, certificates or any other sensitive data.
Create a vault client with the
vault <- vaultr::vault_client(login = TRUE)
## Verifying token
Interact with vault using this object:
##  "admin" "readonly"
and read secrets with
## $value ##  "s3cret"
vault$read("secret/database/readonly", field = "value")
##  "passw0rd"
or set secrets with
vault$write("secret/webserver", list(password = "horsestaple")) vault$read("secret/webserver")
or delete secrets with
vaultr from CRAN with
To install our internally released version (which might be ahead of CRAN) via drat, use
# install.packages("drat") # (if needed) drat:::add("vimc") install.packages("vaultr")
or install the bleeding edge with
# install.packages("devtools") # (if needed) devtools::install_gitub("vimc/vaultr", upgrade = FALSE)
MIT © Imperial College of Science, Technology and Medicine
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.