28 days from shadow to blocking
We attached Revetment to 18 routes on our own production on 26 September 2026, in shadow mode. On 24 October 2026 all 18 were blocking. What the events showed us.
On 26 September 2026 we attached a Revetment policy to 18 routes on our own production cluster and left every one of them in shadow mode. On 24 October 2026 all 18 were in blocking mode. They still are: the snapshot this site publishes was taken on 17 November 2026 and reads 18 of 18 policies blocking, 18 Accepted, none in shadow.
This is the log of those 28 days, including the parts we had wrong.
What it runs on
The estate is small. It is one DigitalOcean Kubernetes cluster with six nodes, running Envoy Gateway 1.8.3. There are 23 HTTPRoutes, and 18 of them carry a RevetmentPolicy, spread over four namespaces. Behind those routes are eight of our own services: an email platform (SMTP bootstrap, mailbox and media routes), a DNS hosting API, a monitoring and alerting service, a search service, a bot and spam gate, a document and inbox app, a banking demo with three routes, and the Revetment console itself.
All of it is ours. No customer’s traffic is in any number below.
The cluster’s edge used to be ingress-nginx, which was retired in March 2026. Why Revetment exists covers that move.
What shadow mode records
In shadow mode nothing is refused. When a request matches a rule that would have blocked it, the module writes an event: the rule that matched, the parameter, and the part of the value it matched on. The request goes through to the app, and the console groups the events by rule, route and parameter.
Two properties of that event stream shaped everything we did next. The data plane writes an event only when it flags a request. And it records one rule per request, so a count of flagged requests is a floor: an exception for the rule you can see tells you nothing about the next rule the same request would have hit.
8 October: three finds in one day
The first was on the email platform. The console showed incidents on the mailbox route for CRS rule 911100, the one that refuses HTTP methods a policy doesn’t allow. The requests were authenticated DELETEs from clients acknowledging messages they had received, and the app had answered 200 to each. In blocking mode every one of them would have been a 403. Message acknowledgement, device linking, prekey management and media upload would all have stopped.
The fix was an exception for 911100 scoped to that route. Writing it turned up the second find, which was worse. Exceptions did not work. You could write one in a policy, as a RevetmentException, or in the console, and all three accepted it. None of the three reached the data plane, and the console’s Triage page described an exception as in force when the module had never been told about it. We built the missing path and shipped it the same day. A test now sends the email platform’s DELETE through with its 911100 exception and checks that SQL injection on the same route is still refused.
The third find came from reading the edge access logs for more 911100 cases. One origin API had no policy at all. Its route had been applied to the cluster outside the package that generates our policies, so nothing had ever attached to it. A list of policies can’t show you a route that has none. The proxy’s access log can. That route had a shadow policy the same day.
That evening we audited every policied route, putting seven days of shadow events next to each app’s route table. 17 of the routes serve PUT, PATCH or DELETE to their own users, and blocking mode would have refused all of it. We scoped 911100 off those routes and 920420, the content-type rule, off three.
9 October: replaying seven days
With that in place we replayed the previous seven days of events against the policies we intended to block with. About 3,800 requests that the apps had accepted would still have been refused. Every one was free text: pull-request bodies sent to the monitoring service, page URLs, text submitted to the spam gate, mail bodies, log fields sent to search.
One release came out of that replay, with four changes.
- A policy can list the methods its route serves, in
allowedMethods. Rule 911100 stays on forTRACEandCONNECT. - An exception’s field name can contain
*segments, so one exception covers a family of fields. - Anomaly thresholds are enforced. Until then the policy field was parsed and then dropped.
- The exception set for our own routes was retuned against the replay.
A policy for a route that serves all seven methods now reads like this (the names are examples):
apiVersion: revetment.io/v1alpha1
kind: RevetmentPolicy
metadata:
name: mailbox
namespace: mail
spec:
targetRef:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: mailbox
mode: shadow
paranoiaLevel: 1
allowedMethods: [GET, HEAD, POST, OPTIONS, PUT, PATCH, DELETE]
Replayed against the new set, 77 requests were left. We did not except the XSS rules on comment fields to push that number down. Two hours after the release went live the event store held 73 new events, and none was a 911100.
14 October: the wrong clock
We had planned the switch to blocking around a 14-day clock that restarted on 6 October and would have run to about 20 October. On 14 October we worked out that the clock certifies something else, a storage change in the console’s backend, and that no WAF code reads it.
What gates blocking is two switches, used in this order. First the route is promoted in the console. Then the policy’s mode is set to blocking. A policy set to blocking with no promotion behind it is rendered in shadow, with Accepted=False and the reason BlockingNotApproved. Our apply script waits for Accepted, so setting the mode first hangs the apply.
kubectl -n <namespace> get revetmentpolicy <route> -o jsonpath='{.status.conditions[?(@.type=="Accepted")].status} {.status.conditions[?(@.type=="Accepted")].reason}{"\n"}'
# True Accepted
How one route is promoted
The day before, we recount that route. The recount gives three numbers: requests flagged in the last seven days, how many of those the app answered 2xx, and the residue. The residue is the 2xx requests that the route’s allowed methods and exceptions would still refuse. Those are the users blocking mode turns away. We pick the route with the lowest residue that has traffic, because zero flagged out of zero requests proves nothing.
Promotion is a ladder in the console: 1% of clients, then 10%, then all of them. The clients outside the percentage stay in shadow. Before each step the console shows the blast radius, and it refuses the step if that estimate has gone stale. The ladder can’t skip a rung.
One default needs care. The auto-rollback threshold defaults to 0.05, and the rate it measures is flagged events over all events on the route. The data plane writes an event only when it flags, so on a route with CRS rules that rate sits near 1.0 and the default rolls the stage back on the first flagged request. Our runbook now says to set the threshold deliberately on every promotion and to write down the value.
Rollback is the policy. The console has no demote button, and auto-rollback moves a stage back by one rung only. Setting the policy’s mode back to shadow and applying it takes effect on the controller’s next reconcile.
21 to 24 October: switching it on
On the morning of 21 October the search service’s route went to 100%, and a synthetic XSS request to it came back 403. Five routes whose recount showed no residue went to 1%. At midday the other twelve went to 1%, which put all 18 policies in mode: blocking with none left in shadow. By that evening all 18 were at 100%. That is quicker than our own runbook asks for: it says to watch each stage through a day of the route’s traffic.
The same day we fixed a bug in how the module passed WebSocket and CONNECT upgrades through, and added a WebSocket frame round trip to the checks that gate a promotion or a rollback.
On 22 October we raised the body inspection limit route by route, up to 52 MiB on the largest, and exempted the routes that carry ciphertext, HTML or blog content from the body rules that were firing on them. XSS rule 941390 stayed on for the query string on those routes. Nine large-body probes now run against them.
On 23 October we audited the estate: 18 of 18 routes at 100% and Accepted, and the old ingress-nginx controller scaled to zero replicas. On 24 October we rolled the console’s control plane and the controller. The two edge pods were left running, since nothing in that release touched the data plane.
So the routes were refusing attacks from 21 October. The site quotes 24 October because that is the transition time on the policies’ own Accepted condition, after the control plane and controller rolled, and it is what the published snapshot reads. We would rather quote the later, checkable date than the earlier one.
The snapshot
On 17 November 2026 all 18 policies were blocking and Accepted. The two edge pods had not restarted in the 19 days since they were last rolled, and in that time they had passed 24,920,379 requests across every route. The same figures are on the home page, with the snapshot date beside them.
Revetment does not stop everything, and the limits page lists what it can’t.