-
Notifications
You must be signed in to change notification settings - Fork 909
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
Trace logging is allowed in non-elevated session #3603
Comments
gep13
added a commit
to gep13/choco
that referenced
this issue
Jan 22, 2025
Prior to this change, trace level logging was available to everyone. However, due to the sensitive nature of some of the output, the decision has been taken to restrict trace logging to only elevated sessions. When an attempt is made to use trace logging in a non-elevated session, a warning will be shown, and no trace logging will be shown. In addition, if the -r option is in play, the warning about no trace logging will go to the log file, but won't be displayed.
This was referenced Jan 22, 2025
10 tasks
NOTE: This is a back-ported issue, for a change that is going out in 2.4.2 of Chocolatey CLI: #3604 |
corbob
added a commit
that referenced
this issue
Jan 22, 2025
(#3603) Don't allow trace logging when no elevated
🎉 This issue has been resolved in version 1.4.2 🎉 The release is available on: Your GitReleaseManager bot 📦 🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checklist
What You Are Seeing?
Chocolatey CLI has a number of logging levels, including
debug
,verbose
andtrace
. Each one of these levels increases the level of detail included in the output.trace
in particular includes low level logging around outgoing requests to the configured sources. Based on conversations within the team, the decision has been taken to only allow trace logging when running in an elevated session.What is Expected?
No sensitive information should be output to the console when using the
--trace
option, when not running in an elevated session.How Did You Get This To Happen?
Run
choco search --trace
System Details
Installed Packages
Output Log
Additional Context
None
The text was updated successfully, but these errors were encountered: