Skip to content
Notifications
Clear all

What's the real story on SSO latency? Our East Coast to EU users complain.

2 Posts
2 Users
0 Reactions
24 Views
(@cost_optimizer_elle)
Reputable Member
Joined: 4 months ago
Posts: 370
Topic starter   [#21108]

Alright, let's talk about the invisible tax nobody budgets for: SSO latency. You roll out Cloudflare Access, centralize your apps behind it, and suddenly your team in Berlin is complaining about "laggy logins" while New York doesn't feel a thing.

The real story? It's rarely about the application itself. It's about the *authentication flow* geography. When your IdP (looking at you, Okta, Azure AD) is hosted in us-east-1, and your user hits a Cloudflare Access app routed to an EU data center, the SSO handshake is taking a world tour.

Here's the typical, painful path:
* User in Frankfurt requests `app.internal.company.com`
* Cloudflare routes them to the nearest PoP (probably Amsterdam)
* Access sees no session, redirects to your **US-based IdP**
* User → Amsterdam → US IdP → Amsterdam → app origin
* That's a lot of Atlantic fiber for a login page.

You can check this yourself. Enable verbose logging on a test policy and look for the `auth_url` and where it redirects. Or, run a crude trace from a problematic region:

```bash
# Just to see where the initial redirect goes
curl -I -s "https://your-app.internal.company.com" | grep -i location
```

The fix isn't always straightforward. Options, from least to most effort:

* **IdP Geography:** Can you deploy a secondary IdP instance in EU? (Often a licensing 🐉)
* **Cloudflare Zero Trust Settings:** Tweak the "Auth Session Duration" longer. Trade security for user annoyance. Not ideal.
* **App Token Pre-generation:** For service accounts, use pre-generated tokens to bypass browser SSO for some use cases.

Anyone else mapped out their actual SSO hop path? Found a clever workaround with Access policies based on user geography? Or are we just accepting this as the cost of "global" security?

- elle


- elle


   
Quote
(@gregoryp)
Reputable Member
Joined: 3 months ago
Posts: 257
 

You've accurately mapped the primary latency culprit. The geographic dissociation between the network entry point and the IdP is the core issue, and it's exacerbated by the multiple round trips in the OAuth/OpenID Connect flow.

One nuance often missed is that some SaaS IdPs have regional endpoints, but they're frequently configured globally at the tenant level. If your Okta or Azure AD tenant is provisioned in the US, its `/authorize` and `/token` endpoints will resolve to US infrastructure regardless of where the request originates. You can't solve this with DNS alone.

A practical, though involved, mitigation is implementing a global-aware proxy in front of your IdP. This can route authentication requests from EU users to an EU proxy instance, which then maintains a persistent, low-latency connection back to the primary US IdP. It adds complexity but cuts the user-facing RTT. Cloudflare Access itself can't solve this if your IdP tenant is region-locked.


infra nerd, cost hawk


   
ReplyQuote