Repository navigation
Description
readSsoConnection converts every readDomainConfigFile failure to null. getSsoConnectionView interprets null as an absent connection and returns HTTP 200 with configured:false, enabled:false and empty fields. The admin page displays the new-connection form with no configuration-read error.
Reproduced against 44e0dcf254975286c0e9dea443b5cd1ca6b23347. Suggested severity: P2.
Reproduction
- In a local test organization with a stored SSO connection, make its connection.yml unreadable, for example an incomplete YAML sequence: protocol: [oidc.
- Open Settings > Enterprise SSO, or read GET /api/app/sso/config?orgId=.
- Inspect the form and response.
Expected: Distinguish a missing connection from an existing configuration that cannot be parsed. Return a readable error and show that the saved connection needs repair.
Actual: readSsoConnection converts every readDomainConfigFile failure to null. getSsoConnectionView interprets null as an absent connection and returns HTTP 200 with configured:false, enabled:false and empty fields. The admin page displays the new-connection form with no configuration-read error.
Impact: An operator investigating broken SSO is told that no connection is configured, concealing the actual file/parse failure and directing them toward setup rather than repair.
Evidence
With the retained malformed connection.yml present, the actual admin router returns 200 configured:false/enabled:false/protocol:null, and the real settings form displays an empty Issuer URL and the default Microsoft Entra ID name. The malformed file remains unchanged.
Executed from /tmp/tale-audit-settings-44e0dcf2:
/Users/yannick/.npm/_npx/22f2fe8d8bc13000/node_modules/.bin/bun x --no-install vitest run --config /Users/yannick/.codex/notes/tale-100-findings/access-settings-proof/sso-batch1.vitest.config.ts --maxWorkers=1 --reporter=verbose --silent=falseObserved result: 5 passed (5), exit 0, in 4.17 seconds. Frozen observation/control proof: access-settings-proof/sso-batch1.test.tsx, config and sso-batch1.log.
Controls:
- A genuinely absent file returns the expected unconfigured view.
- A valid native connection returns configured:true, enabled:true and its stored display name.
- Malformed required input and unauthorized writes do not change persisted configuration.
Source
Scope and deduplication
- The actual EnterpriseSsoSettings/Form, shared editor, hooks, backend adapter registry, HTTP client, Hono SSO admin router, session/org membership middleware, role ability gate, admin domain and native file store run. A closed fetch dispatcher serves only the local SSO config paths and refuses connection-test paths.
- A synthetic session and SQL tag provide only organization/membership rows and advisory-lock acknowledgements. SCIM read state and unrelated audit writes are fixtures; the actual config persists in a fresh retained TALE_CONFIG_DIR under global notes. This is not a real PostgreSQL lock/concurrency test.
- Trusted-header and embedding sibling cards are omitted. No real credentials, real authentication changes, live provider, OAuth flow, external request, production or browser was used. A deployment-env warning may be visible independently; the finding concerns the missing configuration-read error.
- Searched 931 all-state titles and the current accepted ledger for SSO unreadable, corrupt, config, load, error and unconfigured. No matching current admin-read issue was found.
- This is independent of generic list-error display: the native admin API itself reports a successful empty configuration. Existing tests protect corrupt secret-sidecar reads and save refusals, but this non-secret configuration read still loses the error. Parent owns live dedup.
Independent parent verification: reran all five native-router/component/file-store tests at the pinned SHA, all passed. The live all-state SSO mappings search only returned the earlier generic-provider feature, and the SSO corrupt-config search returned no matching issue. No real PostgreSQL or live identity-provider behavior is claimed by this fixture. Log: access-settings-proof/parent-sso-batch1.log.
Activity