Skip to content

Stop Wiki clone when Wiki is disabled

David O'Regan requested to merge 357788-wiki-clone-deploy-key into master

What does this MR do and why?

A small MVC for https://gitlab.com/gitlab-org/gitlab/-/issues/357788 where we alter the Wiki git_access to ensure a Wiki cannot be cloned when the Wiki feature is disabled in Project Settings.

Screenshots or screen recordings

N/A

How to set up and validate locally

  1. Start the GDK
    > gdk start
  2. Visit any Project settings such as http://localhost:3000/flightjs/Flight/-/edit
  3. Disable the Wiki
  4. Add a deploy key
  5. Attempt to clone the wiki
  6. You should not be able to clone the Wiki with the feature disabled

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 #357788

Merge request reports