Repository navigation
[2.0] Report failed settings writes, translate the SAML settings form and require providerName for custom OIDC only - #38487
Conversation
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
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 |
Code Review ✅ Approved 🟡 Medium riskShared 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 VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
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-configreported success when a save failedSystemRepository.createOrUpdateanswered a failed write with a 500Response, which the command ignored before printing "updated". It now throws the failure (400 when refused, 500 otherwise), soupdate-security-configlogs 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_SCHEMAusesi18next.tthrough a getter, with a real translation in all 20 locales of 2.0.3. An empty
providerNamemade every security config PATCH failopenmetadata.yamlsetsproviderNamefromCUSTOM_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 requiredproviderNamefor 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-confignow 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:
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.Backend integration tests
SamlSecurityConfigIT: a SAML configuration with an emptyproviderNamevalidates. 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:
Fixes <issue-number>: <short explanation>(no issue)Fixes #<issue-number>above. (no issue)REVIEW.md; no 🔴 finding.docs/decisions/2026-11-23-a-settings-write-that-fails-is-thrown.md; theproviderNamerule backports PR Fixes #28379: Keep existing Azure SSO configurations editable after upgrade #34961.

Confidence 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
providerNameonly for custom OIDC.Reviews (7) · Last reviewed commit: "Take main's settings write failure handl..." · Reviewed by Greptile