Skip to content
🔒 API client for Hashicorp's vault (https://www.vaultproject.io/)
R Other
  1. R 98.8%
  2. Other 1.2%
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
inst
man-roxygen
man
scripts
tests
vignettes
vignettes_src
.Rbuildignore
.gitignore
.travis.yml Move environment variable to travis settings Dec 11, 2018
DESCRIPTION Add pkgdown URL to DESCRIPTION Nov 4, 2019
LICENSE
Makefile
NAMESPACE
NEWS.md
README.Rmd
README.md
appveyor.yml

README.md

vaultr

Project Status: Active – The project has reached a stable, usable state and is being actively developed. Travis-CI Build Status AppVeyor build status codecov.io

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.

Usage

Create a vault client with the vault_client function:

vault <- vaultr::vault_client(login = TRUE)
## Verifying token

Interact with vault using this object:

vault$list("secret/database")
## [1] "admin"    "readonly"

and read secrets with

vault$read("secret/database/admin")
## $value
## [1] "s3cret"
vault$read("secret/database/readonly", field = "value")
## [1] "passw0rd"

or set secrets with

vault$write("secret/webserver", list(password = "horsestaple"))
vault$read("secret/webserver")

or delete secrets with

vault$delete("/secret/database/readonly")

Installation

Install vaultr from CRAN with

install.packages("vaultr")

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)

License

MIT © Imperial College of Science, Technology and Medicine

You can’t perform that action at this time.