Skip to content

Commit

Permalink
Remove Write-Host leaking file share credentials (#15225)
Browse files Browse the repository at this point in the history
* Remove Write-Host leaking file share credentials

Removed a Write-Host command that printed the Azure file share
credentials when calling `New-AzContainerGroupVolumeObject` as reported
in #15224.

* Update Changelog.md

Co-authored-by: Dingmeng Xue <[email protected]>
  • Loading branch information
AshleyRoll and dingmeng-xue authored Jun 10, 2021
1 parent ad5abea commit f5899ca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/ContainerInstance/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
-->

## Upcoming Release
* Removed the display of file share credential [#15224]

## Version 2.0.0
* Added new cmdlets: `Start-AzContainerGroup`, `Stop-AzContainerGroup` [#10773], `Invoke-AzContainerInstanceCommand` [#7648], `Update-AzContainerGroup`, `Add-AzContainerInstanceOutput`, `Get-AzContainerInstanceCachedImage`, `Get-AzContainerInstanceCapability`, `Get-AzContainerInstanceUsage`, `New-AzContainerGroupImageRegistryCredentialObject`, `New-AzContainerGroupPortObject`, `New-AzContainerGroupVolumeObject`, `New-AzContainerInstanceEnvironmentVariableObject`, `New-AzContainerInstanceInitDefinitionObject`, `New-AzContainerInstanceObject`, `New-AzContainerInstancePortObject` and `New-AzContainerInstanceVolumeMountObject`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ function New-AzContainerGroupVolumeObject {
$psTxt = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['AzureFileStorageAccountKey']
}
$Object.AzureFileStorageAccountKey = $psTxt
Write-host $psTxt
$Object.AzureFileStorageAccountName = $AzureFileStorageAccountName
# $Object.EmptyDir = $EmptyDir
$Object.GitRepoDirectory = $GitRepoDirectoryName
Expand Down

0 comments on commit f5899ca

Please sign in to comment.