Skip to main content
Revetment
Install

Blog · · 11 min read

Kubernetes WAF air-gapped deployment: what actually has to move offline

How a Kubernetes WAF air-gapped deployment works: mirroring the chart and images, moving rule bundles by hand, and promoting routes to blocking with no egress.

A Kubernetes WAF air-gapped deployment inspects HTTP traffic entirely within your cluster boundary without outbound internet calls. Container images and rule sets move across your network perimeter in advance. This approach enforces application security policies even when your data plane has zero egress access.

Platform and security teams operating in isolated environments face a common operational problem. Many commercial security tools assume continuous connectivity to cloud endpoints for rule updates, telemetry ingestion, and threat scoring. In an air-gapped environment, those assumptions fail completely. When traffic inspection runs inside an isolated Kubernetes cluster, every component must operate without an outbound socket.

What an air-gapped WAF actually has to do without a network

An air-gapped cluster has no route to the public internet. Every artifact (chart, images, rule data, console) must arrive by a controlled transfer. Establish an explicit operational process for moving code and configuration across the boundary. Do not rely on background fetchers.

To run an isolated web application firewall, split the operational surface into four distinct parts:

  • The Helm chart defining the installation and workload templates
  • The four container images executing the control plane and data plane
  • The Core Rule Set (CRS) data used to evaluate request payloads
  • The management console, deployed inside your perimeter or used through an optional hosted interface

The data plane inspects requests inside your Envoy process and sends no traffic to Revetment. The hosted console is optional. Because request parsing and signature matching occur directly within the proxy runtime, the inspection path opens no outbound connections and depends on no remote decision engines.

Rule maintenance requires an operational transfer protocol. Signatures become stale over time. Regular updates cover discovered exploits. Air-gapped rule bundles are an Enterprise feature; they are not part of Free or Pro. Delivering these updates offline requires a reproducible pipeline across your secure boundary.

This guide explains the offline mechanics of running a WAF on Envoy Gateway, moving artifacts through bastion boundaries, and safely promoting routes from observation to enforcement. Revetment publishes no latency or throughput benchmark; describe the mechanism and the rule coverage instead of a performance number.

Which pieces cross the boundary, and which stay inside

Operating offline requires understanding the boundary classification of every asset involved in running the firewall. Some assets are static application binaries, while others are dynamic runtime configurations and local security events.

Component Distribution format Network requirement Boundary classification
Helm chart OCI package (registry.revetment.io) None at runtime One-time transfer per release
Container images (4 total) OCI image layers None at runtime One-time transfer per release
CRDs (RevetmentPolicy, RevetmentException) YAML manifests None Stored in internal GitOps repository
Rule bundles Versioned signed archive None at runtime Periodic scheduled transfer
Self-hosted console OCI image and local datastore Local cluster egress only Remains inside cluster perimeter
Hosted console (optional) SaaS endpoint Egress to console endpoint Crosses perimeter if enabled

The distribution terms for these assets are straightforward. Revetment is not open source. The Helm chart and the four images are Apache-2.0. The source repository is private.

Policy declarations exist entirely as Kubernetes Custom Resource Definitions (CRDs). Policy and exception resources target standard HTTPRoutes through the Kubernetes Gateway API HTTPRoute specification. Because these definitions are standard Kubernetes resources, your internal GitOps tooling can apply them directly to the cluster. No external synchronization service is needed to manage policies on revetment.io.

Security telemetry requires an explicit operational choice. If you run the self-hosted console, event data stays entirely inside your boundary, and local log collectors receive the output. The console is hosted or self-hosted. Accounts are operator-invited, not self-serve, and there is no free trial; the Free tier is a product tier. If you choose the hosted console, that configuration represents a deliberate egress decision separate from the data plane. The hosted console keeps 7 days on Free and 13 months on Pro. Self-hosted retention is yours to set. Deployment tiers and operational parameters are detailed on the Revetment pricing page.

Workloads should not stall while waiting for external authorization. Verify in your staging environment that your workloads initialize and serve traffic cleanly when all outbound routes drop packets.

Mirroring the chart and images into an internal registry

Before installing the firewall into an isolated cluster, replicate the packaging artifacts into your local image repository. You can use standard tooling such as Helm OCI registry support to pull the chart archive to an administrative workstation connected to the external registry. Packaging and transferring container images across network perimeters follows standard offline workflows, as referenced in the Docker Hardened Images Documentation on container distribution.

# Pull chart from public registry on a connected workstation
helm pull oci://registry.revetment.io/charts/revetment --version 0.4.2

# Save local copy of the chart archive
tar -zxvf revetment-0.4.2.tgz -C ./revetment-chart

