Skip to content

Commit 86c4070

Browse files
author
jordanbreen28
committed
bug: mark password as sensitive in install.json
This commit marks `password` as sensitive in the install.json bolt task param metadata. This prevents password from being shown in plaintext, in the bolt logs. before: ``` Running task puppet_agent::install with '{"retry":5,"collection":"puppetcore8","version":"latest","password":"1234","_task":"puppet_agent::install"}' on [".."] ``` after: ``` Running task puppet_agent::install with '{"retry":5,"collection":"puppetcore8","version":"latest","password":"Sensitive [value redacted]","_task":"puppet_agent::install"}' on [".."]
1 parent 22e07b9 commit 86c4070

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

tasks/install.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
},
4949
"password": {
5050
"description": "The password to use when downloading from a source location requiring authentication",
51+
"sensitive": true,
5152
"type": "Optional[String]"
5253
}
5354
},

tasks/install_powershell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
},
5050
"password": {
5151
"description": "The password to use when downloading from a source location requiring authentication",
52+
"sensitive": true,
5253
"type": "Optional[Sensitive[String[1]]]"
5354
}
5455
},

tasks/install_shell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
},
5151
"password": {
5252
"description": "The password to use when downloading from a source location requiring authentication",
53+
"sensitive": true,
5354
"type": "Optional[Sensitive[String[1]]]"
5455
}
5556
},

0 commit comments

Comments
 (0)