-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TraceSecrets Don't Always Work #2122
Comments
Secrets also will show when external processes print the secrets (and the output is not redirected) or if you use System.Console directly. It's not a perfect solution whatsoever. Can you give a small example snippet on what you mean? |
The script
Will output
So when using logfn the secret doesn't print (which is good) |
Agreed this could work. So the secret is part of a task-description, which is certainly unusual... |
In my example, it's logging which environment variables being set. So i have a collection of environment variables to set, and wrapper the setting in a trace which logs key and value. actual code
where DBPassword has been set as a secret earlier in the script. |
another completely contrived example to show different behaviour for outputting secrets:
outputs
i'll have a look to see if i can fix this :) |
…et & task tags
Description
Text registered with a trace secret will print when opening and closing tags (and maybe other places)
Repro steps
Register a secret
Do a trace with a description containing the secret
Expected behavior
Secret doesn't show in console
Actual behavior
Secret does show
The text was updated successfully, but these errors were encountered: