How to register and use secrets
<SECRET_NAME>
and a key-value pair, you can then run the following CLI command:
--interactive/-i
parameter:
@
syntax to indicate to ZenML that the value needs to be read from a file:
{{<SECRET_NAME>.<SECRET_KEY>}}
For example:
ZENML_SECRET_VALIDATION_LEVEL
to disable or control the degree to which ZenML validates your secrets:
NONE
disables any validation.SECRET_EXISTS
only validates the existence of secrets. This might be useful if the machine you’re running on only has permissions to list secrets but not actually read their values.SECRET_AND_KEY_EXISTS
(the default) validates both the secret existence as well as the existence of the exact key-value pair.StepContext
. This allows you to use your secrets for querying APIs from within your step without hard-coding your access keys. Don’t forget to make the appropriate decision regarding caching as it will be disabled by default when the StepContext
is passed into the step.