feat(service-monitor): support bearer token authentication on metrics endpoint #719
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/secure-metrics-endpoint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Benefits
Can protect metrics endpoint with
Bearer
token authentication provided by gitea.see PR #637 for previous discussion.
Possible drawbacks
No possible drawbacks
Applicable issues
Additional information
Using above configuration is sufficient to secure /metrics endpoint with bearer token and corresponding ServiceMonitor.
Checklist
values.yaml
and added to theREADME.md
using readme-generator-for-helmBreaking changes are documented in theNot applicableREADME.md
Signed-off-by: Hitesh Nayak hiteshnayak305@gmail.com
The tests in
unittests/config/metrics-section_metrics-token.yaml
are missing following case which currently fails as the token is configured even whenmetrics.enabled=false
:Shouldn't it be not
optional
if the token is configured within Gitea?