github RayLabsHQ/gitea-mirror v3.57.0

54 minutes ago

Features

  • Move mirrors to match your settings (#581, closes #550, thanks @zwimer). Changing the mirror strategy or an organization's destination only applied to new mirrors. The Organization Structure card now says when existing mirrors sit somewhere else, and Review and move shows what will move where, what is blocked and why, before anything changes. Mirrors are transferred on the destination, so nothing is deleted or downloaded again. Gitea and Forgejo destinations only.
  • Two-factor authentication with an authenticator app (#577, closes #552, thanks @zwimer). Set it up from the account menu under 2FA, which also gives you ten backup codes. It covers the email and password login. bun run disable-2fa -- --email=... turns it off for someone who lost both the phone and the codes.
  • Wait before acting for repository cleanup (#575, closes #549, thanks @zwimer). The Repository Cleanup card can wait a number of days before archiving or removing a repository whose source is gone. If the source comes back during the wait, nothing happens. Also CLEANUP_ORPHANED_REPO_GRACE_DAYS.
  • Repository cleanup notifications (#573, closes #554, thanks @zwimer). A new switch under Notification Events sends one notification per cleanup run listing what it archived or removed. Off by default. Webhooks get the new type repo_cleanup.
  • Security advisories can be mirrored as issues (#574, closes #561, thanks @zwimer). With Security advisories on under Metadata to mirror, each published GitHub security advisory becomes an issue labeled security-advisory and is kept up to date. Needs a GitHub source. Off by default, also MIRROR_SECURITY_ADVISORIES.
  • Pre-release limit (#570, closes #560 and #538, thanks @zwimer and @MajMcCloud). With pre-releases on, At most keeps the newest N pre-releases and gives the other places to stable releases, so nightly builds no longer push real releases out. Also RELEASE_PRERELEASE_LIMIT.
  • Same as other repos for starred repositories (#571, closes #551, thanks @zwimer). Starred repositories can follow the mirror strategy like everything else. Also STARRED_REPOS_MODE=follow-strategy.
  • Several statuses at once in the Repositories page's status filter (#582, closes #580, thanks @zwimer). Tick any statuses, or Select all and untick one. Each status shows its count, and the address keeps the choice as ?status=mirrored,synced.

Security

  • Only the instance owner, the first account created, can manage SSO providers (GHSA-c6c2-hr73-h7hw, #566, thanks @naroSEC and @lml20000827). Any signed-in account could add a provider for another user's email domain and get linked into that user's account. Providers another account added earlier stop working for sign-in until the owner edits and saves them. Accounts linked through one of them are signed out once, their OAuth tokens are deleted and their API keys turned off.
  • Only the instance owner can create and manage OAuth applications (#569). Another account could create one with a familiar name and its own redirect address, and collect a token from anyone who approved it. Deleting an application now also ends the tokens it gave out.

Fixes

  • A repository that isn't ours is never deleted or archived (#579). A mirror run deleted a regular repository that had the name it needed; it now leaves it alone and fails with a message saying what to do. Repository cleanup with Apply to the destination too could act on a repository that was not the orphan's mirror; it now only acts on one it has confirmed mirrors that source.
  • Hitting GitHub's rate limit during a mirror, sync or retry started from the UI no longer shuts the app down (#565, closes #557, thanks @zwimer and @nyrixx).
  • A job that keeps taking the app down is no longer resumed on every restart (#568, closes #564, thanks @nyrixx). Jobs left by a crash resume right at startup, and one resumed 3 times without progress is marked failed.
  • The Repository Cleanup card has the Apply to the destination too switch (#567, closes #558, thanks @zwimer). It was only available as CLEANUP_DELETE_FROM_GITEA.
  • Repository cleanup during a scheduled sync ignored Protected repositories and sent no notification. It now runs the same cleanup as Run now (#575).
  • Creating an OAuth application with a refused redirect URL answers 400 with the reason instead of a 500 (#578), and PUT /api/sso/applications can change an application, where every change was refused (#569).

Changes

  • GitHub App sources reuse GitHub's free "not modified" answers, as sources with a token already did, so scheduled syncs spend far less of the installation's rate limit (#563, thanks @cypherbits).
  • Dependency updates for the open image scan alerts, including Better Auth 1.7.7 (#572).

Notes

  • If other people have accounts on your instance, look at the SSO providers after upgrading. Providers they added are marked and stay off until you edit and save them; delete any you don't recognise.

As always, back up your Gitea before upgrading.

Full changelog: v3.56.1...v3.57.0

Don't miss a new gitea-mirror release

NewReleases is sending notifications on new releases.