← 回總覽

“随心选”自定义区域:Cloudflare 引入细粒度数据驻留控制

📅 2026-03-28 14:01 Renato Losio 软件编程 4 分鐘 4613 字 評分: 85
Cloudflare 数据驻留 云基础设施 合规性 边缘计算
📌 一句话摘要 Cloudflare 推出了“自定义区域” (Custom Regions) 功能,允许客户为 TLS 终止和第 7 层 (Layer 7) 处理定义细粒度的地理边界,以满足特定的数据驻留和合规性要求。 📝 详细摘要 Cloudflare 新推出的“自定义区域”功能扩展了其区域服务,使用户能够创建定制的地理分组来进行数据处理。与 AWS 或 Azure 等传统的“区域优先”云不同,Cloudflare 维护着一个“边缘优先”的全球网络,但在应用层任务上强制执行区域边界。客户可以使用灵活的表达式(例如包含或排除特定的 ISO 国家代码)来定义这些区域。该系统的工作原理是:在全

Cloudflare recently introduced Custom Regions, an expansion of its Regional Services that lets customers precisely define where their data is processed. By selecting specific groups of data centers by country or region, customers can ensure that TLS termination and application-layer processing remain within chosen geographic boundaries for compliance and control.

The new option requires customers to define region membership, routing traffic to in-region destinations, and enforcing those limits at the edge. Andrew Berglund, systems engineer at Cloudflare, andErik Engstrom, product leader at Cloudflare, explain:

> While our 35 pre-defined regions serve many of our customers’ needs, the digital world isn't one-size-fits-all. We've heard you loud and clear: you've asked for a specific country, unique combinations of countries, and the ability to exclude a set of countries from a region.

According to the announcement, Custom Regions can be defined using arbitrary geographic groupings. For example, a region may include North America (Canada, the United States, and Mexico) or exclude those three countries. It could also be based on other arbitrary criteria, such as countries that use Fahrenheit, including the United States, the Bahamas, the Cayman Islands, the Marshall Islands, and Liberia. Berglund and Engstrom add:

> At the core of Regional Services is enforcement of a simple rule: TLS termination and Layer 7 processing only happen inside your chosen region. Custom Regions expands this capability by allowing you to choose your own region definitions.

Cloudflare takes a different approach to regional traffic than Azure or AWS. Instead of defining a fixed geographic area (region-first cloud) with resources in a specific subset of data centers, it runs workloads on a global edge network (edge-first cloud). Still, it processes traffic within certain regions for customers who need to meet regional compliance requirements or want to maintain regional control over their data.

Cloudflare enforces regional boundaries by initially receiving and protecting traffic at the nearest data center (global ingestion and L3/L4 DDoS defense), then checking whether it belongs to the configured region. Requests are then either processed locally or forwarded to the data center, where TLS termination and Layer 7 processing will occur.

While generally developers value Cloudflare’s global-by-default simplicity, the need for features that introduce regional constraints is often viewed as a compliance-driven trade-off. On LinkedIn, R5 Inteligência Digital comments:

> Fine-grained regional boundaries are becoming a board-level requirement where compliance and latency both matter. Custom Regions should help teams move from policy intent to enforceable operating controls.

_!Image 1: Cloudflare Custom Regions/filters:no\_upscale()/news/2026/03/cloudflare-custom-regions/en/resources/11image1-1773937334543.jpg)_

_Source: Cloudflare blog_

The setup process of Custom Regions is based on three building blocks: defining region membership, selecting an in-region destination, and enforcing the boundary at the edge.

While Cloudflare managed regions use a pre-defined membership set, Custom Regions define region membership using an expression, for example, a country_code, the ISO code where each data center is located. Engineers can define inclusion rules such as country_code == "TR" or country_code in ["DE", "FR", "NL"], or exclusion rules such as !(country_code in ["US", "CA", "MX"]), to define the boundaries, with the expression being evaluated against the data centers' metadata.

To determine the optimal in-region destination, Cloudflare selects the best available option by intersecting a predefined set of allowed data centers with a per-ingress, performance-ranked list based on real-time network quality, capacity, and health metrics.

Currently, the new option is not self-serve, and customers must contact their account team.

查看原文 → 發佈: 2026-03-28 14:01:00 收錄: 2026-03-28 16:00:33

🤖 問 AI

針對這篇文章提問,AI 會根據文章內容回答。按 Ctrl+Enter 送出。