update_secret: Update a secret in the vault.

Description Usage Arguments See Also

View source: R/secrets.R

Description

Update a secret in the vault.

Usage

1
update_secret(name, value, key = local_key(), vault = NULL)

Arguments

name

Name of the secret.

value

Value of the secret, an arbitrary R object that will be serialized using base::serialize().

key

The private RSA key to use. It defaults to the current user's default key.

vault

Vault location (starting point to find the vault). To create a vault, use create_vault() or create_package_vault(). If this is NULL, then secret tries to find the vault automatically:

  • If the secret.vault option is set to path, that is used as the starting point.

  • Otherwise, if the R_SECRET_VAULT environment variable is set to a path, that is used as a starting point.

  • Otherwise the current working directory is used as the starting point.

If the starting point is a vault, that is used. Otherwise, if the starting point is in a package tree, the inst/vault folder is used within the package. If no vault can be found, an error is thrown.

See Also

Other secret functions: add_secret(), delete_secret(), get_secret(), list_owners(), list_secrets(), local_key(), share_secret(), unshare_secret()


secret documentation built on July 2, 2020, 1:49 a.m.