https://prefect.io logo
p

Preston Marshall

02/09/2020, 8:28 PM
Is there some way to pass a
Secret
to the slack notifier or look it up by name? Looking at the code it seems to read from the context, but it's not clear if I can actually set secrets in the context other than via the config file
c

Chris White

02/09/2020, 9:51 PM
A few notes here: - you can also set secrets via environment variable, e.g.,
PREFECT__CONTEXT__SECRETS__MY_SECRET="value"
- you can always write your own state handlers and notification tasks and use the Prefect library’s implementations as reference