Developer shipped a privacy leak despite writing, testing, and commenting the safeguard

A developer building WhyrEp, a local-first workout tracker, implemented a detailed Sentry data-scrubbing policy before writing any analytics code, including a beforeSend hook and unit tests to strip sensitive fields like exercise names, weights, and session notes. Despite also adding a explicit code comment warning never to send share-link payloads to Sentry, a leak still occurred. The gap was that Sentry's browser SDK automatically attaches the full URL, including the fragment, to every event — a data path entirely separate from what the developer's scrubbing logic covered. The leak was only discovered after the developer stopped reviewing their own code and instead intercepted raw outbound bytes using a Puppeteer test that scanned Sentry-bound network requests for forbidden strings. The incident highlights that third-party SDK default data collection can bypass even carefully written application-level privacy controls.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in