← BACK TO THE ARCHIVE

CASE FILE 008 / SOFTWARE FAILURE

A security rule became an availability problem.

PRIMARY SOURCE LINKED · ABOUT 3 MIN

One expensive regular expression spread through a worldwide request-processing system.

Incident dateJuly 2, 2019
reported service outage27 minutes
CollectionTechnology failures
event_sequence / CASE 008July 2, 2019

FOLLOW THE FAILURE

How a fault became an incident.

A condensed sequence, not a minute-by-minute reconstruction.

  1. 01
    THE TRIGGER

    WAF rule distributed

  2. 02
    THE FAILURE SPREADS

    CPU resources exhausted

  3. 03
    THE CONSEQUENCE

    Requests fail worldwide

  4. 04
Source record: Cloudflare · Technical postmortem ↗
THE CRITICAL BREAK

CPU resources exhausted

Correct matching does not establish that a rule can run within the resources available to serve requests.

Editorial interpretation of the failure pattern.

01 / THE INCIDENT

What happened

A new web application firewall rule exhausted the CPUs serving HTTP and HTTPS traffic across Cloudflare’s network. Visitors to affected sites saw errors.

Evidence: Cloudflare · Technical postmortem ↗

02 / THE FAILURE CHAIN

Why it happened

A regular expression performed excessive backtracking. Performance tests did not catch the behavior, and the rule went out globally without a staged rollout. The outage also complicated access to internal tools.

QUESTION FOR YOUR TEAM

Where can a configuration change consume unbounded work?

03 / THE AFTERMATH

Recovery—and its limits

Cloudflare disabled the WAF component to restore traffic, isolated and tested the problematic change, then re-enabled WAF functionality. Its incident report described changes to rollout, testing, and recovery processes.

04 / TAKE IT WITH YOU

Where could the chain break?

Safeguards to investigate—not a claim that one change would certainly have prevented this incident.

01
SAFEGUARD 1Test computational cost as well as detection accuracy.
02
SAFEGUARD 2Stage configuration changes even when they are not executable code.
03
SAFEGUARD 3Rehearse recovery access when your own services are down.

Go to the source.

A condensed editorial account. The lessons are our interpretation, not quotations. Consult the primary source for the full technical record.

Cloudflare · Technical postmortem ↗
Practice your response ↗
Compare this failure with another ↗

ONE QUESTION BEFORE YOU GO

Which test goes beyond whether a rule matches?

TAKE IT TO YOUR TEAM

Where can a configuration change consume unbounded work?

next_step.txtREAD → PRACTICE

TAKE THE LESSON FURTHER

Contain a bad change.

What stops a faulty release before it reaches everyone?

The rehearsal is fictional; the case is historical. The review starts with unanswered questions.

CONTINUE THE CONNECTION

TRAIL 01The change that spread.Three cases, one recurring question ↗