A debug flag dumped member email into Kafka logs shipped to a vendor — contain
The scenario
Debug on graph service printed member emails to stdout; log sink to a vendor. 25 minutes. Legal in thread.
Model answer
What I'd say first:
I would turn the debug flag off and stop the log sink to the vendor. Member emails went into Kafka logs for about twenty-five minutes. This is a privacy incident, not a logging bug.
How I'd work it:
- 1Disable the flag. Pause the sink. Start the vendor deletion request with a time range, not sample lines.
- 2Confirm what left the boundarytopic, sink, minutes, whether tokens sat on the same lines. Do not paste emails in Slack.
- 3Rotate any credentials that appeared next to those lines. Keep Kafka logging on, minus the PII path.
- 4Tell legal and the roomwe contained the flag and the sink. We will not share sample lines. Feed serving may be fine and this is still a trust incident.
How I'd explain it:
A debug flag that prints member email turns stdout into a PII pipeline the moment logs ship off-box. Kafka logs to a vendor are production. A wrong answer is to leave the flag, paste a sample, or disable all Kafka logs instead of the leak.
How I'd prevent it:
PII allowlists on log fields. Admission that rejects email-like fields in debug sinks. Sink filters that drop member identifiers before they leave.
The follow-up they'll ask
“Vendor wants a sample line?”
No, the vendor does not get a sample line with emails. I would give a time range through the privacy process so they can delete by window. Samples spread PII further. Containment is flag off, sink stopped, deletion ticket. If they need proof of scope, we share counts and timestamps, not member data.
Common mistakes
- Leaving flag
- Slack samples
- Disabling all Kafka logs only