@Marvin is it possible to use block values when setting up notifications in ui? I don't want to expose secret keys in custom webhooks
m
Marvin
02/26/2025, 10:35 AM
Yes, it is possible to use block values when setting up notifications in the Prefect UI, including custom webhooks. Prefect supports the use of blocks to manage and store sensitive information securely. For instance, you can use the
SecretStr
field type provided by Pydantic to obfuscate sensitive values like API tokens and secret keys. This ensures that sensitive data is encrypted and not exposed in the UI or logs.
For more information on how to create and use blocks in Prefect, you can refer to the following documentation:
- Prefect Blocks Documentation
- Webhook Triggers in Prefect
These resources provide guidance on setting up secure webhook endpoints and managing block values effectively.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.