Skip to content

Build Not yet confirmed elsewhere1 publisher 2 min read Published

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

Send a correction

Illustration accompanying Cloudflare Gateway can now hand traffic to a customer's Worker on every Zero Trust plan
Generated illustration
Cloudflare's examples: proxy pools, delayed alerts The workarounds Cloudflare describes for two example teams, and what a customer Worker can do in policy evaluation.

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.

Cloudflare's examples: proxy pools, delayed alerts
WhoHowKindClaim
Example team: NGINX proxy poolStood up solely to inject HTTP headers from JWT claims; must be patched, monitored and securedcost6
Example team: Slack alertsLogpush-to-SIEM-to-Slack pipeline with a 5 to 15 minute delay and no guarantee of deliverycost7
Customer WorkersCan transform and manipulate traffic, or bring a customer's own data to policy evaluationcapability2

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
Why these scores

Claim ledger

Ranked by verification strength, evidence, and original report placement.

  1. [1]

    Cloudflare is releasing a new Gateway action, Forward, and custom validation functions, available to all Zero Trust plans.

    Reported Supported Source: Cloudflare blog postView cited source
  2. [2]

    The new capabilities let customers use a Cloudflare Worker to transform and manipulate traffic, or to bring their own data to policy evaluation.

    Reported Supported Source: Cloudflare blog postView cited source
  3. [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.

    Reported Supported Source: Cloudflare blog postView cited source

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.

Add to ChatGPTAdd to Claude

Sources

1 independent publisher whose own reporting we read for this story.

  1. blog.cloudflare.com

    1 article · October 15, 2026

    A fully programmable secure web gateway

Share your take

Let Clarity write the post for you.

Signed-in readers get a short post drafted on this story in the register they choose — narrative, analytical, or a direct position — editable to the last word before it goes anywhere. The share buttons at the top of this story work without an account.

Topics and entities

Follow any of these and your For You feed starts watching them — no settings page required.

Loading related stories