Skip to content

Draft: Unlink fork relationships when archiving group

What does this MR do and why?

Unlink fork relationships when archiving group

Add background job to asynchronously unlink fork relationships for all projects when a group is archived. This prevents malicious merge requests from being smuggled into archived projects through fork relationships.

  • Create Namespaces::UnlinkProjectForksWorker for async processing
  • Add destroy_fork_network_on_group_archive feature flag
  • Process projects in batches of 10 to avoid memory issues
  • Add comprehensive test coverage (22 examples)

Changelog: added

References

Screenshots or screen recordings

Before After

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading