Gateway Forward: Custom Logic on the Traffic You Already Inspect

Disclaimer: This article reflects my personal views and experiences and does not represent the official stance of Cloudflare. PkgGuard is a personal project, not a Cloudflare product, and the Forward action is in public beta at the time of writing. What happens when a Gateway policy can run your own code. TL;DR — Gateway’s package registry security already sees every package your developers download: the ecosystem, the name, the version, and who asked. What it cannot know on its own is which of those packages are malicious this week. The Forward action closes that gap. Gateway keeps doing the proxying, the TLS decryption and the identity, and hands matching traffic to a Worker where you write the logic. I used it to build PkgGuard, which blocks known-malicious npm, PyPI, Cargo, RubyGems, NuGet and Go packages using the OSV.dev feed, with a single Gateway rule. The package use case is only the example. The real story is that you can now put your own decision in the path of traffic Cloudflare already inspects. ...

November 9, 2026 · 10 min · 2096 words · Matthieu
Read more about Gateway Forward: Custom Logic on the Traffic You Already Inspect

Building a Scalable Zero Trust Demo environment with Cloudflare and Terraform (Part 1)

Disclaimer: This article reflects my personal views and experiences and does not represent the official stance of Cloudflare. It is not an official Cloudflare tutorial or documentation. The project discussed is a personal initiative created independently. Introduction As a Solutions Engineer at Cloudflare, I frequently work with customers exploring Zero Trust security solutions. While Cloudflare offers a 50-user free tier perfect for initial testing, I identified a gap: there was no simple, scalable way to quickly demonstrate the full power of Cloudflare’s Zero Trust platform in a controlled demo environment. ...

May 14, 2025 · 5 min · 1037 words · Matthieu
Read more about Building a Scalable Zero Trust Demo environment with Cloudflare and Terraform (Part 1)