Secret Redaction attempts to automatically redact secrets and sensitive information in your terminal output, including passwords, IP addresses, API keys, and PII.
To enable Secret Redaction, Open
Settings > Privacy > Secret Redactionor type in
Enable Secret Redactionin the command palette (it is disabled by default).
Secret Redaction attempts to detect sensitive data using a list of default regex patterns and then masks it with lock icons. Clicking on a secret will display a tooltip that lets you reveal the secret or copy the secret's contents. When trying to copy terminal output containing secrets, it will be copied as asterisks (e.g.
echo ********) unless revealed or copied from the tooltip.
You can add additional custom regex for secrets you want to include in
Settings > Privacy > Secret Redaction > Custom Secret Redaction.
Here is a list of the default regular expressions that Warp uses to identify secrets.