I have a bunch of functions that use a good number of environment variables for secrets. A bunch of these are just credentials and similar information that will always be available in a he different environments we will run dagger from.
I was trying to figure out if there was a way to just always get the secret from the specified environment variable and not have to pass it in as an argument to the function/module.
I have tried a number of ways and it doesn’t seem to be possible to get the host environment variables, and turn them into secrets without just passing them in as an argument from the command line.
Am I missing something or is there just not a way to do this? I am a relatively new to dagger. But I can’t seem to find any examples of anybody doing this and I have tried a bunch of things that have been AI suggested as well to no avail.