Skip to content

Commit 95e9287

Browse files
Krishna C VutukuriKapil Borle
Krishna C Vutukuri
authored and
Kapil Borle
committed
Added recommendations for ConverTo-SecureString (#738)
1 parent 69785a1 commit 95e9287

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

RuleDocumentation/AvoidUsingConvertToSecureStringWithPlainText.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ The use of the `AsPlainText` parameter with the `ConvertTo-SecureString` command
1010

1111
Use a standard encrypted variable to perform any SecureString conversions.
1212

13+
## Recommendations
14+
15+
If you do need an ability to retrieve the password from somewhere without prompting the user, consider using Windows Credential Store as used in the BetterCredentials module ( https://www.powershellgallery.com/packages/BetterCredentials/4.4/Content/BetterCredentials.psm1). If that does not work, consider using Azure KeyVault (https://azure.microsoft.com/en-us/services/key-vault/) or AWS KMS (https://aws.amazon.com/kms/).
16+
1317
## Example
1418

1519
### Wrong

0 commit comments

Comments
 (0)