Skip to main content
Revetment
Install

Blog · · 9 min read

What Revetment cannot stop, and why we publish the list

What Revetment cannot stop, stated plainly: no DDoS absorption, no rate limiting, no bot management, and 477 of 620 pinned CRS rule ids at paranoia level 1.

Revetment runs inside Envoy Gateway to inspect HTTP transactions against application-layer signatures. It is not an edge scrubbing center, a traffic shaper, or an identity provider. We publish the exact limits of the engine because hiding Kubernetes WAF limitations behind generic claims creates broken production rollouts. When platform engineers understand the exact WAF scope, they can place complementary controls at the edge, listener, and application layers without blind spots.

The short list: what Revetment cannot stop

Platform engineers who search for what Revetment cannot stop need direct boundaries. The engine enforces HTTP application rules at the gateway proxy. Anything operating below, beside, or beyond that protocol boundary falls outside its enforcement model. This boundary is intentional.

Here is what the engine does not inspect or defend against:

  • DNS manipulation, cache poisoning, and NXDOMAIN floods.
  • Request frequency and concurrency saturation. Revetment does not implement rate limiting, slowloris protection, HTTP/2 rapid-reset budgets, or concurrency limits.
  • Automated credential abuse and fraud. Revetment does not sell bot management, device fingerprinting, account-takeover protection, or credential-stuffing protection.
  • Novel vulnerabilities without defined patterns. Revetment matches known signatures. A genuinely novel exploit passes until a rule for it exists and reaches the deployment; no signature WAF can promise otherwise.

The rule set itself also has an explicit boundary: 477 of the pinned OWASP CRS v4.30.0 rule ids compile at paranoia level 1. The rules that do not load are named on /what-revetment-cannot-stop.

We treat this document as an operational contract. We version and maintain this boundary catalog alongside our release manifests as the code evolves.

How the module attaches, and why that bounds the scope

The attachment mechanism determines the enforcement boundary. Revetment runs as a native module inside the Envoy process. It is not a sidecar, a WASM plugin, an ext_proc server, or a separate proxy. Revetment attaches to Envoy Gateway through the Kubernetes Gateway API. It is not an ingress controller and does not run on NGINX, Traefik, HAProxy, or Istio.

Operating inside the Envoy worker thread changes the runtime profile. External processor daemons (ext_proc) introduce Unix domain socket hops, context switching, and gRPC serialization overhead for every request header and chunk of body data. Sidecars double the network socket stack traversal inside the pod. WebAssembly runtimes impose memory isolation boundaries and sandbox boundary transitions that restrict deep system calls. Revetment compiles directly into the Envoy binary as a native C++/Rust extension module. It evaluates requests directly from Envoy internal memory buffers.

Because inspection happens inside the request path of one gateway, anything that fails to reach that gateway, or that exhausts it before HTTP parsing, is outside the module's reach. If a flood of raw TCP packets fills the Linux kernel receive queues on your node, Envoy drops traffic before parsing an HTTP request. Revetment does not execute. If a TLS handshake flood saturates CPU cycles during session negotiation, the connection terminates before the HTTP filter chain runs. The module cannot evaluate what Envoy has not yet parsed into an HTTP stream.

Policies configure through native Kubernetes resources using Gateway API extension points. You attach inspection policies by applying a RevetmentPolicy custom resource targeting an HTTPRoute:

apiVersion: revetment.io/v1alpha1
kind: RevetmentPolicy
metadata:
  name: api-gateway-protection
  namespace: production
spec:
  targetRef:
    group: gateway.networking.k8s.io
    kind: HTTPRoute
    name: public-api
  mode: Shadow
  paranoiaLevel: 1

The data plane inspects requests inside your Envoy process and sends no traffic to Revetment. The hosted console is optional. The engine runs locally on the node, keeping packet payloads entirely inside your infrastructure boundaries. For architectural details, read our guide on the Envoy Gateway WAF native module architecture.

The rules that do not load: reading the CRS gap honestly

The OWASP Core Rule Set (CRS) provides baseline detection patterns for enterprise applications. It organizes rules into four paranoia levels. As outlined in the OWASP Core Rule Set Documentation, Paranoia Level 1 (PL1) is the baseline tier with the fewest rules, minimal false-positive risks, and baseline coverage against common remote code execution, SQL injection, and path traversal vectors. Higher tiers introduce aggressive regular expressions, strict character whitelists, and heavy structural constraints that demand extensive application-specific tuning.

Revetment targets PL1 for its baseline ruleset. Rules do not load blindly. In our release, 477 of the pinned OWASP CRS v4.30.0 rule ids compile at paranoia level 1. The rules that do not load are named on /what-revetment-cannot-stop.

