secret (version 1.0.0)

local_key: Read local secret key.

Description

Reads a local secret key from disk. The location of this file can be specified in the USER_KEY environment variable. If this environment variable does not exist, then attempts to read the key from:

  • ~/.ssh/id_rsa, and

  • ~/.ssh/id_rsa.pem.

Usage

local_key()

Arguments

Details

The location of the key is defined by:

Sys.getenv("USER_KEY")

To use a local in a different location, set an environment variable:

Sys.setenv(USER_KEY = "path/to/private/key")

See Also

Other secret functions: add_secret, delete_secret, get_secret, list_owners, list_secrets, share_secret, unshare_secret, update_secret