Hello.
if I have a binary called generateSecret , I cannot use it in my dagger function (ie creating a dagger container) and create a password that would be of type "daggerSecret" without exposing it in the logs ?
password, err := myContainerWithSecretGeneratorBinary.
WithExec([]string{"generateSecret"}).Stdout(ctx)
--> this will print the password...
myContainerWithSecretGeneratorBinary.
WithExec([]string{"generateSecret"}, dagger.ContainerWithExecOpts{RedirectStdout: "/tmp/password"}).
File("/tmp/password").
Contents(ctx)
--> this will also print the password...
what solution do I have ?
(I want to use generateSecret and create a dagger.SecretINSIDE dagger world, not from the outside on the command line when calling the function.... and "of course I would like to do so without exposing the secret in th logs...)
๐