Cloudflare Gateway 新增软件包下载检测与策略控制
Gateway - Detect and control software package downloads with package registry security
面向开发者和安全团队:Cloudflare Gateway 新增的包下载检测与策略控制,能直接管控供应链流量,建议启用 TLS 解密并配置 pkg.* 策略以增强软件供应链安全。
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.
Cloudflare Gateway 现在可以检测软件包下载,并为您提供对供应链流量的策略控制。当开发人员或 CI/CD 流水线通过 Gateway 下载软件包时,代理会从请求 URL 中识别注册表协议,并提取软件包生态系统、名称、版本和命名空间。然后,您可以使用 pkg.* 选择器编写 HTTP 策略,以允许或阻止软件包下载。
Supported ecosystems
支持的生态系统
Gateway detects package downloads for the following ecosystems:
Gateway 可检测以下生态系统的软件包下载:
| Ecosystem | Namespace |
|---|---|
| npm | Scope (for example, @babel) |
| PyPI | -- |
| RubyGems | -- |
| Cargo | -- |
| Go | Module path |
| Maven | Group ID |
| NuGet | -- |
| 生态系统 | 命名空间 |
|---|---|
| npm | 范围(例如,@babel) |
| PyPI | -- |
| RubyGems | -- |
| Cargo | -- |
| Go | 模块路径 |
| Maven | 组 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:
在仪表板中,选择“软件包生态系统”以访问软件包注册表选择器。选择单个生态系统后,软件包名称、版本和命名空间的嵌套字段将变为可用。对于具有“允许”和“阻止”操作的 HTTP 策略,有五个 pkg.* 选择器可用:
| 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. |
| 选择器 | 描述 |
|---|---|
| pkg.ecosystem | 从请求 URL 检测到的软件包生态系统。 |
| pkg.name | 从下载 URL 中提取的软件包名称。 |
| pkg.version | 软件包版本,支持生态系统感知的比较运算符。 |
| pkg.namespace | 软件包命名空间(当生态系统支持时)。 |
| pkg.purl | 从检测到的坐标派生的软件包 URL(PURL)↗。仅在 API 中可用。 |
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.
检测基于注册表协议而非主机名,因此无论流量是发往公共注册表、企业代理(如 Artifactory 或 Nexus)还是自托管镜像,其工作方式都是相同的。
Package registry security requires TLS decryption to be turned on.
软件包注册表安全需要启用 TLS 解密。
For more information, refer to Package registry security.
有关更多信息,请参阅软件包注册表安全。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力