Repository navigation
Description
Problem
Since #4264 (dcf4a6ad9, merged 2026-10-11 17:02Z, not in any release yet), one organization's unreadable SSO configuration breaks SSO sign-in discovery for every organization on the deployment.
What changed: readSsoConnection (backend/domains/sso/config.ts:45-66) used to return null for any unreadable connection.yml (if (!result.ok) return null;). It now throws SsoConnectionReadError for every failure except not_found (:57-63). That suits the organization's own settings page, which admin.ts:477 maps to a 409. But three loops call it once per organization, with no catch:
Loop (config.ts) |
Caller | Result when any one organization's file is unreadable |
|---|---|---|
getSsoDiscoveryStatus :95-126 |
public GET /discovery/configured (admin-routes.ts:71-73) |
the request fails |
listSelectableSsoConnections :130-156 |
public GET /discovery/selectable (admin-routes.ts:74-76) |
the request fails |
loadSingleEnabled :73-87 |
resolveSignInConfig / resolveSamlConfig without an organization (:158-165, the single-org sign-in path) |
the sign-in config can't be resolved |
On the login page (routes/_auth/log-in.tsx):
:131readsssoConfig?.enabled, and:442shows the SSO button only when it is true. A failed discovery read hides Sign in with SSO for every organization's users.- The SSO step (
:427-434) showslogin.ssoNoOrganizations, "No organizations are available for sign-in…", as an alert. That is bug(platform): the SSO sign-in step says "No organizations are available" while its list loads or after it fails to load #4606's path, now with a deployment-wide trigger.
How a file becomes unreadable: a hand edit, a partial write, a file over MAX_FILE_SIZE_BYTES, or an upgrade whose validateSsoConnectionData refuses an older file. In each case the users of every other organization lose SSO sign-in, and nothing on their side explains why. Password sign-in is unaffected.
No test covers this. admin-routes.discovery.test.ts has no case for an unreadable file in another organization.
Expected
-
The all-organization loops skip, and log once, a connection that can't be read, as they did before fix(platform): surface unreadable SSO configuration #4264. Only that organization's own settings page reports it (the existing 409
sso_config_unreadable). -
Regression: with two organizations, one healthy and one whose
connection.ymlfails validation:/discovery/configuredreports the healthy one as enabled;/discovery/selectablelists it;- an org-less sign-in config still resolves for a single healthy connection.
On
aec031867all three fail.
Severity and owner
- Severity: high, until it's fixed or excluded from the next release. One tenant's file takes SSO sign-in away from every tenant. It is on
mainonly: it merged after the v0.5.86 tag2cd2c1374. - Owner: platform (SSO), the author of fix(platform): surface unreadable SSO configuration #4264.
- Related: bug(platform): Teams, Notifications and Enterprise SSO settings hide a failed read (endless skeleton, all toggles on, blank form) #4653 (fix(platform): surface unreadable SSO configuration #4264 also changes the Enterprise SSO page's failed-read state; see the addendum there) and bug(platform): the SSO sign-in step says "No organizations are available" while its list loads or after it fails to load #4606.
- Found by: Review A (TALE-358), 2026-10-12 04:15 Zurich occurrence. It's a post-merge recheck of fix(platform): surface unreadable SSO configuration #4264 by static reading at
aec031867, with the pre-fix(platform): surface unreadable SSO configuration #4264 reader compared bygit diff dcf4a6ad9^ dcf4a6ad9. I didn't run it: Review A's stack is BLOCKED.
Activity
yannickmonney commentedon Oct 12, 2026
Still on
mainbefore the next release (Review A, TALE-358, 2026-10-12 16:15 Zurich occurrence; read at 14:16–14:17Z).backend/domains/sso/config.tsatmain4cde0834ais the same as when this issue was filed. The all-organization loops still don't catchSsoConnectionReadError, and no fix PR is linked..github/release-notes/v0.5.87.md) and v0.5.87 isn't published yet. As things stand, v0.5.87 would be the first release to ship this regression from fix(platform): surface unreadable SSO configuration #4264. The notes don't mention it.yannickmonney commentedon Oct 12, 2026
Review A recheck (TALE-358, 2026-10-12 20:15 Zurich occurrence): fixed on
mainc94f1fd84. I read the merged source statically and checked the CI run on that exact commit; no live stack was used.otherOrgsHaveEnabledConnections(backend/domains/sso/admin.ts:459),loadSingleEnabled(config.ts:96),getSsoDiscoveryStatus(:122) andlistSelectableSsoConnections(:159). Each callsreadSsoConnectionForDiscovery, which swallows onlySsoConnectionReadError(config.ts:71-81).config.ts:178,:226,admin.ts:476andconnectors/sso-reuse.ts:43. No other caller loops over organizations with the strict reader.admin-routes.discovery.test.ts(35 tests) ran uncached and passed inmain's Checks run 38287683781 (job "Unit (platform 2/2)", 114939862107, turbo MISS)..github/release-notes/v0.5.87.md:11). As this issue noted, the regression came with fix(platform): surface unreadable SSO configuration #4264 after the v0.5.86 tag, so people upgrading from v0.5.86 never saw it. Consider dropping the bullet or saying it fixes a regression in unreleased code.