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

Workspace restart does not refresh expired GitLab OAuth token

XMLWordPrintable

    • False
    • None
    • False
    • Hide

      `stop` and `start` refreshes the token (`restart` does not)

      Show
      `stop` and `start` refreshes the token (`restart` does not)

      Description of problem:

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

      Steps to Reproduce

      1. Configure GitLab Oauth as per the documentation.
        1. CheCluster CR:
      gitServices:
        gitlab:
        - endpoint: 'customer private gitlab server'
           secretName: secret-name
      1. Open a workspace with private GitLab repo
      2. Git push - to make sure token works
      3. Wait 2hrs+
      4. Git push - git push fails
      5. Workspace restart
      6. Git Push still fails

      We checked personal-access-token secret inside user's namespace and its value stays the same between restarts.

      Actual results:

      Expired Token does NOT get refreshed after Workspace restart

      Expected results:

      Expired Token DOES GET refreshed after Workspace restart

      Reproducibility (Always/Intermittent/Only Once):

      always

      Build Details:

      Dev Spaces 3.4

      DevWorkspace 0.18.1

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

        1. image-2023-02-15-08-20-36-176.png
          66 kB
          Michael Yarbrough
        2. image-2023-02-15-08-20-49-094.png
          51 kB
          Michael Yarbrough
        3. image-2023-02-15-09-17-31-743.png
          212 kB
          Michael Yarbrough
        4. image-2023-02-16-14-18-14-596.png
          148 kB
          Michael Yarbrough
        5. restart-workspace-gitlab.mov
          18.44 MB
          Anton Giertli
        6. screencast-bpconcjcammlapcogcnnelfmaeghhagj-2023.02.16-14_33_25.mp4
          4.90 MB
          Valerii Svydenko
        7. screencast-bpconcjcammlapcogcnnelfmaeghhagj-2023.02.22-09_07_39.webm
          10.98 MB
          Michael Yarbrough

              vsvydenk Valerii Svydenko
              rhn-support-agiertli Anton Giertli
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: