Reads a secret.
Retrieves the payload of the latest version of a secret from the Secret Manager of the project the process is authenticated against.
Secret names are limited to letters, digits, underscores and hyphens: a key carrying any other character names no secret and is reported as a failure.
key
The name of the secret to be read
A promise resolving to the textual payload of the latest version of the secret named key
Error If key names no secret, if the secret is not accessible, or if its latest version carries no payload
Accessing secrets
Reads a secret.
Retrieves the payload of the latest version of a secret from the Secret Manager of the project the process is authenticated against.
Secret names are limited to letters, digits, underscores and hyphens: a
keycarrying any other character names no secret and is reported as a failure.