https://jira.coreos.com/browse/AUTH-298 We should not emit metrics that are globally readable. The operators should be easy to fix via the library-go code (re-enable delegated auth). Cluster Authentication Operator
PR - https://github.com/openshift/cluster-authentication-operator/pull/123 I have done the following testing: Make sure that /metrics endpoint is not accessible for an unauthenticated user. If I access the /metrics endpoint using curl as shown below I get the following 403 error curl -k https://$(kubectl get service metrics -o json | jq -r .spec.clusterIP)/metrics "message": "forbidden: User "system:anonymous" cannot get path "/metrics"", "reason": "Forbidden", I checked 'prometheus-k8s-openshift-monitoring', looks like all 'AuthenticationOperator2_*' metrics are collected after delegated auth is turned on.
https://github.com/openshift/cluster-authentication-operator/pull/123
verified on 4.1.0-0.nightly-2019-05-04-210601 sh-4.4# curl -k https://172.30.89.103/metrics { "kind": "Status", "apiVersion": "v1", "metadata": { }, "status": "Failure", "message": "forbidden: User \"system:anonymous\" cannot get path \"/metrics\"", "reason": "Forbidden", "details": { }, "code": 403 }
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:0758