Join our Newsletter — 33% off our NHI Course

Why did Cloudflare’s OAuth migration need 132.5 million updates?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20842
Topic starter  

TL;DR: Cloudflare’s OAuth migration processed 132.5 million row updates, 114.7 million inserts, and 22,200 commits, Ory reported, while keeping sessions intact and cutting P95 API latency 45%. Identity systems have to be planned for migration load, rollback pressure, and session continuity at platform scale.

Editorial analysis by NHI Mgmt Group, based on content published by Ory: “Ory Hydra Powers OAuth at Cloudflare Scale; and It's Just Getting Started”.

By the numbers:

  • Cloudflare’s migration processed 132.5 million rows updated, 114.7 million rows inserted, 136.97GB of temporary storage consumed, and 22,200 transaction commits.

Key questions

Q: Why do large identity migrations create access risk even when the schema update succeeds?

A: Because identity systems are stateful control planes, not static data stores.

Q: What signals show that an auth platform is struggling at enterprise scale?

A: Rising P95 latency, high temporary storage use, growing commit volume, and increased CPU or heap pressure are all signs that the identity layer is approaching operational limits.

Q: How should IAM teams migrate OAuth systems without breaking active sessions?

A: Use a staged cutover with blue-green deployment, replayable queues, and extended token expiry windows so live sessions survive the transition.

Practitioner guidance

  • Model identity migrations as stateful cutovers Map token state, revocation state, and session continuity before changing any OAuth or OIDC backbone.
  • Validate session preservation during deployment Test blue-green or parallel-run patterns against active user traffic so the old and new identity paths can overlap without breaking logins or silently dropping revocations.
  • Benchmark auth latency under load Measure P95 latency, CPU, heap use, and commit pressure during peak authentication and migration windows, then set acceptance thresholds for future identity changes.

Bottom line: Large OAuth migrations can succeed technically while still failing operationally if session continuity, revocation, and token state are not governed as part of the cutover.

Glossary terms: Authentication migration, Session Continuity, Blue Green Deployment, Identity Migration Blast Radius

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 2 weeks ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 7 months ago
Posts: 21330
 

Identity infrastructure has crossed the threshold from supporting service to platform dependency: At Cloudflare scale, OAuth is no longer a narrow authentication feature, it is part of the operational fabric of the business. When a migration touches 132.5 million row updates and still has to preserve sessions, access continuity becomes a platform property rather than an IAM afterthought. Practitioners should read this as evidence that identity change management now belongs in core infrastructure governance.

A few things that frame the scale:

  • DeepSeek alone generated 113,000 new exposed API keys in 2025, illustrating how new AI providers create credential exposure before security guardrails catch up, according to the State of Secrets Sprawl 2026.
  • Only 20% have formal processes for offboarding and revoking API keys, and even fewer have procedures for rotating them, according to the Ultimate Guide to NHIs.

A question worth separating out:

Q: When should IAM teams treat authentication as core infrastructure?

A: When login, token exchange, or revocation changes can affect millions of users at once, authentication should be governed like a core platform service. At that point, availability, cutover design, and session continuity are part of identity architecture, not separate concerns.

👉 Read our full editorial: Cloudflare’s OAuth migration shows identity is core infrastructure


This post was modified 2 weeks ago by NHI Mgmt Group

   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.