Next, pull the container images. Revetment ships as a Helm chart and container images. The stack includes the control plane controller, the gateway extension module, the telemetry forwarder, and the self-hosted management interface.

# Pull the four images to local storage
CONTAINERS=(
  "registry.revetment.io/controller:v0.4.2"
  "registry.revetment.io/module-envoy:v0.4.2"
  "registry.revetment.io/event-collector:v0.4.2"
  "registry.revetment.io/console:v0.4.2"
)

for img in "${CONTAINERS[@]}"; do
  docker pull "$img"
  # Save digests for provenance verification
  docker inspect --format='{{index .RepoDigests 0}}' "$img" >> image-digests.txt
done

Export the saved images to an archive, move them across your transfer medium, load them onto your internal mirror, and re-tag them:

# Tag and push to the internal harbor/jfrog registry
INTERNAL_REGISTRY="registry.internal.corp"

for img in "${CONTAINERS[@]}"; do
  IMAGE_NAME=$(echo "$img" | awk -F'/' '{print $2}')
  docker tag "$img" "${INTERNAL_REGISTRY}/revetment/${IMAGE_NAME}"
  docker push "${INTERNAL_REGISTRY}/revetment/${IMAGE_NAME}"
done

Before executing the deployment, verify the underlying infrastructure. Each install guide states its own validation status; describe only the providers whose guide is marked verified. Check the Revetment install documentation and provider-specific guides such as the EKS install guide to confirm support status before initiating offline setup.

Digest pinning prevents tag overwrites in internal mirrors. Image tags can be rewritten in a registry. Recording the exact SHA-256 digests in your transfer manifest ensures that the software deployed in your air-gapped cluster matches the tested build, satisfying strict configuration audit controls.

Getting air-gapped WAF rule bundles across the boundary

Air-gapped rule bundles are an Enterprise feature. They allow organizations practicing offline Kubernetes security to update attack definitions without direct external internet access.

Rule sets in Revetment are packaged as versioned, deterministic archives. They do not stream from remote servers. Revetment runs the OWASP Core Rule Set: 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.

Review this excluded list before committing security posture controls to an internal compliance auditor. If an excluded rule covers a threat your application relies on, you must apply secondary controls elsewhere in your architectural design.

When operating offline, treat rule bundles as signed artifacts within your internal deployment pipeline:

  1. Receive the new rule bundle archive alongside its cryptographic signature on an administrative node outside the boundary.
  2. Verify the signature using the maintainer public key and unpack the bundle to confirm structural integrity.
  3. Move the verified rule bundle across the boundary through your standard transfer protocol.
  4. Push the bundle to your internal artifact store or mirror registry as a versioned OCI artifact.
  5. Retain the preceding rule bundle version in the internal registry to guarantee an immediate fallback artifact if new signatures trigger regressions.

Updating an offline rule set is functionally identical to modifying an application dependency. Updating a bundle can introduce new signatures that trigger unexpected matches on valid application parameters. A rule bundle upgrade requires caution. Deploy the new bundle in shadow mode first, verify production traffic against it, and promote the changes incrementally.

Attaching policy to HTTPRoutes with no internet in the loop

Policy enforcement does not require egress connectivity. 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.

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. By compiling directly into the proxy runtime using the Envoy dynamic modules HTTP filter chain, request payloads are inspected in-memory on the gateway data plane. No inter-process communication hops or external processing pipelines are required.

To secure an HTTP service, declare a RevetmentPolicy pointing to the target HTTPRoute using declarative Kubernetes WAF policy-as-code:

apiVersion: revetment.io/v1alpha1
kind: RevetmentPolicy
metadata:
  name: payment-api-protection
  namespace: billing
spec:
  targetRef:
    group: gateway.networking.k8s.io
    kind: HTTPRoute
    name: payment-routes
  mode: Shadow
  paranoiaLevel: 1
  ruleBundle:
    version: "4.30.0-rev1"
    source: "registry.internal.corp/revetment/rulesets:4.30.0-rev1"

Before applying this resource via your GitOps runner, verify the configuration against these core criteria:

  • Does the targetRef target a specific route name and namespace instead of a broad wildcard?
  • Is the paranoia level set to 1 for initial onboarding?
  • Is the policy explicitly set to Shadow mode?
  • Is there an identified application team owner responsible for reviewing blocked requests?

Applying a global policy to all cluster routes at once creates operational confusion. Start with a single service, observe request interactions, and follow a phased onboarding cycle for each route.

Shadow mode first: proving the rule set offline before it blocks

Shadow mode records what a rule would have blocked and lets the request through. Blocking is a separate, per-route promotion.

Running in shadow mode allows you to identify false positives without interrupting production traffic. In an air-gapped system, telemetry must route to an internal destination. If you use the self-hosted console, you can direct security events to your internal datastore. You can learn more about operational event capture in our overview of Envoy Gateway WAF shadow mode.

The console groups shadow events by rule, route, parameter and a redacted excerpt. Grouping findings by these attributes allows engineers to quickly distinguish between benign application quirks and legitimate exploits:

Grouped parameter Triggered rule ID Route path Evaluation context
request.headers.cookie 942100 (SQLi) /api/v1/auth Base64-encoded session metadata matching SQL patterns
request.body.json.bio 941100 (XSS) /api/v1/profile Formatted user input containing allowed bracket characters

When reviewing shadow telemetry during an initial triage cycle, follow this checklist:

  1. Sort events by hit count to surface noisy rules immediately.
  2. Check routes with zero events to confirm they process real traffic.
  3. Analyze parameter patterns to separate valid JSON, SQL, or markdown from attacks.

A quiet shadow period does not prove safety. If an internal API only handles a batch sync operation on the first of each month, a two-day shadow period during mid-month tells you nothing about its production baseline. Keep shadow mode running long enough to observe full business cycles before moving to active blocking.

Promoting to blocking in 1%, 10%, then 100% steps

Blocking is promoted per route in many, many, then many steps, with an automatic rollback threshold.

A phased rollout prevents minor signature issues from turning into major outages. In an air-gapped network, where you cannot access external vendor management dashboards, the promotion process must be controlled, observable, and reversible via your local platform tools. You can read more about this deployment workflow in our detailed guide on promoting WAF rules from shadow to blocking.

When a legitimate application pattern triggers a rule match, you should not disable the entire protection family. Exceptions are scoped to a rule, a route, and a parameter. They are not a global rule disable. Instead of turning off an entire SQL injection rule set across the gateway, declare a targeted RevetmentException:

apiVersion: revetment.io/v1alpha1
kind: RevetmentException
metadata:
  name: allow-bio-markdown
  namespace: billing
spec:
  targetRef:
    group: gateway.networking.k8s.io
    kind: HTTPRoute
    name: profile-routes
  ruleId: "941100"
  location: Body
  parameter: "bio"
  reason: "User bio field accepts basic HTML and markdown formatting"

Document each promotion step in an internal operational log. This maintains an audit trail and keeps change management boards informed without relying on cloud-based dashboards:

Avoid promoting multiple routes to active enforcement during the same maintenance window. If two routes are updated at once and error rates climb, identifying which rule on which path caused the regression requires untangling logs under operational pressure.

What this deployment will not do for you

Engineers must be clear about what this design covers and where boundary lines exist. Revetment is an L7 WAF. It does not absorb DDoS traffic, protect DNS, or act as a scrubbing network; use an edge CDN or DDoS service for that.

Layer 7 application firewalls deployed inside a local cluster process requests only after the transport layer handshakes terminate. If a network-level volumetric event floods your perimeter uplinks, upstream network appliances or upstream transit providers must absorb that traffic.

Revetment does not implement rate limiting, slowloris protection, HTTP/2 rapid-reset budgets, or concurrency limits. Transport abuse must be managed using Envoy Gateway's native connection pool limits or separate edge traffic shaping policies.

Revetment does not sell bot management, device fingerprinting, account-takeover protection, or credential-stuffing protection. Automated credential attacks and bot categorization require separate bot countermeasures or upstream edge filtering.

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. No WAF can promise complete detection or an absence of false positives. Revetment's workflow is built to show the false positives before blocking.

Frequently asked questions

Can Revetment inspect traffic without any outbound internet access?

The data plane inspects requests inside your Envoy process and sends no traffic to Revetment. The hosted console is optional. The engine evaluates requests locally against the compiled rule set in memory, so no egress connectivity is needed.

How are rule bundle updates delivered to an air-gapped cluster?

Air-gapped rule bundles are an Enterprise feature. Bundles are packaged as versioned, deterministic archives. You verify the archive digest on a connected host, transfer it across your boundary, and host it in your internal OCI registry.

Does Revetment compile all OWASP Core Rule Set rules offline?

Revetment runs the OWASP Core Rule Set: 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. The engine compiles these rules locally on startup without external network queries.

How do scoped exceptions work when false positives occur?

Exceptions are scoped to a rule, a route, and a parameter. They are not a global rule disable. You apply a RevetmentException custom resource targeting an HTTPRoute to bypass a rule match for a specific parameter without disabling the signature across other routes.

Where does shadow mode telemetry go in an isolated environment?

The console is hosted or self-hosted. Accounts are operator-invited, not self-serve, and there is no free trial; the Free tier is a product tier. In an isolated deployment, you deploy the self-hosted console inside your cluster perimeter to collect event logs locally. The hosted console keeps 7 days on Free and 13 months on Pro. Self-hosted retention is yours to set.