<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Andrew Rogers</title>
    <description>The latest articles on DEV Community by Andrew Rogers (@arcompliance).</description>
    <link>https://dev.to/arcompliance</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4203534%2Ffe35934d-f5b3-4164-8f9d-57729ce76d4f.jpg</url>
      <title>DEV Community: Andrew Rogers</title>
      <link>https://dev.to/arcompliance</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/arcompliance"/>
    <language>en</language>
    <item>
      <title>Your Sentry Breadcrumbs Are Carrying Someone Else's PHI</title>
      <dc:creator>Andrew Rogers</dc:creator>
      <pubDate>Sat, 24 Oct 2026 00:38:54 +0000</pubDate>
      <link>https://dev.to/arcompliance/your-sentry-breadcrumbs-are-carrying-someone-elses-phi-57nn</link>
      <guid>https://dev.to/arcompliance/your-sentry-breadcrumbs-are-carrying-someone-elses-phi-57nn</guid>
      <description>&lt;h2&gt;
  
  
  The Bug You Didn't Write
&lt;/h2&gt;

&lt;p&gt;Your Go service handles concurrent HTTP requests. You're using&lt;br&gt;
&lt;code&gt;sentryzerolog&lt;/code&gt; to ship breadcrumbs and errors to Sentry for&lt;br&gt;
observability. Everything looks clean in code review. Then someone&lt;br&gt;
runs a HIPAA audit and finds patient names, DOB strings, and&lt;br&gt;
medication codes inside Sentry error payloads for requests that&lt;br&gt;
never touched those patients.&lt;/p&gt;

&lt;p&gt;You didn't write this bug. The architecture did.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why This Happens
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;sentry-zerolog&lt;/code&gt; integration stores a single &lt;code&gt;Hub&lt;/code&gt; inside the&lt;br&gt;
&lt;code&gt;Writer&lt;/code&gt; struct, initialized once at construction time:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
go
type Writer struct {
    hub    *sentry.Hub  // fixed at creation — shared across ALL goroutines
    levels []zerolog.Level
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>go</category>
      <category>security</category>
      <category>hipaa</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
