-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PUP-6494) Support sensitive commands in Exec resource type.
This commit adds support for sensitive commands in the `Exec` resource type: `command` parameters that are specified as `Sensitive.new(...)` are now properly redacted when the command fails. This supports using data from lookup and hiera. Example: ```puppet exec { 'redacted': command => Sensitive.new('/usr/bin/false SECRET_TEXT') } ``` Output: ``` Error: [command redacted] returned 1 instead of one of [0] Error: /Stage[main]/Main/Exec[redacted]/returns: change from notrun to 0 failed: [command redacted] returned 1 instead of one of [0] ```
- Loading branch information
1 parent
8bc343e
commit abd866a
Showing
6 changed files
with
86 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters