Unlocking the Cloudflare app ecosystem with OAuth for all
2 similar posts
- Hydra
- Cloudflare Queues
- Wrangler
AI Summary
Cloudflare details how it scaled its OAuth infrastructure to support self-managed OAuth for all customers. The engineering team discusses upgrading the open-source Hydra OAuth engine through sequential 1.X and 2.X upgrades, rewriting database migrations to prevent exclusive table locks, utilizing a blue-green deployment strategy, implementing Cloudflare Queues to preserve revocation events during cutovers, and handling refresh token behavior changes.
Key Takeaways
- Migrated from an older Hydra open-source OAuth deployment to newer versions.
- Rewrote database migrations using CREATE INDEX CONCURRENTLY and explicit columns instead of SELECT *.
- Used a blue-green deployment strategy combined with Cloudflare Queues to prevent losing token revocation events during migration.
Why it matters
This article offers valuable architectural insights into performing zero-downtime, large-scale database and service upgrades for critical authentication infrastructure while balancing consistency, performance, and user impact.
Conversation0
What would you add from your experience?
Checking your session…
Every good conversation starts with one perspective.