-
Notifications
You must be signed in to change notification settings - Fork 73
OCPBUGS-59768: metrics endpoints security - add client cert auth to kube-rbac-proxy #1061
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
base: main
Are you sure you want to change the base?
Conversation
…ube-rbac-proxy **Problem:** OLM metrics endpoints were exposed without proper authentication, allowing unauthorized access to sensitive operational data. **Root Cause:** kube-rbac-proxy configuration was missing critical authentication arguments: - `--client-ca-file` - `--auth-mode=rbac` **Solution:** - Add missing authentication arguments to kube-rbac-proxy in package-server-manager - Mount client CA certificate from new `metrics-client-ca` ConfigMap - Update ServiceMonitor to use `scrapeClass: tls-client-certificate-auth` - Create ConfigMap with service CA injection for automatic CA bundle sync **Security Impact:** - **Before:** Any HTTPS client could access metrics endpoints - **After:** Only authorized Prometheus service account (`system:serviceaccount:openshift-monitoring:prometheus-k8s`) can access metrics
@anik120: This pull request references Jira Issue OCPBUGS-59768, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: anik120 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
Looks like the cluster failed to launch in the previous failure because of infra issues /retest |
@anik120: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Problem:
OLM metrics endpoints were exposed without proper authentication, allowing unauthorized access to sensitive operational data.
Root Cause:
kube-rbac-proxy configuration was missing critical authentication arguments:
--client-ca-file
--auth-mode=rbac
Solution:
metrics-client-ca
ConfigMapscrapeClass: tls-client-certificate-auth
Security Impact:
system:serviceaccount:openshift-monitoring:prometheus-k8s
) can access metrics