24 comments

  • e63f67dd-065b 1 hour ago
    > 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.

    The whole point of cloudflare is to shield origin servers from the internet, why would I want them to expose more info about origins than they currently do?

    • hinkley 8 minutes ago
      There is no way to “include” a certificate in a communications channel and know that it isn’t replay unless you have the private key.

      Mechanically, the way you would do this instead would be for the origin to countersign a certificate for Cloudflare to use. Deputizing them as the man in the middle formally. But that would be adding functionality, as browsers don’t report that and Let’s Encrypt doesn’t issue certs for that at present. But those who care could vote with their feet and upgrade or switch browsers in order to get what they want.

      Cloudflare could even use the same certs for all customers. People are used to thinking of “certificate chains” but they can in fact be inverted trees. The browser needs to find one chain it trusts, not all. That’s how Let’s Encrypt got started after all. Then Cloudflare can prune the tree down to the relevant actors before sending it out.

      However that would not address Cloudflare using http for upstream connections. But who the hell is still exposing http without a redirect in 2026?

    • fishcharlie 1 hour ago
      Hmm. Good point. I'd personally argue that Cloudflare is mainly meant to hide the origin servers IP address, not the metadata about the connection. DDoS attacks are really what they are protecting with that. So what would be the harm in exposing that metadata?
      • drakythe 1 hour ago
        That metadata may expose more than we realize. I can't tell you everything it reveals about the origin server or site itself, and until I can, I'd rather err on the side of not revealing that information because a lot of people smarter than me might be able to misuse it.
      • Bender 15 minutes ago
        If that is the case then those people would really only need a simple layer 4 proxy and there would be no need to decrypt at the CDN. e.g. options like TCPShield, NeoProtect, or Path.net I think even Cloudflare offers simple layer 4 tunnels.
      • 9dev 1 hour ago
        I can tell you for sure that Cloudflare is also used to protect servers from the absolute barrage of automated attacks out there. And that was the case even before LLMs!

        At some point I locked them down completely, all external ports closed; Cloudflare reaches them via a tunnel daemon. Since then, I have peace, and I don’t want that compromised just for some cozy feeling of transparency.

      • j45 18 minutes ago
        The less that is exposed, the better.

        What was previously hard to manually check about different chains of metadata is now gone. Every permutation and combination of approaches can be semi intelligently tried by ai bot. It’s many orders of magnitude higher than before.

        The internet is entering a less safer time right now with the biggest question being which routers and core networking equipment are and can stay the most secure, and respond and repair the quickest, when they are inevitably hit by something?

        Microsoft’s outage could be any cloud provider in the future.

        On the other hand, the more that is known internally, the better. Maybe there can be more data internally.

    • robomc 50 minutes ago
      It's an insane suggestion.

      How about the industry also consider returning a header that includes all current CVEs in the upstream stack?

      You can argue that seeing a site uses TLS at the edge creates a presumption that you're getting TLS all the way through, and it's bad for consumers of websites to be mislead in this way. But ... if the website isn't doing TLS from CF to origin, they're not doing 10 other things that are probably worse anyway. You ultimately have to trust the upstream, and this signal wouldn't confirm that the trust is warranted.

  • huijzer 1 hour ago
    My biggest problem with Cloudflare is that most people do not need DDoS protection, and that choosing Cloudflare lowers uptime when compared to a simple VPS at reliable provider. Like GitHub and other massive providers, it’s just very common for one of the parts of that massive system to go haywire and take the whole thing down for a few hours. Datacenters with VPSes as far as I know don’t often go down.
    • enlyth 55 minutes ago
      I use their tunnels to host public websites from my home server, that's something I definitely don't want to expose, especially these days
      • cliche 22 minutes ago
        I love cloudflare for tunnels, happy to host compute and storage for small services myself on my hardware but leave all the networking to cloudflare and Tailscale.
      • taraindara 40 minutes ago
        I think that’s a false sense of security though. You can definitely still be compromised even with Cloudflare in front of you. A vulnerable service is still vulnerable, you’re just praying that Cloudflare recognizes the signature to stop an exploit for you.

        But the onus is still on you to monitor your environment and keep things updated and secure.

        • huijzer 8 minutes ago
          I also wonder sometimes what people are doing that they’re so afraid of hacks? Rust web server with password auth having explicit auth tests on each sensitive endpoint plus constant time string check goes a long way. Sure there are many nuances for more complex applications, but regular joe will usually not need more than this. If this is not safe then please tell me. Or use Caddy basic auth implementation plus HTTPS if you want an even more foolproof method.
    • bastawhiz 57 minutes ago
      Most people choose Cloudflare because they have much more generous egress bandwidth pricing than other providers.
    • robomc 46 minutes ago
      You don't get Cloudflare for DDOS generally because like you say, DDOS is unlikely for most services. You get it for the managed WAF ruleset and the hope that "huh it is behind the CF WAF" is enough to put it lower on the list of targets for attacks of all sorts. And to a lesser degree, free edge caching.
    • jppope 46 minutes ago
      I love Cloudflare for a variety of reasons. Needing protection against DDoS for my personal site was not one of those, however it is a nice piece of mind if it were to happen.
    • bearjaws 41 minutes ago
      I thought that was true until I ran a vaccination website, good luck predicting what websites do and do not need it!

      Also I've had a forum for cancer survivors DDOS'd, yup.

    • selfmodruntime 43 minutes ago
      Come on. This is a complete non-argument and your VPS provider will most likely have more downtime than Cloudflare.
      • BenjiWiebe 38 minutes ago
        If you put cloudflare in front of your vps, though, you're adding more points of failure.
    • lezojeda 1 hour ago
      Most people do not need it _until_ they do need it. I guess for many the trade-off between knowing that is taken care of vs the uptime cost is worthwhile.
      • huijzer 14 minutes ago
        If someone DDoSses my services, I just don’t use them till they are bored of DDoSsing me. Or I disconnect my Pi and connect directly or something.

        All hypotheticals by the way. I keep having a big mouth at these DDoS discussions and how my servers have never been taken down, and yet they are never taken down. Here is the previous discussion: https://news.ycombinator.com/item?id=45965060

  • RKearney 6 minutes ago
    The post introduces an IPv4/IPv6 discussion which distracts from the more egregious design flaw, Flexible SSL[0]. I wish the discussion focused more on this because I've tried raising awareness of this multiple times over the last decade.

    Letting the users browser feel safe by thinking it's using a strong TLS connection (and unlocking certain APIs gated by HTTPS such as geoLocation) only to blast the connection over the internet using plain-text is antithetical to the design of HTTPS (notwithstanding first-hop/mile attacks).

    [0]: https://developers.cloudflare.com/ssl/origin-configuration/s...

  • viraptor 43 minutes ago
    > they actively prefer IPv4 over IPv6 when making origin server requests

    This feels extremely irrelevant. If you want IPv6, you can disable IPv4. Why would you expose both for CloudFlare to choose from? What's the actual problem here?

  • Thaxll 1 hour ago
    "But Cloudflare's connection to the origin server might be entirely unencrypted and rely exclusively on IPv4"

    Cloudflare can generate a certificate to connect to the origin server, you should use that.

    • pamcake 1 hour ago
      > Cloudflare can generate a certificate to connect to the origin server, you should use that.

      You should generate origin server cert yourself and not let Cloudflare touch that private key.

      This is anyway beside their point that I as a user can't know how it looks between Cloudflare and your origin.

      • oarsinsync 1 hour ago
        > > > Cloudflare can generate a certificate to connect to the origin server, you should use that.

        > You should generate origin server cert yourself and not let Cloudflare touch that private key.

        What difference does key ownership make in this scenario? Cloudflare is encrypting the plain text to send to you, because they terminate the end user TLS session themselves.

        • AtNightWeCode 21 minutes ago
          That comment is wrong. For full end to end encryption you must use the cert from CF on your local server. Kinda goes without saying but it is also pointless but it is the best practice I would say.
      • mobilio 1 hour ago
        Another way to serve HTTP is to run it over CF Tunnels. Since everything is unencrypted (HTTP) but Tunnel is encrypted you shouldn't be hesitated about certificates.
    • amluto 36 minutes ago
      Cloudflare’s mechanisms for securing the origin connection are, at least historically, massively overcomplicated and horrendously poorly documented. Maybe it’s better now.

      Even with a tunnel, there is still very little clarity as to what the various JWT options do or what the considerations are.

  • dktbs 1 hour ago
    In my experience, Cloudflare will pretty loudly encourage users to set up Full strict encryption to origins.
    • micah94 5 minutes ago
      This is my experience as well. I don't understand this post at all. Have they actually used Cloudflare?
  • Velocifyer 1 hour ago
    If you have both equivelent IPv4 to origin and IPv6 to origin, IPv4 to origin saves 4 bytes per packet of overhead. (Remember, the internet runs on layer 2 packets of 1500 bytes, after layer 2 overhead)

    If you want IPv6 to origin (EG to bypass NAT), then you can still tell it do to that by setting a proxied AAAA and deleting the A.

  • joshchaney 18 minutes ago
    I think this is a non-issue, but if we are going to complain -- It's a problem for Akamai, Fastly, AWS, etc. etc. If you don't want the origin to be hit over IPv4, use a name that only resolves IPv6?
    • essfrmexistence 16 minutes ago
      Yeah, its as they say "Don't blame the players - Blame the system"
  • mannyv 1 hour ago
    I use Fastly, but I also use straight http for origin. Why? Because it’s marginally faster and I don’t really care about the security of my static content. And less processing is always better. And as a bonus I don’t have to worry about my origin showing up in some certificate list scraper.

    If I was handling HIPAA data it would be different.

    • clhodapp 59 minutes ago
      How does this not put your users at about as much risk as if they connected to your site over unencrypted HTTP end-to-end? Someone can MITM the connection from Fastly back to your content and replace it with things that are not your static content.
      • amluto 22 minutes ago
        And these days an attacker can persistently poison you using service workers.

        TLS isn’t just about confidentiality - integrity is at least as important.

      • M3L0NM4N 39 minutes ago
        Even Hacker News didn't realize this for a long time.
    • bastawhiz 50 minutes ago
      It's marginally faster when the cache is cold and there's no open connection. But you also lose out on the benefits of H2, with header compression and the ability to pull many files concurrently over a single connection. The performance difference is almost certainly either exactly a wash or slightly slower with H1, unless you have so few files that no connection stays open for very long anyway: multiple TCP handshakes and header size is going to dominate the single TLS negotiation. Server to server, the cost of encrypting and decrypting is almost unmeasurable compared to network cost.
    • hnav 54 minutes ago
      you know that an on the-path attacker can poison your fastly cache, right?
  • marcta 1 hour ago
    What's the technical reason behind Cloudflare preferring IPv4 over IPv6 for the origin connection?
    • bluGill 1 hour ago
      Historically a lot of IPv6 was broken. I'm not sure if that is still true. Many consumer ISPs have great IPv6 support (and have for nearly a decade), but companies often lag behind and may not have IPv4 at all on their network.
      • PaulHoule 1 hour ago
        The big picture is that people don’t see a huge amount of value in IPv6. Like hypothetically it’s a good idea but the various compensations we have for the limitations of IPv4 are good enough for most people (even corporate persons)
        • hnav 52 minutes ago
          Ubiquitous IPv6 is in a way the antithesis of the kind of centralization big corps want. P2P communication without STUN, TURN, UPnP and other jank.
    • cbg0 1 hour ago
      IPv6 route optimization was handled poorly by some ISPs in the past with big differences in latency versus IPv4.

      I'd assume given Cloudflare's traffic that they know on average the performance will be better on IPv4 so they default to that.

    • AtNightWeCode 38 minutes ago
      There is absolutely no value gained by using IPv6 for that use case.
  • megous 50 minutes ago
    So how do site operators deal with revealing full user credentials (usernames, passwords, etc.) and other information to a third party like this?

    One of the other things cf does not tell you.

    • tancop 23 minutes ago
      It's not hard to wrap the sensitive parts in another layer of encryption so Cloudflare can't see them. Most site owners just don't know it's an option or realize TLS termination might be a problem.
    • encom 34 minutes ago
      Since CloudFlare is MITM, I wish browsers would do more to alert the user that the connection is not E2E encrypted, with a red address bar or whatever.

      On an unrelated note: It would be interesting to have an addon that adds up how much of my life has been wasted on "security checks". Am I the only one who's about to reach a breaking point with this nonsense?

  • dantillberg 1 hour ago
    > ... they actively prefer IPv4 over IPv6 when making origin server requests, which is particularly disappointing ...

    I understand how lack of TLS from Cloudflare to origin server materially impacts privacy/security.

    But how does it matter whether Cloudflare uses IPv4 or IPv6 to connect to the origin server? Or if the origin even supports IPv6?

    • fishcharlie 43 minutes ago
      I think this is less egregious than TLS for sure. I'm just a big advocate for IPv6 adoption right now. The more IPv6 traffic that shows up on the internet, the more networks will modernize their systems.

      If website owners or other networks see more IPv4 traffic, they question why they should prioritize IPv6. I think small changes, can start to add up and lead to better IPv6 adoption.

      I know there are a ton of arguments and cases that show that IPv6 adoption is slow. Maybe naively I'm holding out hope that at some point some small change from a major internet player will cause a snowball effect and get our world to use IPv6 for real.

  • bastawhiz 59 minutes ago
    > 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 is like if SSH announced to anyone who connected that the admin user's password was set to a well known default. Surely that'll hold negligent system administrators accountable!

  • jmtulloss 42 minutes ago
    I think they should heavily push Cloudflare tunnels and encourage 0 ingress backends. The open internet is an increasingly terrifying place and I want no part of it.
  • NoahZuniga 1 hour ago
    I haven't been able to figure out whether my origin connection is quantum secure, not for a lack of trying.
    • fishcharlie 46 minutes ago
      I'm SURE I'm in the same boat for some of my sites. Just a tiny bit more visibility and I'd spend time fixing it.
  • jollymonATX 46 minutes ago
    "Exposing the origin" - um nope, ngh and a somewhat draft proposal. What kind of article is this?
  • riazrizvi 1 hour ago
    This has got SNL "fix it" vibes. They are exactly doing what we want here. It takes time.
  • ectospheno 58 minutes ago
    I ran an origin server that only had port 443 open and only had an ipv6 address for a year behind cloudflare. Never had any issues.
    • hirako2000 47 minutes ago
      The author is referring to the many servers that don't communicate over TLS (totally unencrypted) with Cloudflare.

      Which makes the security posture worse for users as they think their communication is secured, but in fact just part of the way.

      I don't get the argument against CF preferring ipv4.

  • devy 49 minutes ago
    Connecting to the origin server via IPv4 or lower grade TLS requirements is how Cloudflare can service more webmasters than not. As a for-profit enterprise, they choose not to lose their customer over strict Internet standard. I don't see CF intentionally hiding anything. In fact, it's extremely hard to change behaviors the free tier customer let alone the paid ones. At the end of the day, they are making less-tech savvy webmasters conveniently connect to the modern software defined networks and the Internet as a whole painlessly at a very generous free tier allowance than most providers. I don't see why they deserve this type of article / critisism.
  • nwroot 36 minutes ago
    Why is this #1.
    • fortran77 30 minutes ago
      Because a lot of people, including me, upvoted it.
  • AtNightWeCode 29 minutes ago
    I think this post mostly misunderstands how to view Cloudflare. Cloudflare should be viewed as corps servers hosted at Cloudflare.
  • ipsum2 1 hour ago
    Non click-bait title: Cloudflare prefers IPv4 over IPv6 for internal connections.
    • hnav 51 minutes ago
      The IPv4 angle is a weird tangent, but CF et al allowing plaintext backhaul without any indication to end users is still an issue.
  • TZubiri 1 hour ago
    same thing with those consumer product vpns, if you want to connect with a server in your country and you use a vpn in switzerland, your connection goes encrypted to switzerland, and then unencrypted (the vpn part) all the way back to your country.

    some people think of security like an additive consumable, you are hungry you eat a food product, you are sick you apply a medicine, you are insecure you apply a security thing

    that said, it does work to deidentify your traffic by effectively pooling your connections and laundering them to appear as coming from switzerland, if that’s your threat model it can work for you, but it works for avoiding the ISP employee knowing where you like to get your porn from (and maybe for criminals that don’t want to make subpoenas more complex), but it does not for any kind of corporate grade security whose threat model os a mitm, not because of the quality of the product, but by its category

    • TeMPOraL 1 hour ago
      > some people think of security like an additive consumable, you are hungry you eat a food product, you are sick you apply a medicine, you are insecure you apply a security thing

      That's how it's ideally supposed to work. TLS is built on that idea.

  • Sunclycom 26 minutes ago
    [flagged]