Skip to content

[2.0] Report failed settings writes, translate the SAML settings form and require providerName for custom OIDC only - #38487

Merged
manerow merged 8 commits into
2.0from
fix/sso-config-save-fixes-2.0
Nov 23, 2026
Merged

manerow merged 8 commits into
2.0from
fix/sso-config-save-fixes-2.0

Conversation

@manerow

@manerow manerow commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Backport of PR #38484 to 2.0, plus one 2.0-only fix. No issue for this PR. 2.1 backport: PR #38486. Related: PR #38315 (main) and its 2.0 backport PR #38317.

1. update-security-config reported success when a save failed

SystemRepository.createOrUpdate answered a failed write with a 500 Response, which the command ignored before printing "updated". It now throws the failure (400 when refused, 500 otherwise), so update-security-config logs the reason and exits 1. The startup merge of default search settings catches it and keeps the stored settings, as before. This branch includes the merged PR #38317, and these parts match main.

2. Translate the whole SAML settings form

Same change as on main: every title and help text in SAML_UI_SCHEMA uses i18next.t through a getter, with a real translation in all 20 locales of 2.0.

3. An empty providerName made every security config PATCH fail

openmetadata.yaml sets providerName from CUSTOM_OIDC_AUTHENTICATION_PROVIDER_NAME, empty by default, because only custom OIDC's sign-in button shows it. So every configuration seeded from the deployment for another provider (SAML, Azure, Google, Okta, Auth0, LDAP) stores it empty. On 2.0 every PATCH validates the whole configuration and required providerName for every provider, so each PATCH answered 400 "Provider name is required" until the name was set. Configurations created in the UI were not affected, because the form fills the name.

Main and 2.1 fixed this in PR #34961: the name is required for custom OIDC only. This backports that rule. The empty value is valid for the other providers, so no data migration is needed.

Release note (2.0.10): update-security-config now logs the reason and exits with code 1 when a setting cannot be saved; before, it reported success. Saving SSO settings no longer fails when a provider other than custom OIDC has no provider name. The SAML settings form is now translated.

Type of change:

  • Bug fix

High-level design:

N/A, small changes.

Tests:

Unit tests

  • OpenMetadataOperationsSecurityConfigTest: a valid file exits 0; a refused certificate or an authorizer that cannot be stored exits 1 and keeps what was stored.
  • SystemRepositoryProviderNameTest: an empty name passes for SAML and LDAP (fails without the fix) and is still refused for custom OIDC.
  • 79 backend tests pass. UI: Jest 12 suites, 182 tests; ESLint and Prettier clean.

Backend integration tests

  • SamlSecurityConfigIT: a SAML configuration with an empty providerName validates. 10 of 10 passed locally before the latest 2.0 merge; CI runs it now.

Playwright (UI) tests

Not run locally; the merge queue runs them.

UI screen recording:

Not applicable: localization of existing labels and a validation fix.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation> (no issue)
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above. (no issue)
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • Self-review: I reviewed the final diff against REVIEW.md; no 🔴 finding.
  • Decision check: adds docs/decisions/2026-11-23-a-settings-write-that-fails-is-thrown.md; the providerName rule backports PR Fixes #28379: Keep existing Azure SSO configurations editable after upgrade #34961.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no new actionable issues were found.

Summary

This PR makes failed settings writes throw, translates the SAML form, and requires providerName only for custom OIDC.

  • Failed settings writes now reach the caller instead of looking successful.
  • Only custom OIDC settings require a provider name.
  • SAML settings now show translated labels and help text.

Reviews (7) · Last reviewed commit: "Take main's settings write failure handl..." · Reviewed by Greptile

@manerow
manerow requested review from a team as code owners November 23, 2026 12:06
@manerow
manerow requested review from sonika-shah and sweta1308 and removed request for a team November 23, 2026 12:06
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@gitar-bot

gitar-bot Bot commented Nov 23, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Shared settings writes now throw failures, while non-custom providers may omit providerName; failed configuration updates can stop instead of falsely reporting success.

Reports failed settings writes through update-security-config instead of printing success, translates the SAML settings form across all 20 locales, and requires providerName only for custom OIDC. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@manerow
manerow merged commit 901527d into 2.0 Nov 23, 2026
83 of 90 checks passed
@manerow
manerow deleted the fix/sso-config-save-fixes-2.0 branch November 23, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant