By NHI Mgmt Group Editorial TeamDomain: Workload IdentitySource: OryPublished June 26, 2026

TL;DR: Cloudflare’s move to extend OAuth to all users with Ory Hydra processed 132.5 million row updates, 114.7 million inserts, 22,200 commits, and no session breaks while cutting P95 API latency 45%, according to Ory. The lesson is that identity infrastructure for machine and human access now has to behave like core platform plumbing, not a side service.


At a glance

What this is: Ory’s Cloudflare case study shows how large-scale OAuth migrations can be executed without breaking sessions while materially improving latency and resource use.

Why it matters: IAM teams running human, workload, or agent access at scale need migration patterns, token lifecycle discipline, and auth architecture that can absorb change without revocation loss or user disruption.

By the numbers:

👉 Read Ory's Cloudflare OAuth scale case study and migration details


Context

OAuth at Cloudflare scale is a migration and resilience problem, not just an authentication feature choice. Once identity sits on the critical path for every user and API interaction, the programme has to preserve tokens, revocations, and session continuity while the underlying platform changes.

This case matters for IAM because it sits at the intersection of human sign-in, machine-to-machine access, and operational continuity. The article shows that identity systems have to absorb very large data movement without creating silent access failures, which is the real test for modern authorization infrastructure.


Key questions

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. Validate revocation handling separately from token issuance, because a migration can preserve sign-in while still corrupting access state if revocation records are lost or delayed.

Q: Why do large OAuth platforms need different governance than smaller IAM systems?

A: Because scale turns identity into critical infrastructure. At high volume, latency, memory use, replay handling, and revocation integrity all affect whether access controls remain trustworthy during change, not just during normal operations. A design that works for a limited rollout can fail when every user and API depends on it.

Q: What breaks when token expiry windows are too rigid during migration?

A: Rigid expiry windows can invalidate active sessions before the new environment is fully stable, which creates user disruption and can also produce inconsistent authorization state. The problem is not simply downtime. It is the mismatch between change timing and the real lifecycle of access tokens and refresh paths.

Q: Who should own identity resilience in a platform migration?

A: IAM, security architecture, and platform engineering should share ownership. Identity resilience is not only about policy design or only about infrastructure uptime. It depends on how token state, revocation records, replay systems, and database changes are coordinated across the migration lifecycle.


Technical breakdown

Blue-green OAuth migration mechanics at global scale

A blue-green migration keeps the old and new identity paths available at the same time so traffic can shift without a hard cutover. In this case, that meant moving millions of records, extending token expiry windows, and replaying queued events so no session state disappeared mid-transition. The important detail is that OAuth and OIDC systems are not just login endpoints. They are stateful control planes for tokens, revocation records, and user continuity. At this scale, migration design is itself an access-control problem, because a failed cutover can become an availability and authorization incident at once.

Practical implication: treat OAuth migrations as identity change events and test rollback, replay, and revocation integrity before shifting production traffic.

Why token expiry windows matter in large identity systems

Token expiry is not only a security setting. It is also a migration stabilizer when the platform must preserve live access while records are updated in bulk. By extending expiry windows during the cutover, the system reduced the chance that active sessions would be invalidated by the migration itself. That approach only works when the surrounding identity design can distinguish between legitimate session continuity and stale privilege. In practice, this is where authentication architecture, revocation handling, and session management overlap, and weak design in any one of them can create user disruption or access drift.

Practical implication: align token lifetimes, revocation logic, and change windows so operational migrations do not become accidental access outages.

What the performance numbers say about identity architecture

The reported 45% P95 latency reduction, 40% lower heap allocation, and 37% lower CPU use point to the same architectural lesson: identity platforms must be engineered as high-throughput infrastructure, not handled as an afterthought. When OAuth or OIDC becomes universal across a platform, small inefficiencies become constant overhead. Better identity design reduces compute cost while also narrowing the failure surface for every login, token issuance, and authorization decision. For organisations scaling user and machine access together, this is a reminder that identity performance is a resilience issue, not merely an optimisation target.

Practical implication: benchmark identity services under real transaction volume and treat latency, memory, and CPU as security-relevant operational controls.


NHI Mgmt Group analysis

Identity infrastructure has become core platform infrastructure, not a peripheral IAM layer. Cloudflare’s migration shows that when OAuth is extended across an entire user base, the identity service becomes part of the product’s operational backbone. That changes how teams should evaluate resilience, change management, and failover for authorization systems. The practitioner conclusion is straightforward: identity engineering and platform engineering now share the same blast radius.

Large-scale OAuth cutovers expose a hidden governance requirement: revocation integrity under transformation. The hard part is not only issuing tokens, but preserving the meaning of revocation while millions of records move, replay, and reconcile. This is where IAM programmes often separate “security state” from “migration state” and then discover they are the same thing. Practitioners should treat revocation continuity as a first-class migration control, not a post-cutover check.

Machine and human access now share the same identity substrate, so architecture choices must serve both. The article’s scale story matters because the same OAuth and OIDC plumbing increasingly supports user login, service-to-service access, and emerging agentic workflows. That convergence makes brittle identity design a cross-domain risk. The implication for teams is to review whether their current auth stack can carry both human and non-human access without special-case exceptions.

Scalability is now an access-governance issue, not just an engineering metric. Latency, memory use, and transaction volume directly affect whether identity controls can be applied consistently under load. If a platform only works when lightly used, it does not truly govern access at enterprise scale. The lesson for IAM leaders is to assess identity systems on operational headroom as well as policy correctness.

From our research:

  • 88.5% of organisations acknowledge that their non-human IAM practices lag behind or are merely on par with their human identity and access management efforts, according to The 2024 Non-Human Identity Security Report.
  • Only 19.6% of security professionals express strong confidence in their organisation's ability to securely manage non-human workload identities, which reinforces how fragile identity operations still are under scale.
  • For the control side of the problem, the Ultimate Guide to NHIs helps teams translate identity governance into lifecycle, rotation, and access review practice.

What this signals

Identity programmes that cannot survive bulk change are already under-governed. The Cloudflare case shows that the real test of IAM maturity is not whether a system authenticates users, but whether it can absorb large-scale change without revocation loss, stale sessions, or hidden access drift. Teams should expect migration resilience to become a board-level reliability question, especially where human and machine access share the same control plane.

Scale now exposes the gap between policy design and operational identity reality. If the platform cannot preserve state across millions of updates, the policy model is only partially trustworthy. That is why identity leaders should pair architecture reviews with lifecycle controls and load testing, then measure whether the auth layer still behaves predictably during cutover.

Identity blast radius is the new scaling metric. When OAuth is extended across a large ecosystem, the question is no longer only how many logins the platform can support. It is how much access-state disruption the programme can tolerate before authentication becomes a business continuity issue.


For practitioners

  • Test identity cutovers with production-like replay loads Run migration drills that include token expiry changes, queued event replay, revocation reconciliation, and rollback validation at real transaction volumes.
  • Verify revocation continuity across blue-green deployments Map how revocations, session state, and refresh tokens behave when records are moved between environments so active access does not outlive the intended policy state.
  • Measure identity platform headroom before expanding scope Benchmark P95 latency, heap allocation, CPU use, and database churn under peak authentication and authorization workloads before you extend OAuth to more users or systems.
  • Align human and machine access on the same auth controls Review whether login, service-to-service access, and future agent-based access all rely on the same token, revocation, and session governance model.

Key takeaways

  • The case shows that OAuth at enterprise scale is an infrastructure problem, not a narrow sign-in problem.
  • Cloudflare’s migration demonstrates that revocation integrity and session continuity must survive large identity transformations.
  • IAM teams should test cutovers, replay, and token governance under production load before expanding authentication scope.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST Zero Trust (SP 800-207), NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST Zero Trust (SP 800-207)The article is about identity enforcement and zero-trust-aligned access continuity at scale.
NIST CSF 2.0PR.AC-4Access permissions and revocation integrity are central to the migration story.
NIST SP 800-53 Rev 5AC-2Account and session lifecycle control is implicated by large OAuth migrations.

Use zero-trust principles to keep auth decisions continuous across migration states and environments.


Key terms

  • Blue-green identity migration: A blue-green identity migration keeps the old and new authorization paths running in parallel so access can move without a hard cutover. For IAM teams, it is a way to protect session continuity, revocation integrity, and rollback safety while the identity layer changes underneath live traffic.
  • Revocation Validation: Revocation validation is the process of checking whether a certificate or signing authority is still trusted at the moment of use. It matters because a document can appear technically valid while the underlying credential has already been withdrawn or compromised.
  • Identity Blast Radius: The amount of damage a compromised identity can cause across systems, data, and infrastructure. In NHI environments, it is shaped by permissions, network reach, and administrative capability rather than by the credential alone. Reducing blast radius is a containment strategy that limits lateral movement and data exposure.

What's in the full article

Ory's full blog post covers the operational detail this post intentionally leaves for the source:

  • Cloudflare's migration sequencing and blue-green deployment mechanics for OAuth state changes
  • Detailed breakdown of how Queue-backed replay preserved revocations and session continuity
  • The full before-and-after performance numbers for API latency, memory use, and CPU consumption
  • Implementation context for teams considering large-scale OAuth expansion across user populations

👉 The full Ory post covers the migration mechanics, performance gains, and rollout sequencing in more depth.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are responsible for identity security strategy or NHI governance in your organisation, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 18, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org