Adds root redirect feature

What does this MR do and why?

This MR is fixing the problem from gitlab-com/gl-infra/tenant-scale/cells-infrastructure/team#237 (closed)

  • Adds root redirect feature
  • Adds root_redirect to application settings,
  • when enabled, it will send updated status response and cache-control header.

Changelog: added

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

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.

Screenshots or screen recordings

Before After

How to set up and validate locally

prerequisite: https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/howto/cells.md

  1. Checkout the branch
  2. Follow the video and gitlab-com/gl-infra/tenant-scale/cells-infrastructure/team#237 (closed) steps to reproduce it
  3. Enable the root_redirect feature from Admin UI or rails console
  4. Verify that redirect works as expected 🎉
Edited by Bojan Marjanovic

Merge request reports

Loading