Skip to content

Resolve "Geo: JWT token expiration too short"

Michael Kozono requested to merge 464101-geo-jwt-token-expiration-too-short into master

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

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.

  1. Set up Geo
  2. Increase Gitaly timeouts on both primary and secondary sites
  3. 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
  4. With the secondary site running on master, then Git repository syncs will fail
  5. With the secondary site running on this MR's branch, then Git repository syncs will succeed

Related to #464101

Edited by Michael Kozono

Merge request reports