NateV
04/10/2023, 8:03 PMconfigured
to use env variables for storing secrets: https://docs.dagster.io/guides/dagster/using-environment-variables-and-secrets. But the documentation of configured
says not to use it for secrets because it will show secrets: https://docs.dagster.io/_apidocs/config#dagster.configured. is this a conflict, or am I missing something?daniel
04/10/2023, 9:11 PM.configured({"password": os.getenv("MY_PASSWORD_VALUE")}
could result in the value of MY_PASSWORD_VALUE being shown in the UI.
The secrets docs are referring to indicating in a structured way that a field should be sourced from an env var like:
github_api.configured(
{"password": {"env": "MY_PASSWORD_VALUE"}}
)
The "env" key tells Dagster in a structured way that the value should be sourced from an env vardaniel
04/10/2023, 9:12 PMNateV
04/11/2023, 1:08 AMconfigured
, or is that to be avoided? The Azure plugin, for example, has its examples using that pattern, but is it something to avoid? Or does it depend on use-cases, like if I've got authorized users of our dagster tenant who shouldn't have access to certain secrets?daniel
04/11/2023, 1:09 AMNateV
04/11/2023, 1:10 AM