Fixes and documentation for session routing in GDK
The following discussion from gitlab-org/cells/http-router!233 (merged) should be addressed:
-
@tkuah started a discussion: (+5 comments) Try if it works with GDK
Testing this is quite difficult. Lots of things to setup.
TODO: Document this.
- Update
../gitlab-topology-service/config.toml
to use thecell-1
's addressaddress = "gdk.test:12001" session_prefix = "cell-1"
- Update
../gitlab-cells/cell-1/gdk.yml
to disablegitlab_topology_service
, and also to set a session prefix to match:gitlab: rails: session_store: session_cookie_token_prefix: cell-1 gitlab_http_router: enabled: false gitlab_topology_service: enabled: false
gdk restart gitlab-topology-service
gdk cells cell-1 reconfigure
gdk cells cell-1 restart
-
cd ../gitlab-http-router
, and then switch to this branch cd -
- Edit
Procfile
to add--var GITLAB_RULES_CONFIG:session_prefix
to thegitlab-http-router
line. gdk restart gitlab-http-router
- Run
gdk tail gitlab-http-router
to show logs - Add a
force-cell
cookie with valuecell-1
. This should make the router start to classifycell-1
, and then route togdk.test:12001
instead. - Login using a username and password that can log into cell-1.
- Delete the
force-cell
cookie. We should still be routed togdk.test:12001
. - (Optional) Set
unique_cookie_key_postfix
tofalse
- Update
TODO: Document/FIX GDK
Edited by Bojan Marjanovic