Why do the remaining rules fail to compile? The reasons fall into three technical constraints:

  1. External data file dependencies: Certain CRS rules require persistent lookup tables, IP reputation flat-files, or dynamic wordlists stored on disk. The native engine avoids uncoordinated host filesystem dependencies across stateless worker pods.
  2. Unsupported PCRE match constructs: The internal regex engine uses a secure, linear-time matcher designed to eliminate algorithmic complexity vulnerabilities like regular expression denial of service. Complex CRS patterns that rely on recursive backreferences or arbitrary backtracking fail compilation intentionally.
  3. Variable extraction mechanics: Several rules depend on raw protocol anomaly counters and multi-phase inspection variables native to Apache mod_security that have no semantic equivalent inside Envoy HTTP filter state.

Audit the list of excluded rule IDs against your actual API attack surface before promoting any route to enforcement. If an excluded rule covers Java serialization exploits, but your application services run purely on Go and Rust, the gap presents zero practical operational risk. Conversely, if an excluded rule covers specific multipart boundary bypasses and your API handles large file uploads, you must evaluate that path specifically. To see how these states appear in production telemetry, see our post on Kubernetes WAF failure modes when rules do not load.

Traffic outside the gateway path

Understanding the boundaries of your request pipeline prevents downtime. A Kubernetes WAF sits deep inside the network topology. Incoming packets traverse internet transit providers, cloud border routers, external load balancers, node network interfaces, and kernel packet filters before reaching the gateway listener.

The diagram below illustrates this physical separation of responsibilities:

Internet Transit / Anycast Edge (Layer 3 & Layer 4)
  │  [Edge CDN / DDoS Scrubbing: BGP Anycast, SYN Flood Absorption, DNS Filters]
  ▼
Cloud Provider Load Balancer / Node Interfaces
  │  [Kernel Packet Filters, conntrack tables, TLS Handshake Termination]
  ▼
Envoy Gateway Listener (Envoy Process)
  │  [Envoy Native Rate Limiter, Connection Limits, Buffer Management]
  ▼
Revetment Native Module (Layer 7 Inspection)
  │  [OWASP CRS Signatures, SQLi / XSS Checks, Scoped RevetmentExceptions]
  ▼
Target Application Pods (HTTPRoute Upstreams)

An edge network handles high-bandwidth packet floods through transit-level scrubbing, large pipe capacity, and anycast routing. A gateway WAF handles request semantics. Expecting a cluster-internal gateway filter to stop an upstream bandwidth saturation attack represents a critical design flaw. DNS-level denial of service attacks, BGP route hijacking, and TLS negotiation floods operate entirely below our inspection hook.

The correct architecture places Envoy Gateway behind a dedicated edge network that terminates volumetric floods, offloads TLS where appropriate, and filters non-TCP anomalies. This separation is necessary. Your architecture introduces an external network hop and a secondary control plane outside Kubernetes, but it preserves gateway resources for granular HTTP payload inspection.

Rate, concurrency, and slow-request abuse

Resource exhaustion does not look like exploit injection. An attacker consuming all available HTTP connection slots can do so using standard, RFC-compliant HTTP requests. Revetment does not implement rate limiting, slowloris protection, HTTP/2 rapid-reset budgets, or concurrency limits.

Each of these attacks targets server resources instead of string parsing vulnerabilities:

  • Request-rate floods saturate backend databases by calling compute-intensive routes at elevated volumes.
  • Slowloris attacks stream request headers byte-by-byte at long intervals, tying up web server threads and worker state memory.
  • Rapid-reset attacks abuse protocol multiplexing by opening streams and issuing immediate RST_STREAM frames. According to analysis on the Safeguard.sh Security Blog, HTTP/2 stream multiplexing and HPACK compression mechanisms require strict frame-level budget enforcement inside the proxy engine to prevent stream reset loops from exhausting server CPU resources without generating standard payload alarms.
  • Concurrency exhaustion opens thousands of idle keep-alive connections to fill the proxy connection pool.

None of these attacks trigger signature WAF rules. If an attacker issues 5,000 requests per second containing GET /catalog HTTP/1.1 with a clean User-Agent header, the payload is completely benign. The request matches no SQL injection, cross-site scripting, or protocol violation signatures. Revetment inspects the payload, determines it is clean, and passes it upstream. The database crashes under the load moments later.

Engineers must configure rate and volume controls within Envoy Gateway itself. As documented in the Envoy Gateway Documentation, teams can apply local rate limit filters directly to Gateway API resources using BackendTrafficPolicy configurations. Envoy tracks client tokens and IP quotas efficiently within its native connection filters:

apiVersion: gateway.envoyproxy.io/v1alpha1
kind: BackendTrafficPolicy
metadata:
  name: api-rate-limit
  namespace: production
spec:
  targetRef:
    group: gateway.networking.k8s.io
    kind: HTTPRoute
    name: public-api
  rateLimit:
    local:
      rules:
      - clientSelectors:
        - headers:
          - name: x-user-tier
            value: anonymous
        limit:
          requests: 100
          unit: Minute

Verify which infrastructure layer manages your connection timeouts, request per-minute limits, and stream ceilings before you migrate from older ingress platforms.

Bots, credentials, and account takeover

Automated credential stuffing operates through valid authentication requests. Revetment does not sell bot management, device fingerprinting, account-takeover protection, or credential-stuffing protection.

The mechanics of credential stuffing explain why payload-level WAF rules are the wrong mitigation layer. As outlined by OWASP Credential Stuffing Guidance, attackers collect stolen username and password pairs leaked from third-party data breaches, then test them programmatically across alternative web portals using distributed IP pools to evade volumetric rate limits. The resulting payload arriving at your gateway looks like this:

POST /api/v1/auth/login HTTP/1.1
Host: api.example.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
Content-Type: application/json

{"username": "alex.chen@example.com", "password": "CorrectPassword123!"}

A signature-based WAF evaluates this JSON structure against its active rules. The strings contain valid characters. There are no escape sequences, SQL fragments, command injections, or malicious script tags. The payload passes all inspection checks. If an attacker tests tens of thousands of real accounts using rotating residential IP addresses, a signature engine forwards every single attempt to the authentication backend.

CRS rules on authentication routes detect only protocol violations, malformed character sets, and injection strings within parameter keys. They cannot evaluate whether the client submitting credentials runs an automated headless browser or sits at an interactive terminal. Defending authentication endpoints requires controls designed specifically for identity defense: Multi-Factor Authentication (MFA), breached credential lookups, client risk scoring, proof-of-work challenges, and application-layer behavioral analysis. Adding third-party telemetry collectors introduces operational complexity and customer privacy compliance audits that pure in-cluster WAF filters avoid.

Detection limits no WAF escapes

No WAF can promise complete detection. Revetment does not promise complete detection or an absence of false positives; our workflow is built to show false positives before blocking. The problem with signature-based security has often been operational: turning on enforcement abruptly breaks internal APIs, third-party integrations, and edge-case user traffic.

Revetment enforces separation between rule evaluation and request termination. Shadow mode records what a rule would have blocked and lets the request through. Blocking is a separate, per-route promotion. When you attach a policy in shadow mode, the engine evaluates the transaction against compiled CRS rules, extracts metadata on matching conditions, and forwards the connection unaffected to your pod.

Blocking is promoted per route in many, many, then many steps, with an automatic rollback threshold. This staged progression allows platform teams to identify false positive alerts under real user workloads. You promote a single route safely by updating your policy configuration:

apiVersion: revetment.io/v1alpha1
kind: RevetmentPolicy
metadata:
  name: checkout-protection
  namespace: production
spec:
  targetRef:
    group: gateway.networking.k8s.io
    kind: HTTPRoute
    name: checkout-api
  mode: Enforce
  enforcementRatio: 10
  rollback:
    errorThresholdPercentage: 1

When an internal system sends specialized payloads, like base64-encoded search filters, SQL-like query syntaxes, or webhook callbacks that trigger legitimate CRS rules, you do not disable the rule globally. Exceptions are scoped to a rule, a route, and a parameter. They are not a global rule disable.

You apply exceptions through the RevetmentException custom resource:

apiVersion: revetment.io/v1alpha1
kind: RevetmentException
metadata:
  name: allow-search-query-sqli
  namespace: production
spec:
  targetRef:
    group: gateway.networking.k8s.io
    kind: HTTPRoute
    name: search-api
  ruleId: "942100"
  location: QueryParam
  field: "filter"

The console groups shadow events by rule, route, parameter and a redacted excerpt, so operators see the structure of false positive alerts clearly before rolling out blocking mode. Early in our development, we treated a clean shadow window as proof a rule was safe to promote. We were wrong. Low-traffic API endpoints can run cleanly for days without generating an event, only to trigger false positives on the first business day of the month when bulk financial exports run. Verification requires monitoring shadow data across full business cycles.

Operational and organisational boundaries

Software reliability depends on governance, organizational boundaries, and operational guarantees. Security requires explicit boundaries. We maintain clear limits across our project operations:

Revetment