Hi hi! regarding the PrefectSecret task in Prefect...
# best-practices
z
Hi hi! regarding the PrefectSecret task in Prefect 1.0. Is it fine to directly use Secret(secret_name).get() (from prefect.client.secrets import Secret ) instead of the PrefectSecret if I don’t want let it be a task? Any downsides to do like this? Many thaanks!
1
c
Hi Zi, that’s prefectly okay and the suggested practice outside of tasks 🙂 https://docs-v1.prefect.io/orchestration/concepts/secrets.html#using-secrets-in-tasks
z
thaaanks!