AlertmanagerConfig: add support for httpHeaders in httpConfig#8353
Open
anshul23102 wants to merge 2 commits intoprometheus-operator:mainfrom
Open
AlertmanagerConfig: add support for httpHeaders in httpConfig#8353anshul23102 wants to merge 2 commits intoprometheus-operator:mainfrom
anshul23102 wants to merge 2 commits intoprometheus-operator:mainfrom
Conversation
Member
|
Hi @anshul23102 as was discussed on the issue the ideia is to split the work into some parts As I manifested on the issue the intention of pick the first change related to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds support for configuring custom HTTP headers via
httpHeadersinhttpConfigforAlertmanagerConfig.Upstream Prometheus Alertmanager supports setting arbitrary HTTP headers
(such as
X-API-Key) through thehttp_headersfield inhttp_configforwebhooks and other HTTP-based receivers. However, the Prometheus Operator
AlertmanagerConfigCRD did not expose this functionality, making itimpossible to use header-based authentication mechanisms when managing
Alertmanager through the operator.
This change introduces first-class support for custom HTTP headers in the
AlertmanagerConfig CRD, bringing it closer to parity with upstream
Alertmanager and enabling common real-world use cases such as API key–based
authentication for webhook receivers.
Closes: #8341
If you're contributing for the first-time, check our contribution guidelines.
Type of change
CHANGEFEATUREBUGFIXENHANCEMENTNONEVerification
make test).make generate,make manifests).Alertmanager configuration via updated golden file tests.
Changelog entry