XMLWordPrintable

    • False
    • None
    • False
    • 0
    • 0% 0%

      Description of problem:

      GitLab OAuth tokens expire after 2hours. The only available workaround is to restart the workspace to force the token refresh. This unfortunately doesn't really make the good developer experience, since we are forcing them to do these restarts potentially 4-5x per working day. We should strive for good developer experience (which is one of the main selling point of the product) and automated token refresh does contribute towards that.

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

      Steps to Reproduce

      1. Configure GitLab Oauth as per the documentation.
      2. Create workspace
      3. Perform git commit / git push - it will work
      4. wait 2hr+ and perform git push again - it will fail with expired token error message

      Actual results:

      GitLab Token expires after 2hrs resulting into inability to perform any git operations inside the workspace

      Expected results:

      Dev Spaces operator should take care of automatically renewing expired tokens using the GitLab API:
      https://docs.gitlab.com/ee/api/oauth2.html#access-gitlab-api-with-access-token

      Reproducibility (Always/Intermittent/Only Once):

      always

      Build Details:

      Dev Spaces 3.4

      DevWorkspace 0.19.1

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

            mloriedo Mario Loriedo
            rhn-support-agiertli Anton Giertli
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: