-
Bug
-
Resolution: Done
-
Undefined
-
None
-
None
-
False
-
-
False
-
-
Description of the problem:
Using the service account token does not authorize me to view the odf node recovery metrics with curl.
How reproducible: 100%
Steps to reproduce:
1. Run odf node recovery pod using ubi 8 with debug (to access curl)
2. Get mounted token of service account
TOKEN=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)
3. Curl pod or svc metrics path use token
curl -k -H "Authorization: Bearer $TOKEN" http://10.129.2.60:8080/metrics
Actual results:
Authorization denied for user system:serviceaccount:openshift-operators:odf-node-recovery-operator-controller-manager
Expected results:
Metrics are shown