Resolve "Geo: JWT token expiration too short"
What does this MR do and why?
Increase Geo's JWT expiration, in particular for large Git repositories with a lot of refs that take too long during the info/refs
request phase of Git fetch. This is causing Geo replication authentication to fail for repos with too many refs.
Resolves #464101 (closed)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Set up Geo
- Increase Gitaly timeouts on both primary and secondary sites
- Insert a line
sleep 120
at https://gitlab.com/gitlab-org/gitlab/-/blob/c89636ff9abc460d8da7b2224442fc3fe4e9c181/app/controllers/repositories/git_http_controller.rb#L22 on the primary site - With the secondary site running on master, then Git repository syncs will fail
- With the secondary site running on this MR's branch, then Git repository syncs will succeed
Related to #464101 (closed)
Edited by Michael Kozono