Cloudflare 不会告诉你的事
Cloudflare hides shortcomings of the underlying infrastructure

原始链接: https://charlie.fish/posts/2026/11/what-cloudflare-doesnt-tell-you/

Cloudflare 已为数百万网站推进了 TLS、IPv6 和后量子加密等现代互联网标准,但它掩盖了源服务器的不足:用户连接可能很现代,而 Cloudflare 到源站的链路可能是未加密或仅 IPv4。作者认为 Cloudflare 应主动向管理员警告这些不匹配,而不是要求手动检查。值得注意的是,即使 IPv6 可用,Cloudflare 在源站请求中也更偏好 IPv4,削弱了 IPv6 的采用。作者还提议行业范围内的机制,让 CDN 公开源站 TLS 和 IP 版本详情以提高透明度。最终,Cloudflare 应该推动基础设施现代化,而不是让站点所有者无限期地避免它。

Hacker News 上一篇题为"What Cloudflare Doesn't Tell You"的帖子引发了关于 Cloudflare 源站连接的讨论。评论者讨论了 CDN 是否应该暴露源站 TLS 和 IP 版本元数据;有人认为 Cloudflare 的主要目标是隐藏源站 IP,而作者则认为暴露元数据并不一定会削弱 DDoS 防护。其他人还讨论了 TLS 证书的处理,指出 Cloudflare 可以生成源站证书,但有些人更倾向于用户自行生成以保留私钥。帖子还涵盖了源站 IPv4 与 IPv6 的问题:一名评论者指出 IPv4 每个数据包节省几字节,而另一名评论者将 Cloudflare 对 IPv4 的偏好归因于历史上 IPv6 支持的缺陷。其他评论认为标题是标题党,并表示 Cloudflare 正在逐步改进。总体而言,讨论围绕 Cloudflare 源站路由中的透明度、加密和 IP 版本选择展开。
相关文章

原文

Cloudflare has arguably done more to push modern internet technologies than any other company. The work they have done to enable TLS, IPv6, post quantum encryption, and other modern standards for millions of websites deserves a tremendous amount of credit.

While this is great, Cloudflare also hides many of the shortcomings of the underlying infrastructure from both users and website owners. Yes, you can connect to a Cloudflare website and it'll allow for IPv6, post quantum encryption, and TLS. But Cloudflare's connection to the origin server might be entirely unencrypted and rely exclusively on IPv4. This creates a huge mismatch between what is being presented to users and the reality of the connection.

One of my biggest problems with this is the fact that Cloudflare doesn't do enough to notify website administrators about these issues. While Cloudflare provides tools to inspect these, comprehensive visibility is lacking. The Cloudflare dashboard should notify you about each of these issues where Cloudflare is following better practices than your origin server, without website administrators having to dig through and specifically look for this information. Clear warnings and proactive alerts to administrators would help greatly.

Not only that, but according to Cloudflare's own documentation, they actively prefer IPv4 over IPv6 when making origin server requests, which is particularly disappointing for a company that has done so much to advance IPv6 adoption:

For proxied DNS records that have both an IPv6 and IPv4 origin address, Cloudflare will prefer the IPv4 address when connecting to your origin server.

Even when website administrators invest in deploying IPv6 on their origin servers, Cloudflare still prioritizes IPv4.

I also believe the industry should consider adding functionality so CDNs and other intermediate networks can expose origin TLS connection information alongside their own. This would allow users and network researchers to better understand the encryption state of the entire path and hold website owners accountable for bad security practices. A similar mechanism could expose which IP version is being used to communicate with the origin server.

Cloudflare has an opportunity to not only make modern internet technologies accessible to users, but also encourage adoption of those technologies throughout the underlying infrastructure. Cloudflare should be a catalyst for modernizing the internet, not a mechanism that allows website owners to avoid modernization indefinitely. Improving transparency would be a meaningful step toward achieving that goal.

联系我们 contact @ memedata.com