Join Slack
Powered by
Hello, is there a way for resources to use pydanti...
# ask-community
p
Peter Lim
07/24/2023, 3:59 PM
Hello, is there a way for resources to use pydantic’s SecretStr or SecretField for passwords? I don’t want the password to be visible in the resources page in Dagit
❤️ 1
r
rex
07/24/2023, 6:52 PM
https://docs.dagster.io/guides/dagster/using-environment-variables-and-secrets#from-dagster-configuration
p
Peter Lim
07/24/2023, 7:17 PM
EnvVar works well for this case, thank you!
Peter Lim
07/24/2023, 7:59 PM
Hi
@rex
how do I declare this resource on unit tests? Merely importing the resources and naming it by key doesn’t seems to invoke the password
r
rex
07/24/2023, 8:00 PM
@ben
could you answer this question?
8
Views
Open in Slack
Previous
Next