Is there some way to pass a `Secret` to the slack ...
# ask-community
p
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
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