Blur a screenshot in the tab before you attach it to a public issue
The bug is real, and so is the screenshot: a settings page with a customer email, a bearer token in the Network panel, or a name in a table row. The issue is public, or it will be copied into a Slack channel that is wider than you think. The PNG is already on disk. Nobody spent the extra minute hiding the sensitive bit. I’ve started treating an unredacted screenshot on a public issue as a draft…
A screenshot containing sensitive information, like a customer’s email address, a bearer token from the Network panel, or a name in a table row, can be detrimental when attached to a public issue or shared on a Slack channel. To prevent this, it is recommended to redact the sensitive data before attaching the image to the issue.
When dealing with a public issue or a shared Slack channel, it is best to treat an unredacted screenshot as a draft attachment, not as evidence. If possible, crop the image to remove the sensitive region and keep the rest visible. If the layout around the secret is crucial for reproducing the issue, blur that specific region and keep the rest of the image intact.
Before attaching the screenshot, ensure you have scanned the image for any emails, tokens, names, and private URLs. If the surrounding layout is important for demonstrating the bug, apply a blur to the sensitive region and then attach the redacted file. However, avoid relying on the issue being "internal enough" if the tracker can be made public later.
To streamline the process, create a note in the issue template or the agent prompt when the task is to "attach a screenshot." This will help agents attach the raw capture and redact the sensitive information within the tab before uploading the file.
If you prefer using an in-tab blur tool, open the PNG, blur the sensitive region, and download a new PNG. This method allows you to redact the region without leaving the tab, saving time and effort. Ensure that the blur strength is appropriate for the information being redacted, as a light blur might still be readable.
When working in the browser, an in-tab blur tool is sufficient for redacting sensitive information before attaching the screenshot. Nevertheless, if your team already has an approved redaction step in the design tool or a script in the repository, use that as the source of truth to maintain consistency.
In summary, always prioritize redacting sensitive information before attaching a screenshot to a public issue or sharing it on a Slack channel. Avoid uploading the original unredacted file just in case, and instead, rely on redacted versions of the image. If the original attachment was sent for reference, reject the image and ask the agent to resubmit a redacted version. Accept the redacted screenshot if it meets the requirements and clearly indicates that the sensitive information has been removed.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to