Skip to content

Commit

Permalink
Mask CertficateData property in Write-VerboseWithSecret. Resolves Ven…
Browse files Browse the repository at this point in the history
  • Loading branch information
harrisonmeister committed Aug 19, 2021
1 parent d5babe8 commit 486961f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions VenafiPS/Private/Write-VerboseWithSecret.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Remove sensitive information when writing verbose info
JSON string or other object
.PARAMETER SecretName
Name of secret(s) to hide their values. Default value is 'Password', 'AccessToken', 'RefreshToken', 'access_token', 'refresh_token', 'Authorization'
Name of secret(s) to hide their values. Default value is 'Password', 'AccessToken', 'RefreshToken', 'access_token', 'refresh_token', 'Authorization', 'KeystorePassword', 'tppl-api-key', 'CertficateData'
.INPUTS
InputObject
Expand Down Expand Up @@ -37,7 +37,7 @@ function Write-VerboseWithSecret {
[psobject] $InputObject,

[Parameter()]
[string[]] $PropertyName = @('AccessToken', 'Password', 'RefreshToken', 'access_token', 'refresh_token', 'Authorization', 'KeystorePassword', 'tppl-api-key')
[string[]] $PropertyName = @('AccessToken', 'Password', 'RefreshToken', 'access_token', 'refresh_token', 'Authorization', 'KeystorePassword', 'tppl-api-key', 'CertificateData')
)

begin {
Expand Down

0 comments on commit 486961f

Please sign in to comment.