Skip to content

Commit

Permalink
Update Password-params-must-be-secure.test.ps1 (#720)
Browse files Browse the repository at this point in the history
* Update Password-params-must-be-secure.test.ps1

* Update no-password-params.json

* Update no-password-params.json
  • Loading branch information
dciborow authored Dec 5, 2022
1 parent 107056f commit b85a965
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ foreach ($parameter in $templateObject.parameters.psobject.properties) {
$name -like "*accountkey*") {
# if it's not secure, flag it

if ($type -ne 'securestring' -and $type -ne 'secureobject') {
if ($type -ne 'securestring' -and $type -ne 'secureobject' -and $type -ne 'bool') {
#except certain patterns we know about in ARM
# secret + Permissions (keyVault secret perms is an accessPolicy property)
# secret + Version (url or simply the version property of a secret)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"parameters": {
"my_Parameter": {
"type": "string"
},
"secretToggle": {
"type": "bool"
}
},
"resources": []
}
}

0 comments on commit b85a965

Please sign in to comment.