Skip to content

Use primary ssh_url_to_repo for geo proxied ssh clone url

What does this MR do and why?

Use geo primary's site ssh_url_to_repo for clone url dialog when the request is proxied.

From the issue: #404496 (comment 1344484402)

As a workaround, I'd suggest

  • When the request is proxied and served by the primary site, compare the primary site gitlab_ssh_host and the secondary's site external_url.
  • If they are different (as they would be for this current issue), use primary's gitlab_ssh_host to create a clone url (because gitlab_ssh_host is the same for both sites)
  • If not, keep the current approach and create a clone url using secondary's site external_url.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #404496 (closed)

Edited by Mariia Solodovnik

Merge request reports