Skip to main content

Firewall and WAF controls

Control layers

LayerControlCurrent evidence
Cloudflare edgeAutonomous DDoS protection is a provider baseline for Cloudflare servicesProvider capability confirmed; account tuning not reviewed
HTTP application edgeCloudflare WAF, custom rules, managed rules, rate limits, and security events are available by plan and configurationCapability confirmed; enabled rules and plan entitlements not verified
Static hostingOnly the built application artifact is served; no application-owned origin server is exposedArchitecture confirmed
Supabase gatewayManaged routing separates authentication, data, storage, realtime, and serverless servicesArchitecture confirmed
DatabaseGrants, row-level policies, constraints, and restricted trusted operations control data accessCurrent catalog confirms row-level security on reviewed public tables; policy correctness remains reviewable
ApplicationAuthentication, authorization, input validation, tenant checks, and provider-callback validation provide application-layer filteringImplemented in relevant flows; not a substitute for edge WAF controls

Required operating standard

  1. Keep automated DDoS protection active.
  2. Review and enable the appropriate managed WAF ruleset for the production zone.
  3. Apply rate limits to authentication, callbacks, and abuse-prone operations.
  4. Test rule changes in a controlled environment and monitor false positives.
  5. Restrict administrative access and retain rule-change evidence.
  6. Review security events and link confirmed attacks to incident response.

Rule evaluation model

OrderDecision layerEvaluation dataResult
1Provider network protectionConnection and volumetric traffic characteristicsAbsorb or reject platform-level denial-of-service traffic
2Cloudflare managed and custom rulesRequest host, method, path, headers, source characteristics, and managed signaturesAllow, challenge, log, or block according to the active edge policy
3Rate and bot controlsRequest frequency, endpoint sensitivity, client behavior, and account-flow riskThrottle or challenge abusive automation while preserving legitimate use
4Managed gatewayService route, token format, request shape, and provider limitsRoute valid requests to the intended service and reject malformed or unauthenticated access
5Application authorizationCurrent actor, tenant, role, hierarchy, ownership, object, and workflow statePermit the exact business operation or deny it
6Database and storage policyCaller role, row predicate, object ownership, and execution grantRestrict accessible records and objects even if browser or edge controls are bypassed

The edge control review records active rules and executes benign validation cases for allowed traffic, prohibited methods, oversized requests, repeated login attempts, high-rate API access, known malicious patterns, path traversal probes, untrusted origins, missing security headers, and false-positive business traffic. High-impact rule testing is restricted to an authorised non- production scope so legitimate production operations remain unaffected.

Rule change procedure

  1. Record the threat, route, method, expected traffic, proposed expression, action, owner, and expiry.
  2. Test the rule in log-only mode or an equivalent non-blocking environment against malicious and legitimate examples.
  3. Review false-positive impact on authentication, document upload, provider callbacks, static assets, and managed-service requests.
  4. Obtain approval for challenge or block behavior and define the immediate disable path.
  5. Deploy with a bounded observation window and monitor security events, error rate, and business conversion signals.
  6. Promote, narrow, or remove the rule from observed evidence; retain the decision and examples.

Exception handling

An allow rule records the exact route, source or identity basis, business owner, reason, compensating authorization, logging, expiry, and review date. Broad IP, country, path, or user-agent exceptions are not accepted as substitutes for application authorization. Provider callback exceptions remain restricted to the documented callback route and still require provider authenticity and replay validation.

Evidence limitation

No claim is made that optional Cloudflare WAF rules, custom rules, rate limits, bot controls, alerts, or network restrictions are currently enabled. A dated account export or screenshot is required before representing those settings as implemented.

Provider references