read_secret: Secrets

Description Usage Arguments

View source: R/secret-ops.R

Description

Store secrets using write_secret() and retrieve them using read_secret().

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
read_secret(service, name, ..., key = read_vault_key(), app = "vault")

write_secret(
  service,
  name,
  secret = ask_secret(),
  ...,
  key = read_vault_key(),
  app = "vault"
)

Arguments

service

A service that the secret is meant for i.e. what is it for?

name

The secret type i.e. what type of secret is it?

...

This argument is not used and the function will error if any values are provided

key

The key used to encrypt/decrypt the secret

app

The entity which is managing the secret

secret

The secret value


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