Bug 1897630
| Summary: | The metrics endpoint for openshift-monitoring / prometheus is not protected by RBAC | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Dave Baker <dbaker> |
| Component: | Monitoring | Assignee: | Pawel Krupa <pkrupa> |
| Status: | CLOSED DUPLICATE | QA Contact: | Junqi Zhao <juzhao> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.6 | CC: | alegrand, anpicker, dgrisonn, erooth, kakkoyun, lcosic, pkrupa, spasquie |
| Target Milestone: | --- | Keywords: | EasyFix |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-05-25 15:42:26 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
*** This bug has been marked as a duplicate of bug 1964334 *** |
Description of problem: - The prometheus metrics endpoint is not protected by RBAC, leading to anonymous external users being able to scrape metrics information about the cluster. - See also BZ: 1889488 ("The metrics endpoint for the Scheduler is not protected by RBAC") Version-Release number of selected component (if applicable): - Tested on 4.4.27, 4.5.18 How reproducible: - Always Steps to Reproduce: 1. Install OCP 2. curl -k https://prometheus-k8s-openshift-monitoring.apps.CLUSTERID.example.com/metrics Actual results: - metrics are shown Expected results: - No data should be shown as an unauthenticated user Additional info: