Hi everyone, If I am passing sensitive information...
# ask-community
Hi everyone, If I am passing sensitive information to my dagster container as environment variables, how do I pass them as secrets? I would prefer if they did not show in the UI with their values in the launchpad. Thanks!
you might want a StringSource config type - having trouble finding an example in the docs but you should be able to do something like
Copy code
from dagster import StringSource
config_schema={'env_secret': Field(StringSource)}
then you can set the environment variable in the launchpad, and it'll automatically be replaced with the environment variable value at runtime.
Thanks for the help! I will try it out @Zach
@Dagster Bot discussion Pass sensitive information as environment variables
Question in the thread has been surfaced to GitHub Discussions for future discoverability: https://github.com/dagster-io/dagster/discussions/8507