Cloudflare Gateway can now hand traffic to a customer's Worker on every Zero Trust plan
Cloudflare added a Forward action and custom validation functions to Gateway, putting customer Workers inside policy evaluation on all Zero Trust plans. Cloudflare says the hand-off is a local function call on the same machine. Operators still need to know what happens to a blocking decision when their code fails.
The Engineer · Build desk

Cloudflare's two example teams: one stands up a pool of NGINX proxies solely to inject HTTP headers from JWT claims; one builds a Logpush-to-SIEM-to-Slack pipeline with a 5 to 15 minute delay. Customer Workers can transform traffic or bring a customer's own data to policy evaluation.
- What it costs cost Example team: NGINX proxy pool Stood up solely to inject HTTP headers from JWT claims; must be patched, monitored and secured, claim 6
- What it costs cost Example team: Slack alerts Logpush-to-SIEM-to-Slack pipeline with a 5 to 15 minute delay and no guarantee of delivery, claim 7
- What's now possible capability Customer Workers Can transform and manipulate traffic, or bring a customer's own data to policy evaluation, claim 2
| Who | How | Kind | Claim |
|---|---|---|---|
| Example team: NGINX proxy pool | Stood up solely to inject HTTP headers from JWT claims; must be patched, monitored and secured | cost | 6 |
| Example team: Slack alerts | Logpush-to-SIEM-to-Slack pipeline with a 5 to 15 minute delay and no guarantee of delivery | cost | 7 |
| Customer Workers | Can transform and manipulate traffic, or bring a customer's own data to policy evaluation | capability | 2 |
What happened
- Cloudflare describes the gateway model of the past 30 years as a condition match that fires one terminal action: Allow, Block, Isolate or Log.
- Forward and the validation functions let a Worker transform and manipulate traffic, or supply a customer's own data to the policy evaluation.
- Cloudflare says dozens of enterprise customers asked for warning pages that collect a justification before allowing access to sensitive destinations.
- Workers run from 330+ Cloudflare locations, and Gateway enforces policy at the same locations, on the same machines.
Why it matters
- What it costs cost A team that swaps a header-rewriting proxy pool for a Worker trades patching servers for owning code on the enforcement path, with its own review, deploy and on-call.
- Who's exposed exposure A slow or failing Worker sits in the decision path of every request that matches its rule, so one bad deploy can reach all of those users at once.
- Who has to decide decision Each team has to decide, rule by rule, whether a failed Worker should end in allow or block, and that choice is theirs on every Zero Trust plan.
Cloudflare says true programmability means running your own code "inline in the policy evaluation path, at the moment a security decision is made" [5]. The two customer cases it cites show what that replaces.
In the first, a team needed HTTP headers injected from JWT claims. Gateway could not read the JWT and write the header, so the team stood up a pool of NGINX proxies solely for that job. Cloudflare notes the pool must be patched, monitored and secured indefinitely [6].
In the second, a team wanted a Slack message when an employee signed up for a new SaaS service. The policy engine could only Allow or Block, so the team built a pipeline from Logpush through a SIEM into Slack; messages lagged 5 to 15 minutes and delivery was not guaranteed [7].
Cloudflare says that when Gateway forwards traffic to a Worker, the dispatch is a local function call, with no hairpinning and no added latency from crossing a network boundary [9]. That covers the hop between Gateway and the Worker. It does not cover the Worker's own work. A Worker that calls an identity provider or a database adds that round trip to the decision. For the no-added-latency claim to transfer to your workload, the Worker's logic has to run on data it already holds.
Failure is the harder question. A rule that ends in Block behaves the same way every time. A rule that ends in customer code can throw, time out or return something unexpected. The excerpt we reviewed ends mid-sentence, before it covers timeouts, CPU limits, pricing, or whether an error fails open or closed.
In our view, that makes the right first use of Forward a rule where an allow-on-failure costs little, such as header injection for an internal app with its own authentication. Hard blocks belong on the built-in actions until the failure behavior is documented. Revisit once it is.
What to watch
- Cloudflare's documentation for Forward and validation functions: timeouts, CPU limits, and whether an error fails open or closed.
- How Worker invocations triggered by Gateway policy are billed, since the plans that get the feature are not the same as the plans that pay for Workers.
Clarity's read
What the record supports and how the coverage leans. The claims behind it follow.
Reality
- Evidence30
- Adoption
- Not scored
- Hype gap+35
- Incentives80
- Confidence45
Claim ledger
Ranked by verification strength, evidence, and original report placement.
- [1]
Cloudflare is releasing a new Gateway action, Forward, and custom validation functions, available to all Zero Trust plans.
- [2]
The new capabilities let customers use a Cloudflare Worker to transform and manipulate traffic, or to bring their own data to policy evaluation.
- [3]
Cloudflare Workers can run customer logic from 330+ locations, and Cloudflare Gateway evaluates and enforces security policy at those same locations, on the same machines, in the same data centers.
- [4]
Cloudflare says secure web gateways work by matching traffic to a condition and firing a terminal action (Allow, Block, Isolate or Log), a model it calls the foundation of network security for nearly 30 years.
- [5]
Cloudflare says true programmability means running your own code "inline in the policy evaluation path, at the moment a security decision is made".
- [6]
Cloudflare describes a team migrating access controls that needs to inject HTTP headers from JWT claims; Gateway cannot read the JWT and write the header, so the team stands up a pool of NGINX proxies solely for this, infrastructure that must be patched, monitored and secured indefinitely.
- [7]
Cloudflare describes a team that wants a Slack notification when an employee signs up for a new SaaS service; the policy engine can only Allow or Block, so the team builds a Logpush-to-SIEM-to-Slack pipeline with a 5 to 15 minute delay and no guarantee of delivery.
- [8]
Dozens of enterprise customers have asked for warning pages that prompt users for justification before allowing access to sensitive destinations.
- [9]
Cloudflare says that when Gateway forwards traffic to a Worker, the dispatch is a local function call with no hairpinning and no additional latency from crossing a network boundary.
Get this ledger inside ChatGPT. Ask about any of our stories and the answer brings its figure, each claim’s verdict and the sources. Free, no account.
Sources
1 independent publisher whose own reporting we read for this story.
- blog.cloudflare.comA fully programmable secure web gateway
1 article · October 15, 2026
Topics and entities
Follow any of these and your For You feed starts watching them — no settings page required.
Topics
- Zero trust securityFollow
- Edge computingFollow
- SASEFollow
- Secure web gatewayFollow
Entities
- Cloudflare GatewayFollow
- CloudflareFollow
- Cloudflare WorkersFollow