Gateway detects and controls software package downloads
Cloudflare Gateway now detects software package downloads across multiple ecosystems (npm, PyPI, RubyGems, Cargo, Go, Maven, NuGet) and lets you write HTTP policies to allow or block them using package-specific selectors like ecosystem, name, version, and namespace. This enables supply chain security control for developers and CI/CD pipelines.
Cloudflare Gateway can now detect software package downloads and give you policy control over supply chain traffic. When a developer or CI/CD pipeline downloads a package through Gateway, the proxy identifies the registry protocol from the request URL and extracts the package ecosystem, name, version, and namespace. You can then write HTTP policies using pkg.* selectors to allow or block package downloads.
Supported ecosystems
Gateway detects package downloads for the following ecosystems:
| Ecosystem | Namespace |
|---|---|
| npm | Scope (for example, @babel) |
| PyPI | -- |
| RubyGems | -- |
| Cargo | -- |
| Go | Module path |
| Maven | Group ID |
| NuGet | -- |
Selectors
In the dashboard, select Package Ecosystem to access the package registry selectors. After selecting a single ecosystem, nested fields for package name, version, and namespace become available. Five pkg.* selectors are available for HTTP policies with the Allow and Block actions:
| Selector | Description |
|---|---|
pkg.ecosystem |
The package ecosystem detected from the request URL. |
pkg.name |
The package name extracted from the download URL. |
pkg.version |
The package version, with support for ecosystem-aware comparison operators. |
pkg.namespace |
The package namespace, when the ecosystem supports one. |
pkg.purl |
The Package URL (PURL) ↗ derived from the detected coordinates. Available in the API only. |
Detection is based on the registry protocol rather than the hostname, so it works the same way whether traffic goes to a public registry, a corporate proxy such as Artifactory or Nexus, or a self-hosted mirror.
Package registry security requires TLS decryption to be turned on.
For more information, refer to Package registry security.
Source: original entry ↗
More from Cloudflare
Follow Cloudflare to get its new changes in your feed and email digest.
DNS - Configure Advanced Custom Nameservers with nameserver sets
Nameserver sets are now available in beta for Enterprise accounts, allowing you to group custom nameserver names with Cloudflare-assigned IP addresses and assign them to multiple zones. This new approach replaces legacy custom_ns sets with reusable, immutable objects that support up to 3 IPv4 and 3 IPv6 addresses per nameserver and can leverage Advanced anycast network groups for improved resiliency.
Emergency WAF managed rule for active RCE vulnerability
Cloudflare released an emergency WAF update with a new managed rule to block exploitation of a critical remote code execution vulnerability in popular web frameworks. The Generic Rules - Remote Code Execution detection prevents attackers from executing arbitrary system commands via malicious input with invalid path sequences.
Cloudflare API MCP server sends Workers Issues as MCP Events
The Cloudflare API MCP server now exposes Workers Issues as MCP Events through webhook subscriptions, allowing agents to receive real-time notifications when production failures are detected without polling. Clients can subscribe to cloudflare.alert.workers_observability_real_time_issue scoped to an account or individual Worker.