You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pkg/cvo/metrics: Do not require auth when --hypershift is set
In 313f8fb (CVO protects /metrics with authorization, 2025-07-22, #1215) and
833a491 (CVO protects /metrics with authorization, 2025-07-22, #1215), the
/metrics endpoint began requiring client auth. The only
authentication system was Bearer tokens, and the only authorization
system was validating that the token belonged to
system:serviceaccount:openshift-monitoring:prometheus-k8s.
That worked well for standalone clusters, where the ServiceMonitor
scraper is the Prometheus from the openshift-monitoring namespace.
But it broke scraping on HyperShift [1], where the ServiceMonitor does
not request any client authorization [2]. Getting ServiceAccount
tokens (and keeping them fresh [3]) from the hosted cluster into a
Prometheus scraper running on the management cluster is hard.
This commit buys time to sort out a HyperShift metrics authentication
strategy by wiring the existing --hypershift option to code that
disables the authentication requirement in that environment.
Standalone clusters will continue to require prometheus-k8s
ServiceAccount tokens.
0 commit comments