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.0.x] Alerting: Fix edit / view of webhook contact point when no authorization is set #71972

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

grafana-delivery-bot[bot]
Copy link
Contributor

Backport 6d1ff7f from #71965


The authorization configuration for a webhook is optional, it was incorrectly typed in a91de30 and thus causes a crash when a user tries to view a contact point that included a webhook configuration without the authorization property.

This is mostly limited to alertmanager configurations loaded from a file as creating a webhook receiver via the UI will set an empty authorization object.

@gillesdemey gillesdemey enabled auto-merge (squash) July 19, 2023 17:26
@gillesdemey gillesdemey merged commit e4e170f into v10.0.x Jul 19, 2023
16 checks passed
@gillesdemey gillesdemey deleted the backport-71965-to-v10.0.x branch July 19, 2023 17:34
@zerok zerok modified the milestones: 10.0.x, 10.0.3 Jul 24, 2023
@BogdanRS
Copy link

BogdanRS commented Aug 2, 2023

Is this fixed? I have a case where I am trying to use the webhook URL for a Slack contact point and when i test it, I'm getting the error "Fail to send request POST....unsupported protocol scheme". With version 10.0.2 it works, no problem. Or maybe it is a different issue.

@erpadmin
Copy link

@BogdanRS can confirm the issue you have described on 10.0.3. Using a confirmed working webhook URL (tested via curl) and test leads to an error
image

@erpadmin
Copy link

confirming the alert works after downgrade to 10.0.2 (docker) , whether or not its specific to this merge there seems to be a regression between .2 and .3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

4 participants