Repository navigation
Description
The form seeds attribute mapping fields only for SAML and its OIDC save payload omits claimMappings. The native upsert rebuilds the OIDC configuration, so omission removes the mappings from connection.yml.
Reproduced against 44e0dcf254975286c0e9dea443b5cd1ca6b23347. Suggested severity: P2.
Reproduction
- Configure a Generic OIDC connection with valid claimMappings, for example email=profile.email, name=profile.full_name and groups=roles, through the supported config/admin API.
- Open Settings > Enterprise SSO and change only Display name.
- Save, then read the connection configuration again.
Expected: An unrelated settings edit preserves the existing OIDC claim mappings unless the administrator explicitly changes or clears them.
Actual: The form seeds attribute mapping fields only for SAML and its OIDC save payload omits claimMappings. The native upsert rebuilds the OIDC configuration, so omission removes the mappings from connection.yml.
Impact: Providers that use nonstandard email, name or group claims can stop identifying members correctly after an administrator merely renames the connection. The runtime’s Generic OIDC adapter consumes these saved mappings; no live sign-in was attempted.
Evidence
The native fixture initially stores all three OIDC mappings. The actual form’s display-name save sends no claimMappings; native readback has no mappings afterward. The client ID and existing secret remain unchanged, isolating the loss to omitted configuration.
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:
- The same form preserves SAML email/name/groups attribute mappings on an unrelated rename.
- Required-field validation returns 400 and a member-role write returns 403 without changing the native file.
- The normal OIDC save preserves the stored client identity and secret.
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, OIDC, mapping, form and settings. No matching current claim-mapping roundtrip issue was found.
- Bug: Switching a configured SSO connection's protocol with a blank Client secret passes client validation, then the backend throws an untranslated raw Error #2057 concerns missing-secret validation on a protocol switch; Bug: Form validation parity — create-task title, API-key name, project-secret name, and team name lack client max-length/trim, so server rejections surface as generic toasts (dialog stuck) or persist unbounded #1991 concerns API-key/task/team name validation; Improvement: Settings low-severity gaps (custom-instructions illegal-char parity, last-member silent refusal, Disconnect no loading state, dead ?section=apps param, MCP name slug/server validation) #2091 names unrelated settings gaps. These are not this data-loss path. Parent owns full-body/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