Skip to content

Fix: prevent panic in validateAlertmanagerConfig on nil interface values - #7751

Merged
SungJin1212 merged 1 commit into
cortexproject:masterfrom
SungJin1212:master
Aug 10, 2026
Merged

Fix: prevent panic in validateAlertmanagerConfig on nil interface values#7751
SungJin1212 merged 1 commit into
cortexproject:masterfrom
SungJin1212:master

Conversation

@SungJin1212

Copy link
Copy Markdown
Member

This PR fixes a bug in validateAlertmanagerConfig which could cause a panic when encountering nil interface values.

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]
  • docs/configuration/v1-guarantees.md updated if this PR introduces experimental flags

@friedrichg friedrichg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

This is a backport candidate for 1.21.1

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Aug 9, 2026
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
@SungJin1212
SungJin1212 merged commit e450d52 into cortexproject:master Aug 10, 2026
73 of 75 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/alertmanager lgtm This PR has been approved by a maintainer size/M type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants