How to remove passwords and personal data from logs
Mask every secret and personal detail in the log before it leaves your machine, and rotate any key that was already shared.
Findings4 of 5 masked
- Maria DelgadoKeep
- Alan ReyesKeep
- Northgate ClinicMask
- 03/14/1961Keep
- 48213377Keep
What logs and config files give away
- Passwords, API keys, access tokens and private keys.
- Connection strings with a user name and password in them.
- Email addresses, user names and customer IDs.
- IP addresses, MAC addresses and host names.
- Names and addresses from the data being processed.
Clean it by hand
- Search for words such as key, token, secret, password and Authorization.
- Replace each value with a placeholder, keeping the name of the setting.
- Search for @ to find email addresses, and for numbers with dots to find IP addresses.
- Read the whole log once more before you share it.
Mask it with Maskline
Paste the log into Studio. Passwords, keys, tokens, emails, IP addresses and the other details are masked, and the rest of the log stays as it was, so the error still makes sense. Add your own host and project names to the words library. Paste the answer into Restore to see it with the real values.
Nothing you paste is sent to our servers.
If a key was already shared anywhere, masking it now does not help. Rotate it.