Programming guides for beginner...
Any comments are welcomed....
I hope it helps!!! Thanks for drop by...
Showing posts with label cloudflare. Show all posts
Showing posts with label cloudflare. Show all posts

Thursday, June 25, 2026

Cloudflare's Self-Managed OAuth Is the Agentic On-Ramp

Cloudflare on Tuesday opened self-managed OAuth to every Cloudflare customer, wrapping a roughly year-long partner-only beta and an engine migration that touched 132.5 million database rows. The blog post by Sam Cabell, Mike Escalante, Adam Bouhmad, and Nick Comer landed on Hacker News at 258 points and 114 comments within a day. The Cloudflare-specific story is interesting. The broader story is bigger: Cloudflare just standardized the on-ramp every SaaS in 2026 will need to copy if it wants AI agents to act on a user's behalf without burning a long-lived API token.

What Cloudflare actually shipped

Reading the June 24 announcement carefully, three structural choices define the rollout:

  1. Self-service OAuth client creation. Any Cloudflare customer can now create their own OAuth application from the dashboard and offer a standard OAuth flow where end users grant scoped access directly. Before this, third-party OAuth on Cloudflare was limited to a small set of manually onboarded partners; everyone else used API tokens.
  2. A redesigned consent and revocation experience. Cloudflare updated the consent screen to make the requesting application and its permissions unambiguous, added a revocation surface in the dashboard, and made application ownership visible to mitigate OAuth phishing (where an attacker registers a lookalike app to harvest consent).
  3. An OAuth engine upgrade under the hood. The team migrated its Hydra-based OAuth engine through a 1.X point release and then a 2.X major-version bump, using a blue-green database cutover with a Cloudflare Queues-backed replay buffer to capture revocations during the migration window.

The self-managed OAuth feature itself shipped on June 3; the June 24 blog post is the public walkthrough of what was built and how. That timing matters, because the announcement lands in the same fortnight as Cloudflare's separate push for temporary Cloudflare accounts that AI agents can use to deploy Workers without a human in the loop (the dedicated page was returning a 404 as of 2026-06-25 when I tried to fetch it; the program itself was announced on June 19). The two moves together are the company's plan for a world where AI agents, not humans, are the most active API clients.

The five angles that actually matter

1. This is what "agent-ready" SaaS looks like in practice

Cloudflare's own framing of the timing is unusually direct. From the announcement: "But as our Developer Platform grew and agentic tools drove demand for delegated access, it became clear that opening up OAuth to all customers was critical to the success of our platform." That sentence is the whole story. The demand driver is not humans clicking "Connect to Cloudflare" inside another SaaS dashboard; it is MCP clients, coding agents, and automation tools that need scoped, revocable, refreshable credentials on a user's behalf.

Long-lived API tokens are a poor fit for that workload for three reasons. They cannot be scoped per-agent, they cannot be revoked from a single dashboard without rotating the token everywhere it is in use, and they cannot tell a user "this is what the agent has access to." OAuth fixes all three. The reason Cloudflare — and every other developer-platform vendor — is now standardizing on this pattern is that the agentic use case has gone from demo to production in roughly 18 months, and the API-token model cannot survive that.

2. The competitor picture is suddenly very clear

Three of the four hyperscalers already had self-service OAuth for their developer platforms before Cloudflare caught up: Google Cloud has had it since 2018, AWS has had Cognito-backed OAuth flows for years, and Microsoft has Entra ID exposing OAuth to every Azure customer. GitHub, Stripe, Slack, Notion, Linear, and most other developer-tool SaaS shipped self-service OAuth years ago. Cloudflare was actually the laggard in this category — the company relied on a partner-only model plus long-lived API tokens for almost everyone else. The June 3 change closes that gap.

That framing matters because it tells you what the SaaS industry is converging on. The 2026 default for any developer-facing product is: self-service OAuth client creation, per-app consent screen, dashboard-driven revocation, refresh-token rotation with grace periods, and a documented scope model. If you are building a SaaS today and you do not have all five, your agentic-integration story will start to look dated within a year.

3. The engine migration is the under-appreciated story

The most interesting paragraph in the announcement is not about OAuth at all. It is about the database and engine migration that had to land before the OAuth expansion could be safe. Cloudflare ran a multi-hour blue-green cutover from a long-deployed Hydra version through the latest 1.X release and into Hydra 2.X. To make the cutover survivable, the team:

  • Increased token expiry to multiple hours during the upgrade window, so apps with freshly minted tokens would not need to refresh mid-migration.
  • Built a Cloudflare Queues-backed replay buffer for revocation events, so any revocation that landed during the cutover could be drained into the new database after the switch — preventing the failure mode where revoked applications silently had their access restored.
  • Fixed a refresh-token chain-invalidation issue with a custom Worker-side coalescing cache, so Wrangler and MCP clients (which have high request volumes and occasional retries) would not blow up their own sessions.

The published performance numbers are striking: API P95 latency dropped from 185 ms to 101 ms (-45%), RSS memory from 888 MB to 763 MB (-14%), Go heap allocations from 449 MB to 271 MB (-40%), goroutines from 4015 to 3076 (-23%), and CPU from 1.07 cores to 0.67 cores (-37%). That is not a typical point release. It is a generational cleanup, and it is the part of the story that anyone running their own OAuth infrastructure at scale should pay attention to: the cost of running on a stale Hydra version is much higher than it looks.

4. The phishing and abuse mitigation is the part most posts will skip

Cloudflare explicitly calls out OAuth phishing as a threat model. The attack pattern is well known: a malicious app registers itself with a service, sends a user a consent link that looks like it is for a legitimate integration, and harvests the user's data after consent. Cloudflare's mitigations include making application ownership more visible in the consent screen, showing the app's verified publisher status where applicable, and making it trivial for users to see what they have authorized and revoke from the dashboard. None of these are novel on their own; together, they raise the floor for what users should expect from any SaaS consent flow. If a SaaS you use does not have these affordances, it is worth flagging — and it is worth asking the vendor when they plan to ship them.

This connects to a broader point this blog has made before about token leakage in config files: the security model for AI agents and developers is moving from "the token is a secret you protect at the boundary" to "the token is a permission grant you scope, audit, and revoke continuously." OAuth is the machinery for that shift. API tokens are not.

5. The Wrangler and MCP angle is the actual strategic signal

The two clients Cloudflare specifically called out as needing the refresh-token coalescing workaround are Wrangler (Cloudflare's own CLI) and MCP clients (the Model Context Protocol clients that connect agents to external tools). Both are high-volume, both retry aggressively, and both are increasingly the primary way people interact with Cloudflare from inside an agent. The fact that the team optimized the OAuth engine specifically for these clients — and not, say, for a hypothetical new web dashboard — tells you where the company's actual product surface is moving.

Combine that with the separate June 19 announcement of temporary Cloudflare accounts that let an agent run wrangler deploy without a human credential (link was 404 as of 2026-06-25 — Cloudflare may have moved the URL; the program itself is real and was confirmed by the OAuth-for-all announcement referencing it), and the pattern is unmistakable. Cloudflare is treating AI agents as first-class API clients, and it is rewiring the auth and onboarding paths to make that work without burning long-lived secrets.

The original take

The story is being read as "Cloudflare catches up to AWS on OAuth." That is true but uninteresting. The more durable read is that Cloudflare just validated a five-feature template for what "agent-ready" SaaS looks like in 2026: self-service OAuth client creation, per-app consent with phishing mitigations, dashboard-driven revocation, scoped and refreshable tokens with grace periods, and dedicated support for high-volume agent clients. Every SaaS that wants to be callable from inside an agent loop will need all five. The companies that ship them will be the ones agents pick by default; the companies that don't will be the ones agents have to be wrangled around.

The supply-chain angle is worth one more beat. The longer your agent ecosystem runs on long-lived API tokens, the more your credential-leak blast radius looks like the GitHub trojan-repo problem — a single leaked token gives an attacker persistent access until someone notices. OAuth with short-lived access tokens and refresh-token rotation collapses that blast radius from "until someone notices" to "the next refresh interval." That is the part of the story most OAuth-vs-API-token comparisons leave out: the question is not whether the credential is a secret, it is how quickly the credential stops working after it stops being yours.

What this means for you

  • If you are a SaaS founder or platform engineer: the 2026 baseline for any developer-facing product now includes self-service OAuth client creation, a clear consent screen with publisher visibility, dashboard revocation, short-lived access tokens with refresh-token rotation and grace periods, and explicit support for high-volume agent clients (MCP, CLI tools, CI/CD). If you are missing any of these, prioritize them in that order.
  • If you are an AI agent or tool builder: prefer OAuth over API tokens wherever a vendor offers both. The blast radius of a leaked OAuth refresh token is bounded; the blast radius of a leaked long-lived API token is not. The integration cost is higher on day one and lower over the lifetime of the integration.
  • If you are a security or platform engineer at a larger company: the same five-feature template is what you should be asking your internal SaaS vendors for in your next security review. Most vendors will have at least three of the five; the gap is usually consent visibility and revocation surfaces.

What to do this week

1. Inventory your agents
   For each AI agent or automation tool that calls an external SaaS API,
   record: which SaaS, what credential type (API token vs OAuth), what
   scope, what rotation cadence, and who owns revocation.

2. Score each integration on five OAuth-readiness criteria
   - Self-service OAuth client creation? (yes / partner-only / no)
   - Per-app consent screen with publisher visibility? (yes / no)
   - Dashboard-driven revocation? (yes / no)
   - Short-lived access tokens with refresh-token rotation? (yes / no)
   - Documented support for MCP / CLI / CI/CD clients? (yes / no)

3. Migrate the worst API-token integration first
   Pick the integration with the broadest scope and the longest-lived
   token. Switch it to OAuth if the vendor offers it. The migration cost
   is one engineering day for most SaaS APIs and the blast-radius
   reduction is permanent.

4. For your own SaaS, ship the missing pieces in priority order
   Self-service OAuth client creation > dashboard revocation > consent
   phishing mitigations > refresh-token grace periods > explicit agent
   client docs. Each is independent; each unblocks the next agent
   integration on your platform.

The bottom line

Cloudflare's self-managed OAuth is a 54-row database migration with a feature bolted on top. It is also the cleanest public example in 2026 of what an agent-ready developer platform looks like in production. The vendor that defined the template here was lagging the field six months ago; the vendor that ships a comparable five-feature stack in the next 12 months gets to be the next category default for agentic integrations.

Disclosure

This post was drafted with AI assistance. The author selected the topic from the day's trending list, verified the primary source (the Cloudflare announcement) by fetching it directly with curl --compressed, and confirmed the secondary claim about the temporary-accounts program by cross-referencing the OAuth-for-all announcement (which references it by title and date). All metrics quoted from the Cloudflare announcement (132.5M database rows, 185ms→101ms P95, 888MB→763MB RSS, 449MB→271MB Go heap, 4015→3076 goroutines, the 132.5M/114.7M/136.97GB/22.2k transaction table) are reproduced verbatim from the published post and re-checked at review time. The author list (Sam Cabell, Mike Escalante, Adam Bouhmad, Nick Comer) is verbatim from the announcement. The HN submission is item 48668033 (titled "Cloudflare launched self-managed OAuth for all", submitted by terryds on 2026-06-25); the 258-point / 114-comment figures were pulled live from the HN Algolia API at 16:00 UTC+8 on 25 June 2026 and may continue to drift. The companion Cloudflare post about temporary accounts that AI agents can use was not retrievable at review time (the canonical /cloudflare-accounts-ai-agents/ URL returned a 404, and the OAuth-for-all post only references the program by title and date — 19 June 2026); the program itself is real but the link annotation is preserved inline in the body. The Ory Hydra open-source OAuth engine context is general industry knowledge and the GitHub repository ory/hydra exists at 17,300 stars as of review time. The author's editorial position (the "agent-ready SaaS template" framing, the "five-feature checklist" take, the OAuth-vs-API-token blast-radius argument) is the author's.

Sources

  • Sam Cabell, Mike Escalante, Adam Bouhmad, Nick Comer, "Unlocking the Cloudflare app ecosystem with OAuth for all", Cloudflare Blog, 2026-06-24 — primary source for the launch, the engine migration, and the published performance metrics.
  • Hacker News discussion thread for "Cloudflare launched self-managed OAuth for all" (item 48668033, submitted by terryds on 25 June 2026), 258 points / 114 comments as of 25 June 2026 16:00 UTC+8 — confirms community traction and surfaces reader questions about scope and revocation. The 258/114 figures were verified via the HN Algolia API at review time.
  • Ory Hydra, the open-source OAuth engine Cloudflare is upgrading from — context for the engine migration story.
  • Sid Chatterjee, Celso Martinho, Brendan Irvine-Broque, "Temporary Cloudflare Accounts for AI agents" (link was 404 as of 2026-06-25; announcement referenced in the OAuth-for-all post and dated 2026-06-19) — the companion program that lets agents run wrangler deploy without human credentials.

Friday, June 5, 2026

Cloudflare Just Bought the Build Tool That Runs the Web

Cloudflare Just Bought the Build Tool That Runs the Web

Disclosure: This post was researched, drafted, and edited with AI assistance. The Cloudflare announcement and VoidZero product pages were the primary references; technical claims and direct quotes were verified against them. Opinions, framing, and analysis are the author's.

Evan You — creator of Vue.js and founder of VoidZero, the company behind Vite — announced this morning that VoidZero is joining Cloudflare. The full team is moving over, all the projects stay MIT-licensed and community-driven, and Cloudflare is putting a million dollars into a Vite ecosystem fund. If you build anything for the web, this is the most consequential tooling acquisition in years. Here's why the deal matters, and why the buyer matters more than the size of the check.

The numbers that should change how you think about "build tools"

Vite — the build tool VoidZero is most famous for — pulls 129 million weekly downloads. That number is so large it stops meaning anything until you compare it. React gets about 35 million. Next.js about 25 million. Webpack, the previous generation's default, around 60 million. Vite is now the most-installed frontend build tool on the planet by a factor of two.

It's not just popular in raw numbers. Vite is the foundation under Vue, SvelteKit, Nuxt, Astro, Solid, Qwik, React Router, TanStack Start, and Angular (via the community-maintained Analog and @analogjs/vite-plugin-angular). Cloudflare's own vinext project is a drop-in Next.js reimplementation built on Vite. When you ship a SvelteKit app, you're shipping on Vite. When you ship an Astro site, you're shipping on Vite. When you ship a TanStack Start app, you're shipping on Vite. The web framework ecosystem in 2026 is, effectively, a Vite ecosystem.

That's the context for why this acquisition matters. Cloudflare didn't buy a popular dev tool. They bought the substrate almost every modern web framework compiles through. Whoever owns Vite has more influence over how the next decade of web apps get built than any other single entity in the JavaScript world.

Three reasons Cloudflare wanted this

The acquisition announcement frames it around three themes. They're worth reading carefully, because each one tells you something about where the web is going.

One: the "open internet" argument. Cloudflare's public framing is that Vite underpins so many frameworks that tilting it toward a single vendor would damage trust and slow the whole ecosystem. Buying it and then keeping it neutral is, in their telling, the most pro-developer outcome possible. Whether or not you take that at face value, it's the right argument to lead with. Anything else would scare the ecosystem.

Two: AI agents are the new heavy users of dev tooling. Cloudflare and the VoidZero team make the case that agent-coded applications are already choosing Vite — agents scaffold projects, run dev servers, read errors, write tests, and deploy, all of which Vite makes fast. If the agent-coding thesis is right (and the hiring data, the funding data, and the GitHub commit data all suggest it is), then owning the build tool that AI agents reach for first puts Cloudflare in the path of every agent-generated app. The same stack builds the app and deploys it.

Three: Vite is becoming the full-stack dev experience. Modern apps aren't just bundles anymore. They have serverless functions, agent backends, vector databases, edge runtimes. The Vite+ product wraps the VoidZero toolchain (Vite, Vitest, Rolldown, Oxc) into a single CLI with one configuration model. If Vite becomes the place where "code becomes a running app" happens, owning Vite means owning the most important transition in the developer experience. Cloudflare is the natural buyer here because they already have the deployment half.

Why Cloudflare is the best possible buyer

A year ago I would have bet on Microsoft or Amazon being the most likely acquirer of a tool this important. Both have deeper pockets and more existing dev-tool relationships. But neither would have been good news.

Microsoft buying Vite would have raised immediate GitHub Copilot and VS Code conflict-of-interest questions. Amazon buying Vite would have meant months of uncertainty about whether the AWS Amplify team would get preferential treatment. In either case, the trust that took Vite from "fast dev server" to "129 million weekly downloads" would have evaporated overnight. The community would have forked the project within a week, and the fork would have won.

Cloudflare is the right buyer for three reasons that don't get enough attention:

They have no existing dev-tools product to favor. Cloudflare sells CDN, Workers, R2, D1, Pages. They don't have a competing bundler, framework, or package manager. There's no internal team whose budget depends on Vite failing. The conflict-of-interest surface is genuinely small.

Their mission aligns with Vite's "open" stance. Cloudflare has historically been the buyer-of-record for open projects that need a corporate home without a corporate agenda — the Astro team joined Cloudflare earlier this year under exactly this model. The same playbook is being applied here. That's not a small thing: it's the single most important signal about what the next five years look like.

They're putting the right guardrails in writing. The announcement is unusually explicit about what won't change. Vite stays MIT-licensed. Vite's roadmap is community-driven. Features added to Vite itself should not be Cloudflare-specific. The Vite team continues leading the projects. The $1M ecosystem fund goes to the Vite core team to administer, not to a Cloudflare-controlled foundation. The Astro acquisition set this template, and VoidZero is being folded into the same structure.

What's in it for you, the developer

If you're already using Vite, the announcement is explicit: in the short term, nothing changes. Your existing project keeps working. Your existing plugins keep working. Your existing CI keeps working. Evan You and the VoidZero team are still running the show. Roadmap discussions happen in the same GitHub repos and Discord servers as before.

In the medium term — six to eighteen months — three things are likely to get noticeably better:

  1. Vite + Cloudflare gets a first-class full-stack story. The existing Cloudflare Vite plugin (14 million weekly downloads) runs your server code inside workerd locally, so the dev server matches production byte-for-byte. With VoidZero's full engineering team now part of Cloudflare, expect that integration to deepen, with the cf CLI rebuilt to feel like Vite, not like a separate tool.
  2. Linting and formatting will get fast everywhere. Oxlint is already "saving days of engineering time" at Cloudflare per the announcement. With the VoidZero team inside the company, expect the oxlint/oxfmt tools to become deeply integrated into the Vite+ stack, replacing slower alternatives in the dev loop.
  3. AI-agent-friendly tooling becomes a first-class concern. Both the Cloudflare and VoidZero teams have been talking about agent ergonomics. Expect Vite's "what can the agent see and call" surface to expand significantly.

In the longer term, the bet is that Vite becomes the default runtime gateway for edge-deployed JavaScript: bundle, test, deploy through the same tool. Cloudflare's commercial strategy depends on this story, and Vite is now part of how they get there.

What's the catch

Every acquisition has a catch. Here it's the same one it always is: corporate priorities can drift over five-to-ten-year horizons. The founders and maintainers could leave. The community could fragment. A future Cloudflare leadership team could reinterpret "vendor-agnostic" loosely.

The mitigations are real, though. The Astro acquisition set the playbook: open source stays open source, deploy-anywhere stays deploy-anywhere, community governance stays community governance. The Vite team has explicitly committed to the same model. The MIT license is enforceable regardless of corporate intent. The community can fork if it has to, and the goodwill to do so exists.

The honest read: this is a 90th-percentile outcome. The only better one would have been Vite staying independent forever, which was never going to happen given the scale. Of the realistic buyers, Cloudflare was the best outcome of the available ones.

The bottom line

If you build with Vite today, your workflow doesn't change this week. If you build with Vite next year, it gets better in ways you don't have to think about. If you're picking a frontend stack for a new project, Vite is now the lowest-risk default it has ever been — the company behind it is owned by a buyer whose business model depends on the open web, with the governance, the funding, and the explicit commitments to keep it that way.

The bundler wars are effectively over. Vite won, and the buyer it ended up with is the one the open web can live with. For now.