microsoftgraph / msgraph-sdk-powershell

Powershell SDK for Microsoft Graph
https://www.powershellgallery.com/packages/Microsoft.Graph
Other
691 stars 165 forks source link

Feature request : Add-MgApplicationPassword return the SecretText in plain text #1812

Open syedhamjath opened 1 year ago

syedhamjath commented 1 year ago

Below command returns the password in plain text.

(Add-MgApplicationPassword ...).PasswordCredentials.SecretText

  1. It would helpful if the secret can returned in secure string.
  2. Also add switch -SecretAsPlainText to return secret text as plain text.

This help all scenarios so that one can get secret as secure sting and also in plain text.

pownkel commented 1 year ago

My team would find this helpful as well, we're currently getting a security alert for using ConvertTo-SecureString -AsPlainText -Force but as far as I can tell we don't have any other options if the password is only returned as plain text.

petrhollayms commented 4 months ago

@CarolKigoonya Do we want to implement it given it would be a breaking change?

CarolKigoonya commented 4 months ago

Adding this issue to be tracked for the next major version