use_vault_key: Default key for 'vault'

Description Usage Arguments

View source: R/key.R

Description

Use this function to create a key which this package can use by default to encrypt/decrypt your secrets. vault will read its default key from the VAULT_KEY environment variable.

Other packages can get a similar behavior for their own package by using use_pkg_key() and read_pkg_key().

Usage

1
2
3
4
5
use_vault_key(scope = c("user", "project"))

use_pkg_key(pkg, envvar, scope = c("user", "project"))

read_pkg_key(envvar)

Arguments

scope

Edit globally for the current user, or locally for the current project

pkg

Name of package

envvar

Name of environment variable to use


shunsambongi/vault documentation built on March 19, 2020, 4:58 p.m.