Add OAuth logic for Workspaces HTTP Server
Issue: Add OAuth for traffic on Workspaces HTTP server (#733 - closed)
Description
Add OAuth logic for Workspaces HTTP Server.
Steps to verify
- Generate certs for workspaces domain in your GDK directory -
DOMAIN="workspaces.localtest.me" mkcert -key-file $(DOMAIN).key -cert-file $(DOMAIN).crt "*.$(DOMAIN)" - Start GDK on
vtak/workspaces_server_setupbranch. - Reconfigure and restart GDK -
gdk reconfigure && gdk restart. - Start GitLab on
vtak/agentw_integration_testbranch. - Start GitLab Agent Server(KAS).
- Start GitLab Agent for Kubernetes(agentk).
- Create a workspace.
- Browse
https://60001-workspace-4-1-n8dl59.workspaces.localtest.me:3555/(Replaceworkspace-4-1-n8dl59with an actual workspace name created above). - Verify the response is
Hello from Workspaces Server! Welcome, user:{id:1} ! Tunneling your request to workspace:{id:30 port:60001}. (Theidwill vary in your response).
Screen Recording
Workspace found and not found
Screen_Recording_2025-08-04_at_5.24.52_PM
Query params are not modified on OAuth redirects
Screen_Recording_2025-08-07_at_3.02.42_PM
Query params are preserved on OAuth redirects even if they contain the transfer token and/or transfer error from the user
Edited by Vishal Tak