Repository navigation
Report failed settings writes in update-security-config and translate the SAML settings form - #38484
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 risk 1 closed / 1 findingsChanging failed settings writes to exceptions alters callers: security-config now exits nonzero instead of false success, while startup search merges catch failures and continue. Makes ✅ 1 closedClosed: Bug: Backend fix is a no-op: the base already threw; startup now swallows errors
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 |
UI browser testsRan: all test files (no impact map from main yet) Result: ✅ 1070 passed · 154 skipped Changed code executed by these browser tests: 1 / 22 lines (5%)
|
Describe your changes:
No issue for this PR: two fixes found while testing PR #38315 end to end. Backports: PR #38486 (2.1), PR #38487 (2.0).
1.
update-security-configreported success when a save failedSystemRepository.createOrUpdateanswered a failed write with a 500Responseinstead of throwing. The command ignored it and printed "updated": an authorizer withoutenableSecureSocketConnectionwas never stored, yet the command exited 0.createOrUpdatenow throws the failure (400 when the value is refused, 500 otherwise).2. Translate the whole SAML settings form
About 20 titles and help texts in
SAML_UI_SCHEMAwere English only. Each now usesi18next.tthrough a getter, likewantAssertionEncrypted, so the language is read when the form is built.label.entity-configuration. New keys (such aslabel.provider-entity-id,{{provider}} Entity IDfor IdP and SP) have a real translation in all 21 locales.label.enable-self-signup: the existinglabel.enable-ssoreads "Enable SSO" in most locales.Not here: an empty
providerNameblocking every security PATCH. Main and 2.1 already require it for custom OIDC only (PR #34961); the 2.0 backport carries that fix.Release note:
update-security-confignow logs the reason and exits with code 1 when a setting cannot be saved; before, it reported success. The SAML settings form is now translated.Type of change:
High-level design:
N/A, small changes.
Tests:
Unit tests
OpenMetadataOperationsSecurityConfigTest, real repository over stored rows: a valid file exits 0 and stores both settings; a refused certificate exits 1 and changes nothing; an authorizer that cannot be stored exits 1 and keeps the stored one (this case exits 0 without the fix).SystemRepository*,SettingsCache*,SystemResource*,SettingsWriteFunnelTest, SAML certificate tests).useSsoConfiguration.test.tsandSSOConfigurationForm.test.tsx. ESLint and Prettier clean;yarn i18nleaves the locales unchanged.Backend integration tests
SystemResourceIT(64) andSsoSamlIdpCertificateIT(8) pass locally.Playwright (UI) tests
Not run locally; the merge queue runs them.
UI screen recording:
Not applicable: localization of existing labels.
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.

Confidence Score: 5/5
The PR appears safe to merge; no actionable issues were found in this review.Summary
The PR makes failed settings writes throw instead of returning an ignored error response.
The change since the previous review only clarifies why the old exception handling missed failed writes. That explanation matches the code. No new actionable issues or repository-rule violations were found. Tests were not run during this review.
Reviews (2) · Last reviewed commit: "Name why a failed settings write reached..." · Reviewed by Greptile