Skip to main content
Revetment
Install

One Helm chart, on the Envoy Gateway you already run.

Install Revetment.

Revetment attaches to an Envoy Gateway you already have. You install one chart and point a policy at one HTTPRoute. Then you watch what it would have blocked, before it blocks anything. Your route is never edited.

helm install revetment \
  oci://registry.revetment.io/charts/revetment \
  --version 0.1.0 \
  -n revetment-system \
  --create-namespace

The chart and the images it pulls are public, so that line needs no account on anything. What the licence covers.

GATEWAYyours,ProgrammedHTTPROUTEserving,not editedSERVICEanswersas beforeREVETMENTPOLICYmode: shadow, thenblockingtargetRef:the route, by name
Fig. 1A RevetmentPolicy names the route it protects. The Gateway, the route and the service are left as they are.

Before you run it

What you need.

Kubernetes
1.30 or newer. Our production runs v1.36.5. On an older cluster the chart still installs, but it leaves out the pod drain hook and says so in its notes.
Envoy Gateway
v1.8.3, which bundles Envoy v1.38.3. It is the one release the module is built against, and the one our production runs. Envoy loads a module built for a different release with only a warning, so we list no other version until we have run it.
A working route
A Gateway that reports Programmed and one HTTPRoute that already serves traffic. Revetment attaches to a working route. It does not repair a broken one.
Tools
kubectl, and Helm 3.8 or newer, the first release that installs charts from an OCI registry without a flag.

This lists what you have to attach to:

kubectl get gatewayclass,gateway,httproute -A

Your first session, and what comes after

From install to blocking, in six steps.

Steps one to three are one sitting. Our DOKS run took 15 minutes from an empty cluster. Our EKS run took 35 minutes from an empty cluster. Our GKE run took 21 minutes from an empty cluster. The last three take as long as your traffic needs. On our own production the policies spent 28 days in shadow before we switched them to blocking.

  1. Install the chart

    Run the Helm line. It installs the controller that watches your policies and the console that shows you events.

    helm install revetment \
      oci://registry.revetment.io/charts/revetment \
      --version 0.1.0 \
      -n revetment-system \
      --create-namespace
    kubectl -n revetment-system rollout status deploy/revetment-control-plane

    0.1.0 is a moving tag, and each release overwrites it. Every release also has a tag of the form 0.1.0-<commit> that never changes. Pin that one in Git.

    That line uses the chart's default values, and two of them are wrong for a cluster that already runs Envoy Gateway. By default the chart starts an Envoy of its own, which you turn off with dataPlane.enabled=false. And eventDelivery.mode decides how events travel from your Gateway's proxies to the console: a volume both can mount, or over the network. Which one fits depends on your storage and how many nodes you have, so the provider guides give the full values.

    The chart also cannot do one thing for you. Envoy Gateway starts its proxy pods from the stock Envoy image, and that image has no Revetment module in it. You name the Revetment proxy image and allow the module on the EnvoyProxy resource your GatewayClass already points at. The chart never edits that resource, because the gateway is yours. Its schema belongs to Envoy Gateway and has moved between releases, so read the field names from your own cluster. The provider guides carry the exact patch.

    kubectl explain envoyproxy.spec.provider.kubernetes.envoyDeployment.container
    kubectl explain envoyproxy.spec.dynamicModules
  2. Attach a policy in shadow to one HTTPRoute

    A RevetmentPolicy names a route. It does not change it. Shadow is the default mode: the route keeps serving, and every request that would have been blocked is recorded. Save this with your own namespace and route name, in the same namespace as the route.

    apiVersion: revetment.io/v1alpha1
    kind: RevetmentPolicy
    metadata:
      name: shop-api
      namespace: shop
    spec:
      targetRef:
        group: gateway.networking.k8s.io
        kind: HTTPRoute
        name: shop-api
      mode: shadow
      paranoiaLevel: 1
    kubectl apply -f shop-api-policy.yaml

    This prints True once the controller has rendered the policy:

    kubectl -n shop get revetmentpolicy shop-api -o jsonpath='{.status.conditions[?(@.type=="Accepted")].status}{"\n"}'
  3. See a would-block event

    Send the route something a WAF should object to. This is a stock SQL-injection probe. Set HOST to your route's hostname. In shadow it comes back 200, because nothing is refused yet.

    curl -s -o /dev/null -w '%{http_code}\n' "https://$HOST/search?q=1%27%20OR%20%271%27%3D%271"

    Then open the console. The event is there with the rule that matched, the route, the parameter, and the part of the value it matched on. You sign in with an emailed link or a passkey. There are no passwords. The console sends that link through Amazon SES, which you set up in the chart's controlPlane.signIn values.

    kubectl -n revetment-system port-forward svc/revetment-control-plane 8080:8080
  4. Triage

    The console's Triage screen groups hits by rule, route and parameter. For each group you decide whether it is an attack or your own application tripping a rule. A false positive gets an exception scoped to one rule on one route and one parameter. No rule is ever switched off everywhere. Before you add one, Triage shows how much traffic it would let through.

    You can add the exception in Triage, or keep it in Git with the policy:

    apiVersion: revetment.io/v1alpha1
    kind: RevetmentPolicy
    metadata:
      name: shop-api
      namespace: shop
    spec:
      targetRef:
        group: gateway.networking.k8s.io
        kind: HTTPRoute
        name: shop-api
      mode: shadow
      paranoiaLevel: 1
      exceptions:
        - ruleId: "942100"
          target:
            location: query_param
            name: q
          routeScope:
            kind: HTTPRoute
            name: shop-api
  5. Promote: 1%, then 10%, then 100%

    In Triage, open Promote a route to blocking and pick the route. The console shows an estimate of what blocking would have refused, and you promote the route to 1% of clients. Later you come back for 10%, then 100%. The console allows no other order and shows the estimate again before each step. A client outside the promoted share is treated exactly as in shadow.

    shadow1%10%100%nothing refusedevery client
    Fig. 2The share of clients a blocking verdict applies to. You move it one step at a time.
  6. Blocking

    Promotion is the approval, and the policy's mode is the switch. Change mode to blocking and apply. From then on the route answers 403 to a matching request from the promoted share of clients.

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

    If you set the mode before the console holds a promotion, nothing breaks. The route stays in shadow, and this prints BlockingNotApproved:

    kubectl -n shop get revetmentpolicy shop-api -o jsonpath='{.status.conditions[?(@.type=="Accepted")].reason}{"\n"}'

    To go back, set mode: shadow and apply. That takes effect for every client at once.

The same path, one cloud at a time

Guides by provider.

Each guide is run top to bottom on a throwaway cluster before it says so. Until then it carries only the steps above and is marked.

  • DigitalOcean Kubernetes

    Tested on a live cluster

    Tested 17 November 2026 with chart 0.1.0-722813e98f02, Envoy Gateway v1.8.3 and Kubernetes 1.36.6-do.0.

  • Amazon EKS

    Tested on a live cluster

    Tested 17 November 2026 with chart 0.1.0-722813e98f02, Envoy Gateway v1.8.3 and Kubernetes 1.36 (v1.36.5-eks).

  • Google Kubernetes Engine

    Tested on a live cluster

    Tested 17 November 2026 with chart 0.1.0-722813e98f02, Envoy Gateway v1.8.3 and Kubernetes 1.36.4-gke.2377000.

  • Azure Kubernetes Service

    Not yet validated

    We have not run Revetment on AKS. The page says what we do and do not know.

What you are installing

The licence, and where the source is.

The chart and the images it pulls are licensed Apache-2.0 and served without a login, so you can mirror them. The source repository is private for now. The licence covers what you install, and the repository opens later. How to report a flaw, and who answers, is on the security page.