@grafctory/gear
    Preparing search index...
    • 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.

      Parameters

      • key: string

        The name of the secret to be read

      Returns Promise<string>

      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