28 comments

  • zaptheimpaler10 hours ago
    Oauth and enterprise auth has to be the worst thing ever made, it might be the most confusing and frustrating part of dealing with the cloud. Even the AI tools took a year to just get basic Oauth working on headless systems without assuming you could open a browser. If they're going to go down the auth rabbit hole with RBAC/IAM/Workload identities?/service accounts and all the trash the big cloud providers have, I just hope to god they leave in the simple shit for personal use. I just want a damn API key, I keep it a secret and revoke if necessary and don't need 10000 layers of auth bullshit tangled up in every layer of every platform.
    • willtemperley10 hours ago
      What I don&#x27;t understand is why OAuth is rarely talked about in a privacy context, however your OAuth provider knows all the sites you log into and when.<p>It&#x27;s a privacy nightmare.
      • clickety_clack1 hour ago
        For enterprise, the ability to shut out a user with one click is the overriding security feature.<p>I don’t know why anyone wants to use a federated identity to sign into things. Where did the messaging that it’s more secure come from, Google?
        • moduspol49 minutes ago
          Normal people just reuse a few variations of the same password across all of their accounts. Federated identity isn&#x27;t bulletproof but it beats the heck out of reusing the same password.
        • fsfasfd47 minutes ago
          Do you remember when people had to &quot;remember&quot; a password for every service they use? It is better to use a trusted third party. Sure these third parties are big corporations, but its safer for most people to have a login that just works, even at the cost of some privacy.<p>People trying to remember passwords is a pretty bad security situation.<p>I&#x27;m not an expert but so often folks on here throw criticisms without giving credit to some of the merits of solutions. Nothing is perfect, and progress can still be made. :)
          • chrisan30 minutes ago
            A password manager can both take care of remembering unique passwords and allow privacy options
        • kspacewalk21 hour ago
          Why would I want the headache of securely storing credentials if I&#x27;m running a web app? I&#x27;d rather offload it onto Google. And yeah, it&#x27;s probably more secure.<p>Why would I want the headache of having yet another login&#x2F;password to remember, if (like most people) I haven&#x27;t figured out password managers? I&#x27;d rather just use my Google identity, especially if I don&#x27;t <i>really</i> care about this particular web app.
          • sharts54 minutes ago
            This is only true if one doesn’t care about spam going to that identity
      • vintermann9 hours ago
        Your OAuth provider can also vouch for anyone who pretends to be you, if they so desire. They can give access to anyone, including themselves.
      • RealCodingOtaku4 hours ago
        Slight tangent.<p>The only way to preserve privacy while having a central and easy authentication mechanism I can think of is to use IndieAuth[0] which is built on top of OAuth 2.0.<p>Of course, you will need to be your own provider, using an IndieAuth provider service defeats the purpose, which is what I see most IndieWeb devs are doing.<p>You will need to own a (sub)domain though.<p>[0] <a href="https:&#x2F;&#x2F;indieweb.org&#x2F;IndieAuth?redirected=IndieAuth" rel="nofollow">https:&#x2F;&#x2F;indieweb.org&#x2F;IndieAuth?redirected=IndieAuth</a>
        • snorremd2 hours ago
          WebFinger + self-hosted Oauth provider is indeed nice. Unfortunately not widely available.
        • apitman2 hours ago
          Take a look at Google&#x27;s FedCM protocol as well
      • apitman2 hours ago
        I&#x27;ve done a bit of experimentation in this area. Check out <a href="https:&#x2F;&#x2F;lastlogin.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;lastlogin.net&#x2F;</a>.<p>You may also be interested in the FedCM protocol Google is working on.
      • gchamonlive3 hours ago
        Corporations aren&#x27;t interested in preserving privacy, quite the opposite. If you need OAuth for private use you&#x27;d have to roll out your own centralised directory.
      • spaghettifythis10 hours ago
        Though given most people use gmail or outlook, the two main oauth providers (Google and Microsoft) will know anyway
        • willtemperley10 hours ago
          True they&#x27;d know which sites you&#x27;ve signed up to, but not the login times, unless the service emails you every time you log in.
          • kspacewalk21 hour ago
            Every time you sign into an app, you get redirected to the auth provider to open a session there. So of course they know your login times.
            • willtemperley29 minutes ago
              I don&#x27;t think you followed the thread. I began discussing the OAuth privacy nightmare, then the counter point was that the with email auth providers know anyway, but they don&#x27;t know the login times necessarily, unlike with OAuth.
        • v5v36 hours ago
          Three main providers<p>(Apple login is in nearly every iOS app and most websites)
      • userbinator9 hours ago
        Centralised identity is basically the government... and having some other entity behave the same way is not good.
      • niyikiza6 hours ago
        there are some emerging mechanisms for offline verification that don&#x27;t require AS in the OAuth WG. (I&#x27;m working on one of them)
    • aeneas_ory7 hours ago
      OAuth2 is complex and often not the right tool. I wrote Ory Hydra and also a blog post when OAuth2 is&#x2F;is not a good idea: <a href="https:&#x2F;&#x2F;www.ory.com&#x2F;blog&#x2F;oauth2-openid-connect-do-you-need-use-cases-examples" rel="nofollow">https:&#x2F;&#x2F;www.ory.com&#x2F;blog&#x2F;oauth2-openid-connect-do-you-need-u...</a><p>For API Keys we just launched Ory Talos (<a href="https:&#x2F;&#x2F;github.com&#x2F;ory&#x2F;talos" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ory&#x2F;talos</a>) - a perfect alternative for when OAuth2 is too much for the use case.<p>There are use cases and security concerns that legitimize using OAuth2 - with specs like DPoP you can make these flows more secure. In my view the use cases presented here is a good one for OAuth2, but it certainly doesn’t make sense everywhere - complexity makes system harder to secure.
      • usernametaken293 hours ago
        Ory Hydra was one of the few tools I remember being actually good and lightweight and useable. Tried setting up and using KeyCloak for a while, absolute nightmare
    • the84723 hours ago
      OIDC can be <i>relatively</i> straight-forward (that is just a few JSON REST calls) if the provider isn&#x27;t configured in a restrictive way. The .well-known&#x2F;openid-configuration endpoint is quite helpful. Exchanging username+password (optionally with OTP) for a token is an option in the standard. The issue is that lots of deployments <i>are</i> quite restrictive &quot;for security&quot;.
    • cad7 hours ago
      Don&#x27;t get me wrong but data shows that you will likely fail to keep that api key a as secret and you will also fail to revoke when it becomes necessary. You will definately not going to rotate it frequently as you should.<p>Good thing about the OAuth2&#x2F;OIDC is these things will not put the trust on the bearer of the api key, but on actual identity that needs to have the access.
      • tasuki7 hours ago
        My data shows that zaptheimpaler has above average likelihood to keep their secret secret.<p>&gt; Good thing about the OAuth2&#x2F;OIDC is these things will not put the trust on the bearer of the api key, but on actual identity that needs to have the access.<p>And... you do not see the myriad of problems with that? What about the OIDC provider going rogue or getting compromised? How do you ensure whatever you use to authenticate with your OIDC isn&#x27;t compromised? Many identity providers and identity bearers have terrible security practices. &quot;Add a backup email in case you lose your 2FA. Nevermind it&#x27;s the same email we use for password reset.&quot;<p>Again, I trust zaptheimpaler to keep their secret much better than this whole pretend security theater.
      • zigzag3126 hours ago
        Can you share source of this data? I have my doubts about the quality of the data, since OAuth2 is such a complex system with so many footguns.<p>In the end there is always some long lived secret. What changes is just where and how it is stored, secured and used.<p>I bet we can generalize to say that data shows that you will likely fail to properly secure any secret (including the ones used in OAuth2).<p>EDIT: An example: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=37973937">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=37973937</a>
      • cassianoleal6 hours ago
        &gt; but on actual identity that needs to have the access.<p>Not quite. You shift the trust from the key bearer (the most interested party in all of this) to the identity provider.
    • RVuRnvbM2e7 hours ago
      It&#x27;s the worst delegated authorisation system except for all the others that have been tried from time to time.
      • badgersnake7 hours ago
        The original OpenID was fine.
        • notpushkin6 hours ago
          IndieAuth is fine (but I’ve yet to see an implementation out in the wild).<p>Tailscale’s implementation of OIDC is nice: <a href="https:&#x2F;&#x2F;tailscale.com&#x2F;docs&#x2F;integrations&#x2F;identity&#x2F;custom-oidc" rel="nofollow">https:&#x2F;&#x2F;tailscale.com&#x2F;docs&#x2F;integrations&#x2F;identity&#x2F;custom-oidc</a><p>But all that only makes sense if you own a domain name.
          • wolrah1 hour ago
            &gt; But all that only makes sense if you own a domain name.<p>I have a hard time believing the venn diagram of &quot;has a need for an auth provider&quot; and &quot;has at least one domain name&quot; isn&#x27;t just a a small circle almost entirely inside a large one, and the sliver on the outside is not for any reason other than stubborn refusal.
    • jpc06 hours ago
      &gt; I just want a damn API key, I keep it a secret and revoke if necessary and don&#x27;t need 10000 layers of auth bullshit tangled up in every layer of every platform<p>Then implement that on your app... You are just generating a random key and storing a hash + salt.<p>Auth is hard only applies to auth for many users. For your own auth this is dead simple and made even simpler if you use a half decent framework...<p>If you are really worried about the implementation being insecure throw one of the many moderately frontier models at it, they are really not bad at finding issues in an auth system that simple.
    • ALLTaken2 hours ago
      I would be so glad to see a short educational video about this. I wasn&#x27;t aware of this and I think millions of other devs aren&#x27;t either. Otherwise we&#x27;d never have adopted this nightmare.<p>I love how simple SSH is with it&#x27;s PK-Auth. The only challenge is session-invalidation and key-management, but that can be surely automated, no?
    • jofzar8 hours ago
      We had a security report for a oauth vuln and it was the worst thing I have ever read, the whole thing is like spaghetti that &quot;just works&quot; until it doesn&#x27;t because you feed it something similar.<p>Never want to touch oauth, it&#x27;s a fucked spec.
    • jurgenaut2310 hours ago
      I am tempted to agree with you because I could never quite wrap up my head around it, but I never had to implement OAuth beyond a brief skim through the doc for my own understanding. I always thought this complexity was there for some good reason (security?).
      • matja4 hours ago
        OAuth is designed so that an end-user never needs to see an API key (OAuth refresh&#x2F;access token) or even know what one is. When it is implemented to the spec, that happens well.<p>I think that most of the &quot;just give me an API key&quot; comments are from a &lt;1% of end-users (developers) that know what an API key is, and are facing a broken OAuth implementation.
        • hvb24 hours ago
          &gt; and are facing a broken OAuth implementation.<p>Or didn&#x27;t bother to read the spec to understand why it&#x27;s non trivial. Things like this are complex because attacks will force it to be.<p>Also, the broken implementation might be an OIDC implementation that doesn&#x27;t support client_credentials for example. Seen that many times and that does make it rather awkward to implement a server to server flow...
      • messe9 hours ago
        &gt; was there for some good reason (security?).<p>To cover the myriad of (sometimes downright stupid) requirements that large enterprises have.
      • fmbb6 hours ago
        &gt; I always thought this complexity was there for some good reason (security?).<p>It&#x27;s just design by committee.
      • iririririr9 hours ago
        far from it! it was just designed by comitee who both future proofed it and made sure it worked on low powered devices from 1971.<p>i make a point to implement oauth from scratch, because using the overly complex libraries expose you to bugs such as attacker sending a token which the metadata just says &quot;no encryption or signature. trust me bro&quot;, which is actually part of the spec if you combine some options.<p>while in the real world, if google or apple sends you a token that is not always the same signature cypher (one of a dozen by the spec) you are better of threating as malicious, because it pretty much is. a manual implementation of a token consumer is about 20 lines... including downloading the provider keys and checking it (which most startups never do! allowing anyone to just sign a token as anyone)
    • raxxorraxor7 hours ago
      Oauth is fine if you need the complexity, that is a lot of apps sharing common identity information. Then it certainly is superior to the classic workflow.<p>I agree that it is too complex though and app to app auth is certainly not a focus. I often still use static common secrets and see no problem with that.<p>I hate for apps needing to save passwords themselves, even if we have good tools today and the standard bcrypt call is reasonably safe. But then you need to reimplement password reset flows and all that ugly shit. Having that centralised is often<p>I would recommend self-hosting an OIDC service for that matter. The control you get also allows you to easily comply with some laws like GDPR and cousins, because you need to just purge a user in a single system.<p>Otherwise I thoroughly feel the frustration with IAM and the big providers. Ain&#x27;t nobody got time for that and it is never a good and efficient solution.
      • notpushkin5 hours ago
        &gt; I would recommend self-hosting an OIDC service for that matter.<p>Seconded. It is fairly easy to set up, and so much easier than the cloud IAM things.<p>The only catch is, make sure you have some backup access to your OIDC provider in case it goes down. E.g. don’t host it on a server with SSH only accessible through VPN that is authorised using your OIDC provider, etc.
    • esseph1 hour ago
      &gt; I keep it a secret and revoke if necessary and don&#x27;t need 10000 layers of auth bullshit tangled up in every layer of every platform.<p>Expect it. Security is hard and the companies with deep pockets are happy to pay the bill that meets their cybersecurity insurance requirements.
    • dist-epoch6 hours ago
      I run Codex in multiple disposable sandboxes and OAuth is such a fucking pain. I vibe-coded a project which just stores&#x2F;allocates&#x2F;shuffles codex auth.json files around. I have a codex instance that I manually authenticate multiple times with browser OAuth, then copy that auth.json in a store from where it&#x27;s distributed to the sandboxes. And sandbox codex sometimes refreshes the authorization, so when that happens I need to send that auth.json back to the central store. Madness.<p>One good thing GitHub Copilot has it that you can just give it a GH_TOKEN that is valid for 6 months and stop this browser login nonsense.
      • throw12345678914 hours ago
        What does codex&#x27;s auth.json file have to do with OAuth?
  • aeneas_ory7 hours ago
    Author of Ory Hydra here! Very cool to see this blog post and technical description! I never would have thought this piece of software would secure the internet companies in the world :) Also great to see that the 2.x version performs so well for you! The CPU use is ridiculously small for that scale! We have a commercial variant that‘s even faster, if you ever run into trouble.<p>If anyone here is interested in providing their own oauth, IAM, rebac permissions, API keys, agent security - check out our open source &amp; commercial products at <a href="https:&#x2F;&#x2F;github.com&#x2F;ory" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ory</a> and <a href="https:&#x2F;&#x2F;www.ory.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.ory.com&#x2F;</a>
    • hiimshort3 hours ago
      Just a passerby, but wanted to say thanks for your work. Ory services are a delight and I was excited to see them spring up years ago and even more excited to see them continue to be developed and put to good use!
      • aeneas_ory2 hours ago
        Truly appreciated, thank you :)
    • caseyf2 hours ago
      thank u for Hydra, its great!
  • hmokiguess2 hours ago
    I used to manage a self hosted instance of the identity server framework for dotnet that ran several billions of requests per month, my experience managing OAuth and OpenID Connect at that scale was that it was pretty much a solved problem with relatively low maintenance *(it was a critical core service at our org, with heavy compliance, but our team was maybe 3 people taking care of it? it is still up and well to this day)*<p>I could never understand why there were so much confusion spread around this protocol, almost every junior engineer I worked with would just struggle grasping it, I cannot recommend Scott Brady&#x27;s blog enough on the topic <a href="https:&#x2F;&#x2F;www.scottbrady.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.scottbrady.io&#x2F;</a> it was illuminating to me<p>I think there&#x27;s an essential primitive &quot;fear&quot; whenever authN&#x2F;Z is involved that creates friction for most engineers, they&#x27;re used to problem solving and this fits within a pre-condition to your problem solving so there&#x27;s a cognitive tax or something around it
  • CommonGuy6 hours ago
    Cloudflare really likes to publish new projects, but improving them in the future is not really their style. Some examples:<p>- They launched Cloudflare Web Analytics in 2020, but it still does not support basic things such as UTM parameters or custom events<p>- With wrangler (their CLI), you still cannot undeploy a Cloudflare Page
    • r3trohack3r2 hours ago
      The last commit to wrangler was 2 hours ago?<p><a href="https:&#x2F;&#x2F;github.com&#x2F;cloudflare&#x2F;workers-sdk&#x2F;tree&#x2F;main&#x2F;packages&#x2F;wrangler" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cloudflare&#x2F;workers-sdk&#x2F;tree&#x2F;main&#x2F;packages...</a>
      • aroman1 hour ago
        That’s exactly the point.<p>Wrangler, being cloudflare’s primary CLI tool, is a microcosm of exactly the problem GP was articulating: it’s focused way more on adding new commands than improving existing ones.<p>Many products, even supposedly “GA” ones, still lack basic operability via wrangler because instead of finishing building out its capabilities to manage existing services, they prioritized adding rudimentary support for new ones.
        • carimura5 minutes ago
          I suspect CF is their future CLI.
  • v5v36 hours ago
    <i>&quot;Ory Enterprise License: Unlock enterprise-grade features like security SLAs for CVEs, SAML, B2B organizations, multi-tenancy, and better scalability.&quot; [0]</i><p>Or just stick with KeyCloak that offers a full self hosted product... [1]<p>[0]<a href="https:&#x2F;&#x2F;github.com&#x2F;ory" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ory</a> [1]<a href="https:&#x2F;&#x2F;www.keycloak.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.keycloak.org&#x2F;</a>
    • aeneas_ory5 hours ago
      KeyCloak is great if you want a full stack Java server to run internal workforce for example, but Ory is much better at running high scale (eg at OpenAI <a href="https:&#x2F;&#x2F;www.ory.com&#x2F;case-studies&#x2F;openai" rel="nofollow">https:&#x2F;&#x2F;www.ory.com&#x2F;case-studies&#x2F;openai</a>) and in a composable fashion.<p>Yes we have an commercial version because how else can one finance world class open source powering the biggest software names on the planet? It‘s a good thing that Ory has a business model that works, not a bad thing. And by the way, IBM finds ways to charge you for KeyCloak too ;)
      • khurs4 hours ago
        Valid points (although Keycloak was Redhat not IBM and then donated by them to CNCF), but should <i>&quot;security SLAs for CVEs&quot;</i> be listed as a premium feature?<p>Looked at the case study, uses Cockroach which is now commercial, so potentially with the dual costs of Ory and Cockroach licenses, unless you need massive scale, would be too expensive for small&#x2F;medium and also startups? Unless your sole focus is on enterprises?<p>And Keycloak also has such a implementation <a href="https:&#x2F;&#x2F;www.cockroachlabs.com&#x2F;blog&#x2F;deploying-keycloak-on-cockroachdb-with-phase-two&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.cockroachlabs.com&#x2F;blog&#x2F;deploying-keycloak-on-coc...</a>
        • aeneas_ory4 hours ago
          My mistake - I thought it‘s now just under the IBM corp but it is indeed in CNCF. Still, IBM offers a commercial product around KeyCloak.<p>If you serve 900m weekly active users, you need this type of distributed database architecture that is expensive to run. But at that point the cost of running it is a fraction of overall infra spend. No start up really needs this level of scale, only Enterprises (hence it‘s gated). Making Cockroach work is more work than just wiring up the SQL, you actually need to deal with it like dynamodb under the hood and use primary keys efficiently, avoid hotspots, and all that jazz.<p>Most companies (like Cloudflare!) do just fine with Postgres and one of our services. Ory Hydra is written in Go, doesn’t need JVM, very little RAM, doesn’t need caches or start up time due to cold starts. The architecture is different and that makes it cheap and fast to run. From the blog post - they run Hydra on 0.6 vCPU and 200MB of RAM. That’s probably as cheap as it gets!<p>It‘s a different tool for a different problem than KeyCloak - both have their place.
          • khurs3 hours ago
            Yes, Java based is never going to be as good as a more modern language like Go
    • joshsm52 hours ago
      Having dealt with Keycloak in production it&#x27;s not that great. Maybe if it didn&#x27;t use Infinispan and JGroups internally. Both are absurdly complex for no reason.
    • throw12345678914 hours ago
      Keycloak.
    • hequmania3 hours ago
      [dead]
  • utopiah8 hours ago
    Classic Cloudflare, for all, works well, not too expensive... but, and consequently of all those positive attributes, positioning itself at the center of everything.
    • breakingcups6 hours ago
      Cloudflare is one of the most expensive providers out there once you step out of the basics. Look at their video streaming.
      • nekitamo2 hours ago
        I don&#x27;t think that&#x27;s necessarily true. Certainly the video streaming is expensive, but other things like workers and KV store are quite cheap and performant and powerful _if you structure your access patterns accordingly_ .<p>Cloudflare pricing introduces an additional dimension for when you&#x27;re architecting software on top of them, but if you do it correctly, your product has the potential to be faster, cheaper, and easier to run than traditional solutions running on multiple geographically distributed VMs. You just can&#x27;t approach them as if they&#x27;re just another VM instance provider and expect a similar experience and pricing. What they do and price for is fundamentally different from that.
      • nijave4 hours ago
        Maybe it depends on product offering. WAF + CDN was competitive with Akamai (through a VAR) and AWS and came with free Zero Trust seats.<p>Iirc Argo and some other routing products are quite expensive.
      • SCLeo5 hours ago
        I cannot agree more. Cloudflare has some services that are really cheap (r2) to lure you into their worker &quot;ecosystem&quot;, which is just serverless. Once you are vendor locked into their absolute garbage custom JavaScript runtime, you are pretty much forced to use their distributed database Cloudflare KV if you want good performance. Cloudflare KV is so extremely ridiculously absurdly expensive that make predatory pricing of vercel that HN likes to complain about feel like child play.
        • kentonv2 hours ago
          Oh no... KV is not a distributed database and is really not intended as a database alternative at all. It&#x27;s more meant for distributing bits of config globally. Cost aside, writes are way too slow for database-ish use and &quot;eventually consistent&quot; isn&#x27;t what you want for state that is changing often. Durable Objects (SQLite) or Hyperdrive (edge caching in front of a normal postgres&#x2F;mysql database) are what you want, and will probably be a lot cheaper. Sorry for the confusion.
    • swyx8 hours ago
      i mean. fair trade?
      • utopiah7 hours ago
        It&#x27;s a good move for them but it&#x27;s problematic for anybody who cares about a decentralized Internet.
        • vachina3 hours ago
          My policy has been, I make sure I have an equivalent self hosted solution that I can immediately switch to, before deploying said feature to Cloudflare.<p>That said I only use cloudflare for piping and none of the compute stuff.
          • utopiah1 hour ago
            Indeed, a self-hosted compatible fallback is a great failsafe.
  • sandeepkd11 hours ago
    Not sure whats the play here, there is no world where this can turn out good. Cloudflare is more or less infrastructure provider, this idea of some user delegating permissions to their account to some third party client for infrastructure is ripe for abuses. If companies like AWS are not doing it then its for a good reason.
    • ZiiS8 hours ago
      AWS do exactly this. An example use-case is IAM can grant permission to update a Lambda to a Github action running in a given repository.
      • sandeepkd8 hours ago
        Personally I dont like the way they do it, its hard to understand, if anything its convoluted.<p>In case of AWS, you add Github as an IDP (OIDC provider) and associate a role to it.<p>Github is now authenticating into AWS, scoped to the github repository where its configured and the AWS role it can assume<p>Its not really a typical OAuth2 or OIDC flow. And yes its better than storing the keys.<p>Github is not the OAuth client here.
    • ok_dad11 hours ago
      Do you understand what OAuth is? It’s like an API key but less likely to be abused. This is a good thing. It helps security in many ways and makes security flows more safe than carrying around a token.
      • sandeepkd9 hours ago
        I really feel sad about the state of security and its bit hard to unwrap in one paragraph which makes it more challenging. Let me try to be bit more verbose<p>Cloudflare API Keys - You create them and then use those keys directly against cloudflare API&#x27;s to manage services&#x2F;infrastructure in your account. How you create the keys is may be a different kind of challenge.<p>OAuth flow in discussion here - You are using a third party service (which registers themselves as a the client application with cloudflare), this service is going to prompt you for OAuth flow and redirect to Cloudflare, not (only) to authenticate you but it will get a access token on your behalf (your cloudflare account) from Cloudflare. Whatever this THIRD PARTY service uses this token for your behalf is going to incur infrastructure cost for your account.
        • ok_dad8 hours ago
          Yea and if you need to use that service then an API key does the same thing. People were giving these services the API keys which isn’t great. You can argue that third party services aren’t a good idea, but then why are you using cloudflare? I don’t understand why you think this is a security issue, if you don’t trust a third party service don’t use it. You have to approve the permissions, they don’t just steal them.<p>Sorry if I was rude earlier but saying OAuth is some security flaw made me think that you didn’t understand what it was about; it’s just a way to grant permissions to a third party you trust. If you do then I’m curious why you think it’s flawed.
      • usr110610 hours ago
        Maybe he doesn&#x27;t. And I know that I don&#x27;t (at least not in depth). And that&#x27;s the frightening thing here. Using a protocol that many don&#x27;t understand for access to valuable resources
        • ok_dad8 hours ago
          OAuth is pretty simple, just read the spec.<p>Your go to a third party web site. They send you to your OAuth provider, like cloudflare. Cloudflare asks you to login if you’re not logged in, then asks if you want to give that party certain permissions. You say yes or no and then click approve and then you get redirected back to the third party site. They get a secure token and can use that to access the services with permissions you approved. If you don’t trust the third party then don’t approve it.<p>It is like an API key but you never have to touch it. The third party can encrypt it and store it securely and it never has to be copied and pasted. You can use this on backend services that need to access things too. I recently wrote an OAuth client for MCP servers for something I’m building (not gonna advertise here because that’s rude) and it’s very nice once you read the spec.
          • bogdan6 hours ago
            You&#x27;re right. Crazy how we ended with so many different implementations.
    • codebje11 hours ago
      How different is this to, eg, the Google developer program, in which I can create a new OAuth client for Google users?
      • sandeepkd9 hours ago
        OAuth2, to be more precise, is a protocol which can be used both for authentication (verifying the user) and authorization (accessing resources on behalf of that user).<p>Most people in CIAM (customer identity, individuals owing their account instead of representing a company) only interact with OAuth client for authentication. They do not give access of their google account to some THIRD PARTY COMPANY.
        • smw8 hours ago
          Sure they do. All the time! For example, if you want to use a script in Google Docs these days, you have to go through an oauth flow to give that script&#x27;s app permission to do certain actions in your Docs.
  • firasd7 hours ago
    This is basically about OAuth for accessing a Cloudflare account, not a CF-hosted generic &#x27;Login&#x27; type stuff for custom apps
  • zeafoamrun5 hours ago
    Good thing they&#x27;re laying off more of their workforce to support these new products <a href="https:&#x2F;&#x2F;app.dealroom.co&#x2F;news&#x2F;feed&#x2F;cloudflare-ceo-warns-ai-driven-mass-layoffs-coming-in-next-6-12-months-after-cutting-20-of-workforce" rel="nofollow">https:&#x2F;&#x2F;app.dealroom.co&#x2F;news&#x2F;feed&#x2F;cloudflare-ceo-warns-ai-dr...</a>
  • necovek10 hours ago
    I thought I understood what Oauth was (a standardized protocol to provide per-client access keys), but this article confuses me.<p>What&#x27;s a &quot;self-managed&quot; Oauth here? What is access is being granted to, who are the clients, who are the partners...?<p>Anyone care to elaborate?
    • Groxx10 hours ago
      &gt;<i>Earlier this month, we announced self-managed OAuth, making it easier for customers to create and manage their own OAuth clients for delegated access to the Cloudflare API.</i><p>They&#x27;re letting <i>you</i> host an OAuth system to approve&#x2F;deny access to your own resources, so you can build whatever logic you like, rather than waiting on them to allow you to do X under Y conditions. Essentially &quot;log into CloudFlare&quot; -&gt; CF sees you&#x27;re using this self-managed OAuth -&gt; redirect to your OAuth -&gt; CF trusts your response, and approves access to your account if you approve access.
    • niyikiza6 hours ago
      Means you can basically host your own AS
  • Avery297 hours ago
    OAuth is great when you actually need user delegation. For simple server-to-server API access, scoped keys with rotation, audit logs, and fast revocation are often a much better developer experience.
  • kjgkjhfkjf6 hours ago
    I wish Cloudflare provided a paved path for user auth.<p>Better Auth seems to be the most common recommendation for Typescript applications, but there currently doesn&#x27;t seem to be an official integration with Workers either from Better Auth or from Cloudflare.<p>I currently use Supabase to avoid having to set up my own user auth on Workers, but I would much prefer to use D1 etc.
    • notpushkin5 hours ago
      As much as I’d like to love Better Auth, the assumptions they make sometimes are so damn annoying. Having to resort to hacks to e.g. support an OIDC provider that doesn’t return user’s email (like Telegram) is a PITA.<p>I find Lucia Auth’s approach more useful in the long run – you have some boilerplate living on your codebase but you own it completely and it doesn’t try to make decisions for you: <a href="https:&#x2F;&#x2F;lucia-auth.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;lucia-auth.com&#x2F;</a><p>---<p>That said, why don’t you use Better Auth with Drizzle and the D1 adapter?
    • sarreph6 hours ago
      I’ve done it in one of my projects here using Drizzle, and it’s worked fine in testing so far.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;rorz&#x2F;manual.email&#x2F;blob&#x2F;main&#x2F;packages&#x2F;db&#x2F;src&#x2F;auth-schema.ts" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rorz&#x2F;manual.email&#x2F;blob&#x2F;main&#x2F;packages&#x2F;db&#x2F;s...</a>
  • Exoristos9 hours ago
    You&#x27;d think implementing OAuth2 were splitting the atom the way so many dev teams won&#x27;t even consider rolling their own or using the multiple well-tested free libraries.
  • khalic3 hours ago
    Can&#x27;t wait to have half the internet&#x27;s auth sessions die because of an outage
  • miguelspizza7 hours ago
    What’s ironic about this is they technically already shipped a looser version. The entire cf api is exposed as an MCP server which supports OAuth and dynamic client registration.<p>Not sure why they don’t just support DCR or CIMD for this too
  • asdf8899011 hours ago
    Cloudflare turning into a Cloud platform is undoing what it was really doing well: making small clouds and diy hosting manageable in the hostile web environment.<p>Once their revenue from Cloud services overtakes their core offering, bye bye Cloudflare free and so on.
    • rozenmd10 hours ago
      Cloudflare free <i>is</i> the business model: <a href="https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;cloudflares-commitment-to-free&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;cloudflares-commitment-to-free&#x2F;</a>
      • asdfsa329 hours ago
        If you carefully read the article, it just explain how it is an economic decision, and one which sooner or later will be no longer the case once they can capitalise on with anything above free, which is the lowest of the lowest bars.<p>But even to entertain this is crazy, not because of decades of history of capitalist and market enterprise in general, but very specific cases of Technology Companies starting with these kind of feel good ideas and declaring &quot;Don&#x27;t be evil&quot; or things like &quot; access, safety, and shared prosperity&quot; as their core ideals, turn into absolute panopticon and collaborate with unjust killing of women and children in less than a decade.<p>The market isn&#x27;t for free.
    • reed123411 hours ago
      I doubt it. It’s cheap to run and a good funnel
    • weird-eye-issue10 hours ago
      &gt; Once their revenue from Cloud services overtakes their core offering, bye bye Cloudflare free and so on.<p>Wait so what do you think their core offering is?
    • NicoJuicy8 hours ago
      You don&#x27;t know Cloudflare?<p>Their first products were production grade examples of the SDN that required a lot of bandwidth (DDOS&#x2F;CDN).<p>The cloud is a logical continuation.<p>Their business was always the &quot;internet&quot;, see their ticker =&gt; NET.<p>Dev free is part of the marketing cost and would stay under the current leadership.
  • rcarmo8 hours ago
    Nice, but as usual if you want a 3-step “getting started” example you have to wade through the docs, and even then…
  • gnabgib12 hours ago
    Title: <i>Unlocking the Cloudflare app ecosystem with OAuth for all</i>
  • s_kazmi5 hours ago
    I have shifted all my apps backend as much as possible to cloudflare. Get my domains from it, all security stuff. hosting, etc<p>Love em., greatest tech company of all time. One stop shop.
  • fithisux8 hours ago
    Cloudflare to cut about 20% of its workforce<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=48054423">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=48054423</a>
  • littlecranky675 hours ago
    My pet peeve is the standard OpenID connect implementation of OAuth for SPAs - which will probably use the PKCE code flow. It is probably for historic reasons and old browser compat, but exposing access token and revocation token to javascript is IMHO just madness. In modern security flows you would save those tokens into cookies that are HttpOnly and SameSite=strict and prevent a myriad of JS based attack vectors.
  • xyzzy_plugh11 hours ago
    This is such a weird blog post.<p>It&#x27;s full of technical details, but I&#x27;m really not sure who they&#x27;re for. There&#x27;s nothing particularly novel or impressive. If anything the fact that it took them this long should be embarrassing. They pad it out with a table of stats that are just kind of meh? Congrats I guess for releasing something without burning the house down?<p>As an on-and-off customer of theirs I tried to quickly skim for some of the details that would impact me, the theoretical end-user, but the vast majority of TFA is just about how they pulled off this apparent feat of engineering.<p>I&#x27;m not trying to be pessimistic, and I don&#x27;t fault the author (but I question the culture). I honestly don&#x27;t get who this is for.<p>For the record this is something they should have had... at least six or seven years ago?
    • parsadotsh11 hours ago
      I for one appreciate them sharing this and found it a very interesting read. Many of us don&#x27;t have experiences at companies at this scale and so it&#x27;s nice whenever I get to read about what happens behind the scene.
      • xyzzy_plugh10 hours ago
        Usually I expect an eng blog post to be a recruitment vehicle, wherein the authors articulate a really hard problem they solved, or some novel approach they took, or the cool new open source project they released (for their future SaaS play).<p>But this is so mundane it bothers me in a way I find surprising. It&#x27;s more about how they made some questionable choices in the past and how they finally paid off that technical debt. Is it interesting? Perhaps I am just getting old and jaded.<p>What I find odd is how light TFA is on actual details as to what it is they shipped.<p>This is the kind of thing I&#x27;d ship internally to the org as part of a weekly update or something, but not what I&#x27;d expect on a public-facing corporate blog.
  • system211 hours ago
    I hope Cloudflare does not turn into Google, with so many different things that they will eventually kill all of these services randomly because of the maintenance cost.
    • holistio10 hours ago
      I still kind of think of Cloudflare as &quot;big ass CDN&quot;.<p>I can&#x27;t keep track of all the new things they do. Something-something-R2? Maybe?
  • iririririr9 hours ago
    the end game: they will start requiring proof of id to access resources they host.<p>probably getting ahead of something the UK and some us states will require soon, as they already require from the sites behind cloudflare.
  • isabellehue1 hour ago
    [flagged]
  • throwaway61374635 minutes ago
    [dead]
  • ALLTaken2 hours ago
    [dead]
  • firasd7 hours ago
    [dead]