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) Testing
Try if it works with GDK
Testing this is quite difficult. Lots of things to setup.
TODO: Document this.
- Update
../gitlab-topology-service/config.tomlto use thecell-1's addressaddress = "gdk.test:12001" session_prefix = "cell-1" - Update
../gitlab-cells/cell-1/gdk.ymlto 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-servicegdk cells cell-1 reconfiguregdk cells cell-1 restart-
cd ../gitlab-http-router, and then switch to this branch cd -- Edit
Procfileto add--var GITLAB_RULES_CONFIG:session_prefixto thegitlab-http-routerline. gdk restart gitlab-http-router- Run
gdk tail gitlab-http-routerto show logs - Add a
force-cellcookie with valuecell-1. This should make the router start to classifycell-1, and then route togdk.test:12001instead. - Login using a username and password that can log into cell-1.
- Delete the
force-cellcookie. We should still be routed togdk.test:12001. - (Optional) Set
unique_cookie_key_postfixtofalse
- Update
TODO: Document/FIX GDK
Edited by Bojan Marjanovic