Skip to content

Commit

Permalink
Mask password value in Run-ALPipeline logs (#3373)
Browse files Browse the repository at this point in the history
While the password is harmless, it's undesirable to have secrets in
logs.
  • Loading branch information
mazhelez authored Feb 26, 2024
1 parent c3d199f commit e2c6bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AppHandling/Run-AlPipeline.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ if ($credential) {
}
else {
$password = GetRandomPassword
Write-Host "admin/$password"
Write-Host "Username: admin, Password: ***"
$credential= (New-Object pscredential 'admin', (ConvertTo-SecureString -String $password -AsPlainText -Force))
}
Write-Host -NoNewLine -ForegroundColor Yellow "CompanyName "; Write-Host $companyName
Expand Down

0 comments on commit e2c6bb2

Please sign in to comment.