Secret

class

gworker_client.resources.Secret

Named secret reference. The plaintext value lives in the tenant AES-GCM vault and is injected as an environment variable at task startup. Never stored in source code or the deploy tarball.

Class

python
1class Secret

Methods

from_name

python
1from_name(name: str, create: bool = False) -> Secret

Reference a named secret. With create=False (default), raises NotFoundError at deploy time if the secret has not been created in the tenant vault. Set create=True to create a blank secret automatically.

← Back to docs