Course contents · Boundary and deterministic rules
- 1. Bound the Cloudflare WAF pilot to a zone and originFree
- 2. Deploy a harmless Cloudflare custom rule and prove its scopeFree
- 3. Trace a Cloudflare decision through phases and sampled eventsFree account
- 4. Repair a managed-rule false positive with a bounded exceptionPremium
- 5. Configure a Cloudflare rate rule without promising a global quotaPremium
- 6. Recover a WAF change while preserving the origin boundaryPremium
- 7. Hand over a Cloudflare WAF pilot with attributable evidencePremium
Bound the Cloudflare WAF pilot to a zone and origin
Establish the account, zone, hostname, origin authentication and useful-work baseline before changing WAF rules. Separate server TLS validation from proof that requests passed through the intended edge policy.
22 MIN
By AISecurityInterviews · Updated
TL;DR: A WAF controls requests that traverse its enforcement path. Verify the hostname, origin access boundary and useful application behavior before claiming that a new rule protects the application.
Where you are. First lesson. Turn a customer's edge-protection request into a bounded change and a testable origin boundary.
Reference and lab scope. Cloudflare developer documentation checked November 2026, using the current Security dashboard. The fictional pilot uses an authorized, isolated Business-plan zone and an already protected HTTPS origin. Product procedures are documentation-checked, not tenant-tested. Supplied records and Python exercises are fictional and run offline.
Define the application and the claim
The fictional customer, Harbor Ledger, owns api.harborledger.example. Its isolated training application accepts harmless requests at /health, /__edgecheck__/blocked, /v1/preview and /v1/render. No request handles personal data, charges an account or sends a message. The .example name is illustrative: an optional product rehearsal substitutes a customer-owned dedicated hostname with the same harmless behavior.
The assets are application availability, processing capacity and the integrity of the edge policy. An Internet client can choose a URL, method and request content. The boundary is the edge evaluating a request before the origin performs work. A path that reaches the origin outside that boundary invalidates an application-wide WAF claim even if the dashboard shows a deployed rule.
The provider's job is to configure and explain the boundary. The customer owns the application contract, acceptable false positives, traffic budgets and recovery authority. Administrator rights do not establish that authority. Record the exact account and zone before opening a rule form, especially when a provider operates several customer accounts.
Preserve an existing origin boundary
Cloudflare's proxy-status documentation distinguishes proxied HTTP traffic from DNS-only resolution. An effective DNS-only HTTP path goes directly to the origin. Mixed address records and CNAME chains can still result in proxying, so inspect the effective hostname path rather than one record icon. A successful DNS lookup alone is insufficient. Inventory alternate application hostnames and origin listeners with the owner rather than discovering them by scanning.
The lab starts with Full (strict) already working. That mode checks the origin's server certificate, including validity, hostname and an accepted issuing authority. It does not prove that the connecting client is your Cloudflare account. See Full (strict) for the actual certificate requirements.
The origin also already enforces a customer-specific client certificate for the edge connection, with approved network ingress restrictions. Cloudflare's Authenticated Origin Pulls documentation distinguishes a shared global certificate from a custom zone or hostname certificate. The shared certificate proves membership in the Cloudflare network, not the customer's account. A custom certificate helps only if the origin actually requires and validates the intended credential on every applicable listener.
This course does not instruct you to replace certificates or close firewall ports during a WAF experiment. Obtain the existing origin-boundary evidence from the application/network owner. If it is absent, pause the broader protection claim and open a separate change. AOP is also not a Tunnel configuration: a Tunnel-based origin needs its own connector and reachability review.
- 1
1 · Client to edge
- Expected hostname and proxied request
- Browser validates the public server identity
- 2
2 · Edge to origin
- Edge validates the origin server certificate
- Origin requires the customer-specific client credential
- 3
3 · Application acceptance
- WAF evaluates the intended request path
- Application still authenticates and authorizes work
Capture the scope before the first rule
| Record | Required evidence | Owner |
|---|---|---|
| Account and zone | Exact identifiers, isolated lab purpose | Customer sponsor |
| Feature availability | Business plan and relevant rule capacity | Platform owner |
| Application contract | Harmless routes, methods and expected receipts | Application owner |
| Origin boundary | Proxy path, TLS state, listener and client-auth review | Network/application owner |
| Administration | Scoped rule editing and analytics visibility | Access owner |
| Existing policy | Ordered custom, rate and managed deployments; exceptions | Provider engineer |
| Recovery | Previous state and independent console access | Change owner |
Read access and write access serve different jobs. Give the reviewer visibility into the relevant rules and events; do not grant account-wide administration just to inspect a screenshot. Keep secrets, session cookies, certificate keys and full customer request bodies out of the packet. A screenshot should show the selected object and decision, with unnecessary account information redacted in customer-controlled records.
Establish a useful-work baseline
Before adding rules, record a harmless /health response and an accepted /v1/preview transaction. Keep the timestamp with timezone, hostname, method, path, HTTP result and application receipt. A transport error is not a successful policy test. A cached page is not proof that the application executed a new request; use the owner's designated non-cacheable test endpoint where fresh work matters.
Also record the origin owner's existing negative test: a connection without the approved client credential must not execute application work. Do not reproduce direct-origin probing against an unfamiliar address. The owner should provide a controlled rehearsal or configuration-and-receipt evidence for its own listener. Treat missing evidence as unknown rather than converting it into a pass.
The initial acceptance boundary is narrow: the named hostname and routes under the recorded configuration. New hostnames, Workers routing, API clients, origin listeners or caching changes require reassessment. WAF inspection does not replace application authorization; a permitted request can still ask for another user's object.
Do this before moving on
Complete the seven-row scope record. A supplied review says: proxy enabled, Full (strict) enabled, shared global AOP enabled, origin application reachable without a client certificate on a second listener. Decide whether this proves the intended origin boundary.
Worked review: it does not. The TLS setting authenticates the server, shared AOP is not customer-specific, and the second listener admits work outside the intended credential check. Hold the application-wide claim, assign the listener repair to its owner and require a fresh ordinary-path test after repair. Do not hide this defect by adding more WAF rules.
Go deeper
- TLS and HTTPS separates server identity checks from traffic filtering decisions.
- DNS security explains what name resolution establishes and what it cannot prove.
- Broken access control shows the application authorization boundary that remains after edge admission.
Key takeaways
- Prove the path before claiming that the WAF protects an application.
- Separate origin server validation from origin client authentication.
- Bind provider work to customer authority and named objects.
- Require useful work as well as a denied unauthorized path.
Check yourself
Say or write your answer first, then reveal. Explaining it from memory, in your own words, is the skill an interviewer is checking.
1Does Full (strict) prove that only your account reaches the origin?
2A new API hostname points to the same origin. Is it covered by the old acceptance result?
Sign in to track which lessons you have finished.