Secrets logged at scale

On-call incidentMedium30 minStripe style

Your task

A developer notices during debugging that the payment service has been writing the full request body, including raw card numbers and a third-party processor API key passed in a header, into structured application logs since a logging change deployed 8 days ago. Those logs ship to your centralized logging platform (retained 90 days, searchable by ~200 employees) and a copy goes to a third-party log-analytics vendor. You're the on-call engineer who's been escalated to. Triage and contain.

It covers

  • Secrets
  • Logging
  • Data leak