Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v10.4.x] SSO: fix mergeSettings() in case the DB contains empty URLs #84344

Merged
merged 1 commit into from Mar 13, 2024

Conversation

grafana-delivery-bot[bot]
Copy link
Contributor

Backport 2acd48d from #84290


What is this feature?

Previously, the empty URLs from the DB settings were not replaced by the URLs defined in the system settings. This was an issue for providers that require clients to send empty values for auth_url, token_url and api_url. The expectation in that case was that the auth_url, token_url and api_url would get their values from the system settings but that didn't happen if clients sent empty values for those settings. It worked only if clients didn't send them at all.

Why do we need this feature?

This is a fix for the escalation https://github.com/grafana/support-escalations/issues/9668.

Who is this feature for?

For everybody using SSO Settings API.

Which issue(s) does this PR fix?:

Fixes #

Special notes for your reviewer:

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

* fix mergeSettings() in case the db contains empty strings

* use correct github urls in test

* overwrite only urls

* update comment for mergeSettings()

(cherry picked from commit 2acd48d)
@grafana-delivery-bot grafana-delivery-bot bot requested a review from a team as a code owner March 13, 2024 08:32
@grafana-delivery-bot grafana-delivery-bot bot added this to the 10.4.x milestone Mar 13, 2024
@grafana-delivery-bot grafana-delivery-bot bot added area/backend backport A backport PR no-changelog Skip including change in changelog/release notes type/bug labels Mar 13, 2024
@dmihai dmihai requested a review from a team March 13, 2024 08:36
@dmihai dmihai merged commit 2710732 into v10.4.x Mar 13, 2024
21 checks passed
@dmihai dmihai deleted the backport-84290-to-v10.4.x branch March 13, 2024 11:51
@mdvictor mdvictor modified the milestones: 10.4.x, 10.4.1 Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/backend backport A backport PR no-changelog Skip including change in changelog/release notes type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants