core.secret

Attributes

__client

Functions

get(secret[, version])

Retrieves a secret stored in Google Cloud Secret Manager for use within the application.

Module Contents

core.secret.__client
core.secret.get(secret, version='latest')

Retrieves a secret stored in Google Cloud Secret Manager for use within the application.

Add a secret online under https://console.cloud.google.com/security/secret-manager. Service accounts requires the role “Secret Manager Secret Accessor” in IAM.

Parameters:
  • secret (str)

  • version (int | str)

Return type:

str