Skip to content

v3.62.0

Choose a tag to compare

@arunavo4 arunavo4 released this 30 Nov 03:12
· 6 commits to main since this release

Security

  • A mirror turns private when its source does (#636, GHSA-xwcj-2r6m-pxrh, thanks @tiennm99). A repository's visibility was stored once, when it was imported. If it was public then and made private later, its mirror stayed public and kept receiving the now private commits, so anyone who could read the destination could read them. Each scheduled run now notices repositories that turned private and makes their mirrors private right away, ignored repositories included. Every sync checks again before it pulls, and when the destination refuses the change the sync stops and says why. GitHub and GitLab destinations get the same checks before a push. The Activity Log shows a Made the mirror private entry. It only goes one way: a mirror is never made public. See Visibility.
  • A new source token reaches the existing mirrors on Gitea 1.27 and later (#640). A pull mirror keeps the token it was created with, so after a source's token was replaced with one that sees less, Gitea could still pull a repository the new token could not read, including one that had turned private. The app now records when a source's token changes, including a source deleted and added again, and gives the new token to that source's mirrors right away. You no longer need to enter it in each mirror's settings by hand. Forgejo and older Gitea cannot take a new token through the API; there, a mirror whose repository the new token no longer finds is made private. See When a token changes.
  • A leftover test endpoint is removed (#635). POST /api/cleanup/auto started the hourly activity log cleanup for every account that had it turned on and due, and any signed-in account could call it. It could only remove entries that were already past their retention. Run now on the Database Maintenance card does the same for your own account.
  • The repository now has a SECURITY.md that says how to report a vulnerability and what we look for in a report.

Features

  • Size limit for starred repositories (#638, thanks @eliasfloreteng). Starring a big project such as a browser or a kernel rarely means you want a backup of it, and a few of them could fill a small host. Size limit under starred repositories on the Configuration page, or STARRED_MAX_SIZE_MB, sets a limit in MB. Starred repositories above it are not imported, and ones imported before it was set are left out of auto-mirroring and Mirror All but can still be mirrored one at a time. Empty means no limit, and mirrors that already exist keep syncing.

Fixes

  • Mirrored pull requests lost their details on a later sync (#628, thanks @zwimer). When GitHub answered with an error for a pull request's details, commits or changed files, the sync replaced the full issue on Gitea or Forgejo with a short version, and [MERGED] or [CLOSED] dropped out of the title. A copy that has the full version now keeps it, and only its title, state and milestone are brought up to date.
  • Notification cards of different heights (#634). The two cards on the Notifications tab are now the same height and their footers line up.

Changes

  • No more purple on the Configuration page (#641). Switches, the selected option cards, badges and a few buttons were indigo, a color nothing else in the app uses. They now use the app's own black and white. Color stays where it means something: status colors, the syncing tone, the Storage bar and the role and type dots.
  • Settings rows stack on phones (#639). A row with a dropdown, number box or button puts the control under its label on a narrow screen, so the text keeps the full width. Switches stay on the right.
  • The Force-Push Protection docs said a branch deleted on the source never reaches the mirror. Gitea removes it at the next sync; the docs now say so.

Notes

  • A database migration adds two columns that record which token each mirror holds. It runs on its own at startup.
  • On Gitea 1.27 and later, the first scheduled run after the upgrade gives each existing mirror its source's current token once, one request per mirror to your Gitea.

As always, back up your Gitea before upgrading.

Full changelog: v3.61.4...v3.62.0