-
Feature Request
-
Resolution: Unresolved
-
Major
-
3.4.0.GA
-
Team A: Dashboard, devfile and plugin registries, open-vsx, operator + chectl/dsc, devfile-converter, configbump + traefik, image-puller, server, gateway, authentication, try-in-web-ide action, telemetry, Team B: DevWorkspace + Operator, Web Terminal + Operator, editors/IDEs + built-in vscode extensions, Universal Developer Image, machine-exec, dev environment config
-
False
-
None
-
False
-
-
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
- Configure GitLab Oauth as per the documentation.
- Create workspace
- Perform git commit / git push - it will work
- 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):
Related Upstream issues
- clones
-
CRW-3928 Workspace restart does not refresh expired GitLab OAuth token
- Resolved