promtool: Add TLSClientConfig to query subcmd#8082
promtool: Add TLSClientConfig to query subcmd#8082mrueg wants to merge 1 commit intoprometheus:mainfrom
Conversation
|
Thanks for your pull request. I think that instead of supporting passwords on the command line, promtool should take a yaml config file as input, with the same TLS client config options as Prometheus. |
|
Just to make sure that I understand correctly, which passwords are you referring to? The difference between prometheus and promtool is also: prometheus being a service (and thus it makes sense to have a config) while the promtool is meant to be a cli (where I feel a config-only solution might make it more difficult to use). |
I don't follow you: certificates are already files and difficult to use. I think it does not make sense to only support certificates, and not basic auth, proxy, etc... But maybe we can have more opinions than mine. @simonpasquier is the actual maintainer of Promtool and shall have the last word on this. |
|
We should also consider amtool, we should try to avoid duplicating security-related code. |
|
@mrueg This is really neat feature that would allow to support prometheus that requires mtls. can you take a look at the conflicts when you have few moments ? |
Unfortunately won't have time to work on it or test it in the next months. |
300ce3e to
12acdba
Compare
|
@parinapatel found some time to rebase on latest main. |
1518792 to
043d1b9
Compare
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
|
We have looked at this pull request during our bug scrub.
Thank you for your contribution. |
This adds client cert support to promtool query subcmd, allowing queries against a prometheus server.
Usage:
Fixes: #8081