How do I scan logs for secrets before sharing?
Short answer: Scan the log text for key, token, secret, cookie, private key, and connection-string patterns, then replace values with stable placeholders before sharing.
Steps
- Paste the smallest log or config snippet needed for review.
- Look for API keys, bearer tokens, cookies, private keys, and database URLs.
- Replace sensitive values with placeholders that preserve shape but remove the secret.
- Rotate any credential that was already shared outside a trusted boundary.
Use debugtools
Open the Secret Scanner to run this workflow in the browser.
Related tools
Security Headers + CORS InspectorJWT DecoderAI Debug Assistant