Skip to content
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

Add option to enable authentication using Bearer tokens #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sirkrypt0
Copy link
Collaborator

By enabling the bearerEnabled setting, authentication on the metrics
endpoint using valid Bearer tokens can now be enforced. A client requesting
the metrics endpoint must set the Authorization: Bearer header with a valid
token obtained from Keycloak. The token must originate from the realm configured
by the realm setting (defaults to master) and must have the role configured
in the role setting (defaults to prometheus-metrics).

@sirkrypt0 sirkrypt0 force-pushed the feature/bearer-authentication branch 2 times, most recently from 8015ff9 to c38c506 Compare May 28, 2022 11:26
@sirkrypt0 sirkrypt0 force-pushed the feature/bearer-authentication branch from c38c506 to 08898bd Compare April 30, 2023 19:49
By enabling the `bearerEnabled` setting, authentication on the metrics
endpoint using valid Bearer tokens can now be enforced. A client requesting
the metrics endpoint must set the `Authorization: Bearer` header with a valid
token obtained from Keycloak. The token must originate from the realm configured
by the `realm` setting (defaults to `master`) and must have the role configured
in the `role` setting (defaults to `prometheus-metrics`).
Security should be enabled by default in projects. We hence
enforce that any of the available authentication options are
configured before delivering the metrics as a response.
If none of the authentication options are viable, authentication
can be disabled all together, although that is surely not
recommended.
@sirkrypt0 sirkrypt0 force-pushed the feature/bearer-authentication branch from 08898bd to 655893e Compare August 8, 2023 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant