Distro News

Fedora PoC explores migrating dist-git from Pagure to Forgejo

Key Takeaway

Fedora is testing a migration of its repository hosting to Forgejo, requiring a custom permission model to replicate Pagure's complex access controls.

Summary

The Fedora Project has released findings from a proof of concept (PoC) aimed at migrating its dist-git infrastructure from Pagure to Forgejo. This transition is not a simple repository swap; it involves recreating a highly specific permission system that has evolved over years within the Fedora ecosystem.

The PoC analyzed a snapshot of 43,425 projects, revealing significant challenges such as a 39.1% orphan rate in the RPM namespace and highly concentrated ownership among top maintainers. The technical effort focuses on mapping Pagure's unique access levels to Forgejo's primitives while ensuring that critical automation tools like Bodhi and Packit can continue to function.

Technical challenges in permission mapping

  • Permission Model Divergence: The PoC must bridge Pagure's three access levels (admin, commit, ticket) and its concept of a 'main admin' with Forgejo's roles (admin, write, read) and organization-based teams.
  • Custom Maintainer Role: To prevent individual users from gaining full admin rights, a proposed Forgejo patch introduces a specific 'maintainer' role that provides code write access but lacks authority over branch protection or webhooks.
  • ACL Workflow Automation: Access Control List (ACL) changes are moved from direct API calls to GitHub-style Actions workflows, where operations like adding a co-maintainer are handled via workflow dispatches.
  • Namespace Mapping: The design proposes mapping Fedora namespaces (rpms, modules, flatpaks, containers, tests) directly to Forgejo organizations, with membership synchronized from Fedora Account System (FAS) via OIDC.
  • API Compatibility Requirements: A full cutover requires updating downstream services including Bodhi, Packit, and Koji, as the PoC replaces Pagure's specific APIs (hascommit, modifyacls) with new workflow-based mechanisms.

Why it matters

If implemented, this migration would modernize Fedora's development infrastructure by leveraging Forgejo's features while maintaining strict security through automated ACL workflows. However, the transition requires significant updates to the broader Fedora automation ecosystem to ensure continuous integration and package management stability.

Original reference: communityblog.fedoraproject.org →