PSReadLine icon indicating copy to clipboard operation
PSReadLine copied to clipboard

Remove "L2tpPsk" from the history

Open exchange12rocks opened this issue 1 year ago • 0 comments

Prerequisites

  • [X] Write a descriptive title.

Description of the new feature/enhancement

Cmdlets Add-VpnConnection, Set-VpnConnection have a parameter -L2tpPsk that contains a secret key shared between the server and the client. I suppose this is a sensitive information and its worth to filter out commands that have this parameter with a clear-text value.

Proposed technical implementation details (optional)

Add "L2tpPsk" into the list https://github.com/PowerShell/PSReadLine/blob/master/PSReadLine/History.cs#L117

exchange12rocks avatar Jul 17 '24 20:07 exchange12rocks