Secret
class Secret
An interface for working with secrets on Redivis, which can either be stored under an organization or user. In order to access organization secrets, you must be an administrator of that organization.
Secrets can currently only be accessed from within a Redivis notebook. If your use case requires external access to secrets, please contact [email protected] to tell us more about alternate use cases.
Constructors
organization$secret
(name)
Create a reference to a secret owned by an organization.
user$secret
(name)
Create a reference to a secret owned by a user.
Examples
# secrets are case-sensitive
secret <- redivis$user("my_username")$secret("EXTERNAL_API_TOKEN")
# Avoid printing secrets, but rather pass them to other methods as needed
make_http_request("https://example.com/api", auth_token=secret$get_value())
Methods
Get the value of a secret, as a string
Last updated
Was this helpful?