Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-8287

Non-admin user can't fetch list of workspaces into JetBrains Gateway using Dev Spaces Plugin

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Release Notes
    • Hide
      = Non-admin users can't fetch list of workspaces with the JetBrains Gateway plugin

      There is currently a known issue affecting workspaces created by non-admin users and the JetBrains Gateway plugin. If you create workspaces in Dev Spaces as a non-admin user and use the same account to access Dev Spaces locally on your computer through the JetBrains Getaway plugin, the fetched list of workspaces will be empty. There is currently no workaround available.
      Show
      = Non-admin users can't fetch list of workspaces with the JetBrains Gateway plugin There is currently a known issue affecting workspaces created by non-admin users and the JetBrains Gateway plugin. If you create workspaces in Dev Spaces as a non-admin user and use the same account to access Dev Spaces locally on your computer through the JetBrains Getaway plugin, the fetched list of workspaces will be empty. There is currently no workaround available.
    • Known Issue
    • Done

      Description of problem:

      Workaround

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

      Steps to Reproduce

      1. Install Dev Spaces 3.19.0.RC-19
      2. Open Dev Spaces page in browser and log into User Dashboard as non-admin user and create few workspaces
      3. On a local laptop log into OpenShift instance with Dev Spaces as non-admin user
      4. Open JetBrains Gateway, connect to the Dev Spaces instance and fetch list of workspaces (see documentation https://eclipse.dev/che/docs/stable/end-user-guide/idea-ultimate/)

      Actual results:

      There was no workspaces shown in the JetBrains Gateway

      Expected results:

      JetBrains Gateway shows list of non-admin user workspaces

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Acceptance criteria: 

       
      Definition of Done:

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

      idea.log
      2025-02-27 19:27:09,366 [ 325517]   INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.SdkEntity to files
      2025-02-27 19:27:09,367 [ 325518]   INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.LibraryEntity to files
      2025-02-27 19:27:11,887 [ 328038]   INFO - STDERR - Exception in thread "Thread-55" io.kubernetes.client.openapi.ApiException: 
      2025-02-27 19:27:11,888 [ 328039]   INFO - STDERR - 	at io.kubernetes.client.openapi.ApiClient.handleResponse(ApiClient.java:973)
      2025-02-27 19:27:11,888 [ 328039]   INFO - STDERR - 	at io.kubernetes.client.openapi.ApiClient.execute(ApiClient.java:885)
      2025-02-27 19:27:11,888 [ 328039]   INFO - STDERR - 	at io.kubernetes.client.openapi.apis.CustomObjectsApi.listNamespacedCustomObjectWithHttpInfo(CustomObjectsApi.java:4312)
      2025-02-27 19:27:11,888 [ 328039]   INFO - STDERR - 	at io.kubernetes.client.openapi.apis.CustomObjectsApi.listNamespacedCustomObject(CustomObjectsApi.java:4185)
      2025-02-27 19:27:11,888 [ 328039]   INFO - STDERR - 	at com.redhat.devtools.gateway.openshift.DevWorkspaces.list(DevWorkspaces.kt:35)
      2025-02-27 19:27:11,888 [ 328039]   INFO - STDERR - 	at com.redhat.devtools.gateway.view.steps.DevSpacesRemoteServerConnectionStepView.doRefreshAllDevWorkspaces(DevSpacesRemoteServerConnectionStepView.kt:139)
      2025-02-27 19:27:11,888 [ 328039]   INFO - STDERR - 	at com.redhat.devtools.gateway.view.steps.DevSpacesRemoteServerConnectionStepView.refreshAllDevWorkspaces$lambda$10(DevSpacesRemoteServerConnectionStepView.kt:112)
      2025-02-27 19:27:11,888 [ 328039]   INFO - STDERR - 	at java.base/java.lang.Thread.run(Thread.java:1583)
      
      $ oc get pods -A
      Error from server (Forbidden): pods is forbidden: User "****" cannot list resource "pods" in API group "" at the cluster scope
      

      It was affected DevSandbox.

      • OS: Fedora
      • JetBrains Intellij IDEA Ultimate 2024.3.4
      • JetBrains Gateway 2024.3.3
      • OpenShift Dev Spaces plugin 0.0.7
         

         *

              azatsary Artem Zatsarynnyi
              dnochevn Dmytro Nochevnov
              Jana Vrbkova Jana Vrbkova
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: