Add Prometheus bearer token authentication#212
Conversation
|
Thank you for your pull request. Before we can look at it, you'll need to sign a Contributor License Agreement (CLA). Please follow instructions at https://icinga.com/company/contributor-agreement to sign the CLA. After that, please reply here with a comment and we'll verify. Contributors that have not signed yet: @n35k3nd1r Details
|
|
Related pull request Icinga/icinga-kubernetes-web#177 |
|
CLA signed |
|
@cla-bot check |
|
@lippserd Could you take a look when you have time? |
Adds support for authenticating against Prometheus with a bearer token or token file.
This keeps the existing basic auth support, but makes basic auth and bearer token auth mutually exclusive.
The daemon can now read
prometheus.tokenorprometheus.token_file, persist locked Prometheus config values, and use them for Prometheus API requests. The web module adds the matching configuration fields.Feature Request: #211