How to Redact Sensitive Data in a Bug Report
December 2, 2026 · 4 min read · by the Tracebird team
To redact sensitive data in a bug report, blur it in the screenshot, strip it from the logs and network calls, and tell testers to use test accounts before they ever hit send. Do the first two at capture time, not after the report has landed in your tracker, because by then the data is already copied to every place the ticket goes.
Bug reports are a quiet privacy leak. A tester circles a broken checkout, and the screenshot shows a full name, an email and the last digits of a card. The attached logs hold a session token. The network trace holds a request body with an address. Nobody meant to share any of it.
Where sensitive data hides in a bug report
Most teams only think about the screenshot. There are at least four places to check:
- The screenshot or recording. Names, emails, order numbers, avatars, chat messages, notifications that slid in from another app.
- Console logs. Debug lines that print user objects, tokens or full API responses.
- Network requests. Authorization headers, cookies, query strings with reset tokens, and request bodies with form data.
- Free text and metadata. A tester pasting a password into the description "so you can log in", or custom metadata that includes a user email.
A report is only as safe as its leakiest part. Blurring the face in the screenshot while a bearer token sits in the HAR file protects nobody.
Screenshots: blur before sending, not after
A screenshot you blur later in an image editor is a screenshot that has already been uploaded, synced and previewed. Blur at the moment of capture, on the tester's device, so the original pixels never leave it.
Two rules make this work:
- Use a solid block or a heavy blur. A light blur on small text can sometimes be read back. If the field is truly sensitive, cover it completely.
- Make it one gesture. If hiding a field takes five taps, testers will skip it. The same annotation step where they circle the problem should let them cover private areas. We cover that step in how to annotate a screenshot in a bug report.
For screen recordings the problem is worse, because the sensitive field may only appear for two seconds in the middle of a minute-long clip. That is one reason masking inputs by default matters more for replays than for stills. The tradeoffs are in screen recording vs session replay for bug reports.
Logs and network calls: scrub on the way in
Logs and requests are text, which makes them easy to scrub automatically. Do it in the SDK or capture layer, before the data is sent, with an allow-list mindset.
- Drop or mask headers such as
Authorization,CookieandSet-Cookie. - Mask query parameters named like
token,key,code,passwordorsecret. - Truncate or omit request and response bodies on endpoints that carry personal data, such as login, profile and payment routes.
- Run a pattern pass for emails, long digit strings and JWT-shaped values in log lines.
Pattern matching will miss things. Treat it as a safety net, and fix the source too: stop your app from logging whole user objects in the first place. Securing logs after collection is not a substitute for not emitting secrets. If you want the bigger picture on what a good capture includes, read how to get console logs from a user without DevTools and how to get a HAR file from a tester.
Prevent it at the source
The cheapest redaction is data that was never there.
- Give testers test accounts with fake names, fake emails and dummy payment methods. Staging builds should never hold real customer data.
- Say it in your tester brief. One line is enough: "Don't include passwords or real personal data in reports."
- Decide a retention window. Reports that auto-expire leave less to leak and less to explain if you handle European users.
- Review a sample. Once a month, open five random reports and look for anything that should have been masked. Every miss becomes a new scrubbing rule.
A quick checklist
Before you roll out a feedback flow to testers, confirm that:
- Testers can hide any area of a screenshot in one gesture.
- Auth headers, cookies and token-like parameters are masked automatically.
- Sensitive endpoints have their bodies omitted from network capture.
- Staging uses fake data and testers know to keep real data out of descriptions.
- Someone has actually opened a few reports and checked.
Tracebird lets testers blur private areas of the annotated capture before they send, so the technical context arrives without the personal data. Whatever tool you use, run the checklist above on it before the first real tester does.