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. ...