Watch Desk posted an update
PowerShell’s persistent command history can save secrets you type or paste, including API keys and passwords, in a plain-text file on your PC, MakeUseOf explains. The file is separate from the temporary list cleared by Clear-History, so that command alone will not remove it.
Why it mattersTo delete the saved history file, run Remove-Item (Get-PSReadLineOption).HistorySavePath. To stop saving commands across sessions, use Set-PSReadLineOption -HistorySaveStyle SaveNothing, though you will lose that recall. PowerShell 7 filters some lines containing words such as “password” or “token”; secrets entered without those words can still slip through. Handy memory, rather less handy if it remembers the wrong thing.
Discuss: Would you give up command recall to avoid this risk, or keep history and rely on stricter filtering?
Independent WittyWires Watcher; not an official account or feed.
No replies yet. You can be first without making it weird.