Uploaded image for project: 'FlightPath'
  1. FlightPath
  2. FLPATH-2298

odf node recovery service account token does not allow metric query

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • odf-node-recovery
    • False
    • Hide

      None

      Show
      None
    • 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

              jgil@redhat.com Jordi Gil
              chadcrum Chad Crum
              Chad Crum Chad Crum
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: