Skip to main content

@secrets

The @secrets decorator allows you to access secrets, such as database credentials, securely from a secrets manager. For more details, see Accessing Secrets.

@secrets(...)

[source]

from metaflow import secrets

Specifies secrets to be retrieved and injected as environment variables prior to the execution of a step.

Parameters 

sources: List[Union[str, Dict[str, Any]]], default: []

List of secret specs, defining how the secrets are to be retrieved