Skip to content

The quarterly Cloudflare zone review: a maintenance baseline against drift

Cloudflare zones do not break loudly — they drift: stale DNS records, rules nobody owns, expiring origin certs, firewall lists from two years ago. A one-hour quarterly checklist that catches all of it.

A Cloudflare zone rarely fails on the day someone misconfigures it. It fails eighteen months later, when the stale A record becomes a subdomain takeover, the WAF exception added “temporarily” during a launch is still exempting half the site, or the origin certificate quietly expires on a weekend. None of these announce themselves — the dashboard shows green the whole way down. The countermeasure is boring and effective: a written quarterly review, about an hour per zone, covering the same seven areas every time.

What you are setting up

Drift, in a Cloudflare zone, accumulates in predictable places. DNS records outlive the servers they pointed at — and a record pointing at a released cloud IP or a deleted SaaS tenant is a takeover invitation, not just clutter. Rules pile up: the legacy Page Rules that were never migrated to modern rules, the WAF skip added during an incident, the redirect that outlived its campaign. Certificates diverge: edge certificates renew themselves, but origin certificates, custom uploads, and the CAA records constraining them all age on their own clocks. And the origin firewall’s copy of Cloudflare’s IP ranges drifts from the published list unless a job keeps it honest.

The quarterly review is a standing appointment that walks each area with a checklist, produces a short written result, and files a config snapshot. The snapshot is what turns review N+1 from a fresh investigation into a diff.

What to check first

  • Whether a previous snapshot exists. If this is review one, the first task is creating the baseline (exports below); everything after compares against it.
  • Who owns the zone review. A checklist without a named owner and a calendar slot is a wish.
  • What changed on paper since last quarter. Change tickets, incident notes, launches — the review verifies reality matches the record, so gather the record first.

How to verify

Pull the artifacts the review reads, using a read-only API token:

# Config snapshot for the diff against last quarter
curl -s -H "Authorization: Bearer <api-token>" \
  "https://api.cloudflare.com/client/v4/zones/<zone-id>/settings" > settings-$(date +%F).json

# Every DNS record, for the stale-record pass
curl -s -H "Authorization: Bearer <api-token>" \
  "https://api.cloudflare.com/client/v4/zones/<zone-id>/dns_records?per_page=100" \
  > dns-$(date +%F).json

# Origin firewall list vs the published ranges
curl -s https://www.cloudflare.com/ips-v4 | diff - /etc/cloudflare/ips-v4

# DNSSEC still validating? (ad flag should be present)
dig +dnssec A example.com @1.1.1.1 | grep -E 'flags|RRSIG'

With last quarter’s files in git, git diff against today’s exports is the fastest possible answer to “what changed while nobody was looking”.

The runbook

  1. DNS record audit. For every A/AAAA/CNAME in the export: does the target still exist, still belong to you, still serve this purpose? Resolve each one; records pointing at unassigned cloud IPs, dead SaaS tenants, or decommissioned hosts get deleted today, not flagged for later. Check proxy status while you are there — web hostnames orange, infrastructure hostnames deliberately grey, no accidents.
  2. Rules audit. Walk redirect, cache, transform, and WAF custom rules plus rate limiting. Every rule needs an owner and a reason someone can state; disabled rules older than two quarters get deleted; incident-era skips and exceptions get re-justified or removed. Count remaining legacy Page Rules and drive the number toward zero.
  3. Certificate pass. Edge certificate status and expiry, custom or advanced certificates, origin certificate expiry dates (write the soonest one into the review notes), and CAA records still matching the CAs you actually use. Anything expiring within two quarters gets a ticket now.
  4. Origin exposure pass. Run the firewall diff above on every origin; re-run the direct-to-origin test from a non-Cloudflare network and confirm it still times out. The full procedure lives in allowlisting Cloudflare IPs at the origin firewall.
  5. Security events review. Sample the quarter’s WAF and rate-limiting events: top rules firing, top blocked paths, and — the part people skip — likely false positives among the blocks. A WAF nobody reads is a WAF slowly drifting toward either uselessness or user harm.
  6. Access and token audit. Account members against the current team roster, 2FA enforced, API tokens listed with last-used dates — unused tokens revoked, shared “team” tokens replaced with scoped ones as described in reproducible zone config.
  7. File the result. Snapshot committed, findings written in five lines or fewer, tickets opened for anything that needs work, and the next review already on the calendar. Fifteen minutes of paperwork is what makes quarter N+1 take forty-five minutes instead of a day.

When this approach is wrong

A zone with one hostname and no rules does not need seven passes — collapse this to an annual fifteen-minute version, but keep the DNS and certificate checks, because those two bite small zones too. Conversely, a zone under active development drifts faster than quarterly; put the snapshot diff in CI and let the review consume its output. And if the same findings repeat every quarter — same stale records, same orphan rules — the problem is change discipline, not review frequency; fix how changes land instead of reviewing harder.

Common mistakes

  • Reviewing the dashboard instead of exports. Eyeballing screens finds nothing reliably; diffs against last quarter find everything that changed.
  • Deleting “unknown” DNS records without resolving them first. Some unknowns are the DKIM record for a system that still sends invoices. Verify, then delete.
  • Treating the review as read-only. A finding without a ticket is a finding you will re-find next quarter.
  • Skipping the security-events pass because “the WAF handles it”. Unreviewed automation drifts silently — that is the theme of this entire article.
  • Letting the review slip one quarter. The second skip is easier, and the third is permanent. The calendar slot is the control.

Prevention / maintenance checklist

  • Quarterly review on the calendar with a named owner and a written checklist (this one is a fine start).
  • Config and DNS snapshots automated daily, committed to git, alerting on job failure.
  • Certificate expiry dates tracked with alerts at 60 and 30 days.
  • Firewall range-refresh job verified as part of every review, not assumed.
  • Checklist itself reviewed yearly against developers.cloudflare.com/fundamentals/ — products change, and so should the review.

A Cloudflare migration with a written rollback plan, or a zone that gets reviewed quarterly instead of drifting — that is the operating discipline Stack Harbor sells under Managed Cloud Ops; book an infrastructure review.