Existing state
- Managed WAF rules with service-specific exceptions
- Production paths that depended on historical bypasses
- Different environments with different traffic characteristics
- DNS, TLS and origin behavior coupled to application availability
Case study / Edge security
An internet-facing application estate was hardened by tightening WAF behavior, restructuring exception handling, managing DNS changes in phases and improving certificate lifecycle planning without turning edge security changes into uncontrolled production events.
Context
The environment relied on Cloudflare for WAF enforcement and edge controls across multiple services. DNS and certificate management had to evolve at the same time, so security policy, routing and TLS lifecycle could not be treated as unrelated tasks.
Constraints
The main risk was not whether a rule could be deployed. It was whether legitimate production traffic would still pass after the rule started enforcing the intended policy.
Lower environments did not always reproduce the same request shapes, client behavior or integration paths seen in production.
Some WAF bypasses existed because of previous incidents or service behavior that was not obvious from the rule definition alone.
Removing or narrowing an exception required application context from the team that originally requested or depended on it.
Authoritative DNS changes required import, Infrastructure as Code alignment, nameserver cutover and a rollback plan rather than a single console edit.
Wildcard certificates could be referenced by multiple load balancers or services, so renewal strategy required consumer discovery first.
WAF events, origin responses and deployment timing had to be visible enough to distinguish application failures from edge enforcement.
Approach
The operating model focused on making risky changes smaller and easier to reason about, with explicit ownership and rollback conditions.
Map WAF rules, exception paths, DNS zones, certificate consumers and origin dependencies before changing enforcement.
Document what should be allowed, challenged or blocked and identify the application owner who can validate that behavior.
Use available non-production traffic, request replay or controlled production observation to understand how the rule behaves before broad enforcement.
Apply changes incrementally, preserve a known rollback path and watch WAF and origin signals during the change window.
Once behavior is understood, align lower environments and documentation to the validated policy rather than maintaining silent drift.
WAF hardening
A previous production change demonstrated that removing an exception can immediately reactivate blocking on traffic that had been bypassing inspection. The recommended process therefore included application-owner review and explicit acceptance criteria before enforcement changes.
Each exception was tied to the application behavior it protected instead of being kept as an unexplained path pattern.
Teams depending on an exception were expected to confirm the behavior that must continue after the change.
Changes continued through peer and security review, but review was not treated as a substitute for application validation.
Blocking symptoms and rollback actions were defined before production enforcement so recovery did not depend on improvisation.
Where appropriate, obsolete hostnames and broad access patterns were removed so non-production environments did not remain permanently permissive.
WAF events and application responses were used to separate legitimate detections from false positives and service-specific exceptions.
DNS and TLS
DNS migration and certificate renewal were handled as infrastructure lifecycle work, with explicit phases and dependency discovery before cutover.
Outcome
No synthetic incident reduction or availability percentage is claimed. The result is described in terms of the delivered operating model and infrastructure state.
Exception handling was reduced and made more explicit so enforcement behavior was easier to reason about.
Production WAF changes incorporated requester context, acceptance criteria, validation evidence and rollback planning.
Unneeded hostnames and permissive access patterns were removed where the target policy required stricter defaults.
Zone import, Infrastructure as Code alignment and nameserver migration were separated into independently reviewable phases.
Certificate renewal planning started from consumer inventory instead of assuming a wildcard could be replaced safely everywhere at once.
WAF and origin behavior were treated as part of change validation rather than something checked only after an incident.
Technology
The work crossed traditional ownership boundaries because WAF, DNS, TLS and origin behavior all affected the same production request path.
Start with the current rules, exceptions, application dependencies and the rollout behavior you need to preserve.