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

(MODULES-9690) Redact Sensitive Commandline #168

Conversation

RandomNoun7
Copy link

This change redacts the commandline used with the chocolateysource
type if the user supplies a password.

If the user does not set a password for the source then no redaction
takes place. If a password is supplied then the entire commandline that
contains the password will be redacted.

This change also allows the user to specify a value to the password
parameter using the Sensitive data type, but note that this is not
required. The commandline will be redacted even if a normal string is
provided, and using the Sensitive type will cause Puppet to raise
a warning, even though nothing is wrong.

This change redacts the commandline used with the `chocolateysource`
type if the user supplies a password.

If the user does not set a password for the source then no redaction
takes place. If a password is supplied then the entire commandline that
contains the password will be redacted.

This change also allows the user to specify a value to the `password`
parameter using the `Sensitive` data type, but note that this is not
required. The commandline will be redacted even if a normal string is
provided, and using the `Sensitive` type will cause Puppet to raise
a warning, even though nothing is wrong.
@michaeltlombardi michaeltlombardi merged commit ebf41b2 into puppetlabs:master Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants