What Cloudflare Doesn't Tell You

(charlie.fish)

44 points | by fishcharlie 41 minutes ago

12 comments

  • e63f67dd-065b 25 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 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?

    • fishcharlie 16 minutes 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 11 minutes 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.
      • 9dev 4 minutes 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.

  • mannyv 0 minutes 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.

  • huijzer 2 minutes 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.
  • Thaxll 24 minutes 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 19 minutes 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 13 minutes 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.

      • mobilio 8 minutes 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.
  • dktbs 10 minutes ago
    In my experience, Cloudflare will pretty loudly encourage users to set up Full strict encryption to origins.
  • Velocifyer 23 minutes 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.

  • NoahZuniga 5 minutes ago
    I haven't been able to figure out whether my origin connection is quantum secure, not for a lack of trying.
  • marcta 26 minutes ago
    What's the technical reason behind Cloudflare preferring IPv4 over IPv6 for the origin connection?
    • bluGill 23 minutes 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.
    • cbg0 11 minutes 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.

  • dantillberg 8 minutes 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?

  • riazrizvi 28 minutes ago
    This has got SNL "fix it" vibes. They are exactly doing what we want here. It takes time.
  • TZubiri 15 minutes 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 13 minutes 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.

  • ipsum2 20 minutes ago
    Non click-bait title: Cloudflare prefers IPv4 over IPv6 for internal connections.