-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Feature] Rule: Add authentication for alertmanagers #606
Comments
@bwplotka I'm willing to work on it but would need to get some guidance on how to do this (configuration, ways of auth and so on). Only workaround I can think of is adding proxy which would provide header with bearer token to all outgoing requests which sounds like a hack :/ |
I think, since Prometheus have it we should stick to this to be close possible with Prometheus expierience, as we internally reuse same code usually (if not, we should - we sometimes don't due to package config leaking). So essentially:
Now with configuration, I am not sure. As you said with flags we would be limited to common options for all AM - this might be limited. Maybe we need to switch to something like |
Yeah, config file with the structure of # Alerting specifies settings related to the Alertmanager.
alerting:
alert_relabel_configs:
[ - <relabel_config> ... ]
alertmanagers:
[ - <alertmanager_config> ... ] With https://prometheus.io/docs/prometheus/latest/configuration/configuration/#alertmanager_config |
Also you mentioned rotation of certs. |
Let's get back to this (: I think I would vote for having Which is exactly as AC stated above |
Thanks @bwplotka, I'm planning to work on this and will be sending a PR soon. |
I was thinking about something like this:
|
Great! 🎉 Thanks @simonpasquier 👍 |
It would be great to add possibility to authenticate to Alertmanagers from Rule node when sending alerts the same way as Prometheus allows.
With current configuration using
--alertmanagers.url
it would have to be common authentication configuration for all those AM I suppose.Prometheus now supports authentication using client certificate, BasicAuth and bearer token.
I'm not saying there should be all of them but at least one of them would be great.
The text was updated successfully, but these errors were encountered: