SecretEnvVarResponse

data class SecretEnvVarResponse(val key: String, val project: String, val secret: String, val version: String)

Configuration for a secret environment variable. It has the information necessary to fetch the secret value from secret manager and expose it as an environment variable.

Constructors

Link copied to clipboard
fun SecretEnvVarResponse(key: String, project: String, secret: String, version: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val key: String

Name of the environment variable.

Link copied to clipboard

Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.

Link copied to clipboard

Name of the secret in secret manager (not the full resource name).

Link copied to clipboard

Version of the secret (version number or the string 'latest'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.