Skip to content
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

(#948) Add user as sensitive argument #3171

Merged
merged 1 commit into from
May 30, 2023

Conversation

gep13
Copy link
Member

@gep13 gep13 commented May 30, 2023

Description Of Changes

This commit adds the various forms that the user option can be passed
to the Chocolatey CLI, to ensure that it is always caught.

Motivation and Context

Since user is one half of the information that is needed for a
credential, let's treat the user as sensitive information, in the same
way that we treat password.

Testing

Follow the steps in this PR: chocolatey/ChocolateyGUI#1002 and ensure that both user and password are not displayed.

This will require running the Get-ChocoUpdatedDebugVersion.ps1 script to pull through the latest version of Chocolatey CLI through to Chocolatey GUI.

Operating Systems Testing

Windows 10

Change Types Made

  • Bug fix (non-breaking change).
  • Feature / Enhancement (non-breaking change).
  • Breaking change (fix or feature that could cause existing functionality to change).
  • Documentation changes.
  • PowerShell code changes.

Change Checklist

  • Requires a change to the documentation.
  • Documentation has been updated.
  • Tests to cover my changes, have been added.
  • All new and existing tests passed?
  • PowerShell code changes: PowerShell v2 compatibility checked?

Related Issue

Relates to #948 where this functionality was first introduced.

@gep13 gep13 requested a review from vexx32 May 30, 2023 13:22
@gep13 gep13 force-pushed the make-user-sensitive-argument branch from 9e3541a to f04d63f Compare May 30, 2023 13:31
Since user is one half of the information that is needed for a
credential, let's treat the user as sensitive information, in the same
way that we treat password.

This commit adds the various forms that the user option can be passed
to the Chocolatey CLI, to ensure that it is always caught.
@gep13 gep13 force-pushed the make-user-sensitive-argument branch from f04d63f to 849d776 Compare May 30, 2023 15:19
Copy link
Member

@vexx32 vexx32 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for sorting this out! 💖

@gep13 gep13 merged commit d25f993 into chocolatey:master May 30, 2023
@gep13 gep13 deleted the make-user-sensitive-argument branch May 30, 2023 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants