Uploaded image for project: 'Red Hat OpenShift Data Science'
  1. Red Hat OpenShift Data Science
  2. RHODS-5099

Randomly logged in as kube:admin to RHODS dashboard

XMLWordPrintable

    • RHODS 1.17

      Description of problem:

      While using the RHODS dashboard logged in as a test user, I suddendly found myself logged in as `kube:admin` without having ever logged out of my user.
      The GET request for status in the network tab of the browser does indeed show me as kube:admin

      {
         "kube":{
            "currentContext":"inClusterContext",
            "currentUser":{
               "name":"inClusterUser",
               "authProvider":{
                  "name":"tokenFile",
                  "config":{
                     "tokenFile":"/var/run/secrets/kubernetes.io/serviceaccount/token"
                  }
               }
            },
            "namespace":"redhat-ods-applications",
            "userName":"kube:admin",
            "clusterID":"abd3747f-ea7b-4dcf-86bb-5083661bbfbe",
            "clusterBranding":"dedicated",
            "isAdmin":false,
            "isAllowed":true
         }
      } 

       

       

      However kube:admin does not even exist in my cluster as a user (I'm on OSD)

       

      I'm attaching all dashboard pods logs if they can be useful, however I didn't find anything in there when looking for kube:admin or similar.

      Prerequisites (if any, like setup, operators/versions):

      Latest RHODS 1.16 live build on OSD

      Steps to Reproduce

      1. Unknown, happened randomly. rhn-support-bdattoma also reported seeing something similar on one of his clusters

      Actual results:

      Randomly logged in as a user who doesn't exist on the cluster

      Expected results:

      Always logged in as the user I chose

      Reproducibility (Always/Intermittent/Only Once):

      Intermittently

      Build Details:

      quay.io/llasmith/odh-operator-container-live:1.16.0-dashboard-kfnbc on OSD

      Workaround:

      Additional info:

              lferrnan@redhat.com Lucas Fernandez Aragon
              rhn-support-lgiorgi Luca Giorgi
              Luca Giorgi Luca Giorgi
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: