-
Notifications
You must be signed in to change notification settings - Fork 320
Closed
Labels
Milestone
Description
Description of the new feature/enhancement
Because every command in SecretManagement has Secret in the name, every command invocation gets excluded from history. This isn't a good experience especially since SecretManagement is helping with the "secrets not in plaintext" situation.
Here are some examples that would be nice to have in history:
Get-Secret PSGalleryApiKey -AsPlainTextPublish-Module -Name Foo -NuGetApiKey (Get-Secret PSGalleryApiKey -AsPlainText)However, we need to make sure that something like this still gets excluded:
Get-ResultFromTwoSecrets -Secret1 (Get-Secret -Name blah -AsPlainText) -Secret2 sdv87ysdfayf798hfasd8f7haProposed technical implementation details (optional)
This regex based filter:
PSReadLine/PSReadLine/History.cs
Line 115 in fd99806
| "password|asplaintext|token|apikey|secret", |
should be AST based and play nice with an exclusion list.
pluma9