Restrict mirroring settings to admins #10467

Open
opened 2025-11-02 09:08:12 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @fpoirotte on GitHub (Mar 21, 2023).

Feature Description

Hi,

We host several repositories for our own usage as well as for various consumers.
As site administrators, we would like to mirror some remote repositories while preventing regular users from setting up their own mirroring configuration.

Right now, best workaround we found was to enable mirrors globally, but to use DISABLE_NEW_PULL and DISABLE_NEW_PUSH to control when new mirrors can be defined.

This is tedious (disable DISABLE_NEW_*, add the new mirror using the UI, then re-enable DISABLE_NEW_* to prevent other users from adding their own configuration).
This is also not a perfect solution (while we are setting up the new mirror, regular users may still have time to add their own configuration).

Would it be possible to only allow site administrators to configure new mirrors?

Regards,
François

Screenshots

No response

Originally created by @fpoirotte on GitHub (Mar 21, 2023). ### Feature Description Hi, We host several repositories for our own usage as well as for various consumers. As site administrators, we would like to mirror some remote repositories while preventing regular users from setting up their own mirroring configuration. Right now, best workaround we found was to enable mirrors globally, but to use `DISABLE_NEW_PULL` and `DISABLE_NEW_PUSH` to control when new mirrors can be defined. This is tedious (disable `DISABLE_NEW_*`, add the new mirror using the UI, then re-enable `DISABLE_NEW_*` to prevent other users from adding their own configuration). This is also not a perfect solution (while we are setting up the new mirror, regular users may still have time to add their own configuration). Would it be possible to only allow site administrators to configure new mirrors? Regards, François ### Screenshots _No response_
GiteaMirror added the type/proposaltype/feature labels 2025-11-02 09:08:12 -06:00
Author
Owner

@poVoq commented on GitHub (Mar 24, 2023):

Restricting it by team membership would be also interesting.

@poVoq commented on GitHub (Mar 24, 2023): Restricting it by team membership would be also interesting.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10467