1003 Commits

Author SHA1 Message Date
Arunavo Ray
92f7279554 chore: bump version to 3.59.2 v3.59.2 2026-11-28 13:25:27 +05:30
ARUNAVO RAY
51ad4dc90f fix(cleanup): check starred rows with starred import off, clearer cleanup and storage text (#599, #600, #601) (#602)
Cleanup skipped every row flagged starred while starred import was off,
so a deleted source behind one was never found. It now reads the star
list for them and looks up the ones no longer starred: a deleted source
counts as gone, an unstar alone does not.

The destination switch on the Repository Cleanup card moves right under
the action and is named after it. The Storage page says it counts only
the mirrors gitea-mirror manages.
2026-11-28 13:25:08 +05:30
Arunavo Ray
c22e417eb1 chore: bump version to 3.59.1 v3.59.1 2026-11-28 08:26:53 +05:30
ARUNAVO RAY
413aa0b95a fix(releases): keep link assets without a size, and the Keep latest box (#595, #596) (#598)
#596: Forgejo lists a release asset added as a link with size 0. The
copy on the destination has the real size, so the size check never
matched and every sync deleted the copy, downloaded the file and
uploaded it again; a failed download left the release without it. A
source size of 0 now means "not given": a copy with the same name counts
as mirrored, duplicates still go, and the log says "size not given by
the source" instead of "0 bytes".

#595: All releases / Keep latest always needs a number, but clearing it
snapped back to 10 while the note said empty means no limit. The box
now holds what is typed, saves any whole number of 1 or more, and puts
the saved value back when left empty. The note says only the other
boxes can stay empty, and the empty Pre-releases / Keep latest box says
"all" like the rest.
2026-11-28 08:26:37 +05:30
Arunavo Ray
0dbbc3628a chore: bump version to 3.59.0 v3.59.0 2026-11-27 11:25:25 +05:30
ARUNAVO RAY
9c6efe7a06 chore: drop the beta label from tested sources, Forgejo and LFS (#594)
GitLab and Gitea / Forgejo sources (Codeberg included), the Forgejo
destination and Git LFS mirroring have had three months of use and fixes
since they shipped (#440, #506 and others), so they lose the BETA pill
and the "Beta." line under the dropdowns.

The Git URL source (two weeks old) and the GitHub and GitLab push
destinations (no field reports yet, and they overwrite the copy on
every sync) stay in beta. isBetaSourceProvider and
isBetaDestinationProvider now check explicit lists instead of "anything
but the default".

The site, docs, README and FAQ say the same, and the Configuration and
destination screenshots are retaken without the old pills.
2026-11-27 11:25:04 +05:30
ARUNAVO RAY
2a755ca037 feat(config): import settings from an exported file (#587) (#593)
Import settings, next to Export settings, reads the exported JSON back
in. A preview lists what would change before anything is saved, then
Import applies it.

- Settings merge key by key; anything the file does not mention stays.
- New sources are added; ones that log in arrive turned off until their
  token is entered. Existing sources keep their token.
- Organizations and repositories are matched by source and name and get
  the file's choices. Rows not imported yet are listed, so the file can
  be imported again after Import repositories. Repeating is safe.
- Credentials are never read from a file. A saved token whose address
  moves to another host is cleared and listed to enter again.
- Same checks as a save: schema validation, the outbound guard on new
  addresses, and a locked destination needs confirmation (409).

POST /api/config/import does the same for scripts. The export now keeps
sources in the order they were added, so the first source stays first
after a round trip, and no longer repeats the first source's connection
under githubConfig. A test does the round trip from the issue: export,
import into a fresh instance, enter the tokens, export again, same file.
2026-11-27 11:15:25 +05:30
ARUNAVO RAY
b96e85bb94 feat(config): export the settings as a JSON file (#587) (#592)
* feat(config): export the settings as a JSON file (#587)

Export settings at the top of the Configuration page, and
GET /api/config/export for scripts, return the settings as JSON for a
backup that can live in git.

The file holds the sources (provider, URL, username, enabled, and how
each logs in), every stored settings section under its stored name,
every organization with its source, included or ignored, destination
and mirror options, and the repositories with a choice of their own.
?repositories=all lists every tracked repository, since repositories
added one at a time are not marked as such.

Left out: tokens, passwords, secrets, GitHub App keys, webhook URLs
(Slack and Discord put the credential in the URL), user:password in any
URL, the last and next run times, sync status, errors, sizes, ids and
timestamps, plus accounts, SSO providers, API keys and OAuth apps.

Keys and lists are sorted and nothing depends on when the file was
made, so two exports of unchanged settings are identical. There is no
import yet.

* fix(config): strip the whole user:password from exported URLs

withoutUserInfo stopped at the first "@" and at whitespace, so
https://bob:p@ss@host exported as https://ss@host and a password with a
space was kept whole. A URL parser ends the user info at the last "@"
before the path, query or fragment, so cut there. A string that does not
parse can still hold a password with "/", "?" or "#" in it, so there the
cut is at the last "@" anywhere.

* fix(config): let the URL parser find the user info in exported URLs

The string cut missed forms a URL parser accepts: leading spaces, extra
or missing slashes, backslashes, and tabs or newlines inside the user
info. Parse the value, clear the user name and password, and rebuild it
from the parse. Only a string that starts like a URL but does not parse
is still cut at its last "@".
2026-11-27 09:31:51 +05:30
ARUNAVO RAY
9f9a755c73 feat(releases): cap how many pre-releases get assets (#588) (#591)
* feat(releases): cap how many pre-releases get assets (#588)

Projects that ship a run of release candidates put a changelog in every
candidate. The pre-release limit from #560 drops whole releases, notes
included, and the asset limit counts pre-releases and stable releases
together, so there was no way to keep every candidate's notes while
only the newest few keep their builds.

prereleaseAssetLimit caps how many of the releases that get assets may
be pre-releases, newest first. A pre-release past the cap is mirrored
with its notes and tag only, and its place with assets goes to the next
older release: an asset limit of 8 with a cap of 3 gives assets to the
three newest pre-releases and the five newest stable releases. Empty
keeps the old behaviour and 0 gives no pre-release assets. Remove old
release assets prunes by the same set. It has no effect with Stable
only.

It sits under the Pre-releases switch as "Assets for the newest N
pre-releases", in the per organization and repository dialog as
"Pre-releases with assets", and in the environment as
RELEASE_PRERELEASE_ASSET_LIMIT.

releasesWithAssets replaces releaseGetsAssets, which had no other
callers.

* feat(config): put the release numbers in one table

The four release numbers were split across two layouts: the release and
asset limits floated on the right of the Releases row with labels that
did not line up, and the two pre-release caps sat below as sentences.
They now share one table under Releases & tags, with Keep latest and
With assets columns and rows for all releases and pre-releases. The
Pre-releases switch is a checkbox in its row, which shows Skipped when
cleared, and Remove old release assets is a checkbox at the bottom of
the table, since it acts on the With assets numbers. The row height
stays the same either way, and the columns narrow on phones.

The Releases select in the Mirror options dialog was w-36 while every
other control is w-32, so it stuck out to the left. "Stable only" fits
in w-32.

Docs, the use-case page and the FAQ now use the new labels, and the
use-case page points at the Mirroring tab instead of Connections.

* feat(config): size the release table's label column to its content

The label column took all the spare width, which pushed the number boxes
to the right and left an empty corner above All releases. Size it to its
content so the boxes sit next to their labels, and head the column with
Per repository, which is what the numbers count.

* feat(config): name the release overrides like the release table

The Mirror options dialog now says Releases to keep, Releases with
assets, Pre-releases to keep and Pre-releases with assets, the same
words as the release table on the Configuration page.
2026-11-27 09:22:55 +05:30
ARUNAVO RAY
fa493d2da6 fix(cleanup): check public only sources instead of skipping them (#589) (#590)
Repository cleanup asked a source with no token for the account's own
repositories. On Gitea and Forgejo with an empty username that went to
/users//orgs, failed with a 404 on every run, logged that the account
might be deleted or banned, and skipped the source, so a repository
deleted there was never noticed. GitHub failed the same way with a 401.

Cleanup now treats a tokenless source the way import and the scheduler
do: no personal listing. It lists the organizations added to the source
that still hold one of its repositories, and every other repository on
it goes to the existing direct lookup, which only treats a clean 404 as
gone. Starred rows on such a source are left alone.

Gitea and GitLab sources refuse to build a /users/{name}/ listing for an
empty name. The sources docs no longer say a tokenless source lists the
user's public repositories, which stopped being true in #411.

Also makes the run now test's dates relative: its next run was
hardcoded to 2026-11-27 and the test started failing today.
2026-11-27 09:12:59 +05:30
ARUNAVO RAY
c87c7e784f docs: dark screenshots next to the light ones (#586)
* docs: refresh the .github/assets copies the RayLabsHQ profile hotlinks

* docs: dark copies of the README screenshots

* docs: dark screenshots for the gallery, part one

* docs: dark screenshots for the gallery and docs, part two

* docs: dark screenshots next to the light ones

The README, the homepage gallery, the docs and the use cases now show
dark screenshots in dark mode. The README uses <picture> with
prefers-color-scheme, like the Star History chart. The website follows
its own theme toggle, which sets .dark on <html>, so each place renders
both images and shows one with dark: classes.

The dark set is taken from the same demo data and the same clock as the
light one. The .github/assets copies of the organisation, activity and
configuration screenshots are refreshed too, since the RayLabsHQ
profile hotlinks them.
2026-11-26 17:54:18 +05:30
Arunavo Ray
8cdb476fa7 chore: bump version to 3.58.1 v3.58.1 2026-11-26 16:42:34 +05:30
ARUNAVO RAY
6db54f6080 docs: new screenshots for the README, the homepage and the docs (#585)
Every screenshot retaken from v3.58.0, plus the Repository Cleanup and interval wording in the use cases.
2026-11-26 16:42:18 +05:30
Arunavo Ray
7007c51210 chore: bump version to 3.58.0 v3.58.0 2026-11-26 13:08:45 +05:30
ARUNAVO RAY
f72b0edab7 feat(config): regroup the Configuration page into five tabs (#584)
Connections, Mirroring (new), Automation, Notifications and Access. Import repositories moves into the Sources card. No setting changes.
2026-11-26 13:08:25 +05:30
ARUNAVO RAY
148619c434 feat(placement): a bar on the Configuration page when a change leaves mirrors out of place (#583)
Follow-up to #550. The bar stays down when the change failed to save, and says the new settings apply to new mirrors.
2026-11-26 12:57:52 +05:30
Arunavo Ray
930ad78f1c chore: bump version to 3.57.0 v3.57.0 2026-11-26 11:15:50 +05:30
Arunavo Ray
be4bed87e5 docs(changelog): add the GitHub App ETag entry and credit #550 2026-11-26 11:15:50 +05:30
ARUNAVO RAY
c37b1589cb feat(repositories): filter by several statuses at once (#580) (#582) 2026-11-26 11:15:21 +05:30
ARUNAVO RAY
2506756d9f feat(placement): move existing mirrors to match the settings (#550) (#581) 2026-11-26 11:05:56 +05:30
ARUNAVO RAY
ac2680f193 fix: never delete or archive a repository that is not ours (#579)
* fix: only delete or archive a repository that is confirmed to be ours

A mirror run that found a regular repository at the name it needed
deleted it and mirrored in its place. It now leaves it alone and fails
with a message saying what to do.

Repository cleanup, with "Apply to the destination too" on, acted on
whatever sat where the strategy would put a row that had no recorded
location: a regular repository or another source's mirror. Gitea also
answers the old address of a renamed or moved repository with a 301,
and fetch repeats a DELETE there. Cleanup now looks the mirror up,
checks it mirrors that source, and acts on its current address, and
the repository delete never follows a redirect. What was left alone is
named in the event and the cleanup notification.

* fix(cleanup): list what was left alone in Run now, name the old address on a redirect
2026-11-26 10:45:17 +05:30
ARUNAVO RAY
1eaf6b0948 fix(sso): say why an OAuth application's redirect URL is refused (#578)
fix(sso): say why an OAuth application's redirect URL is refused

POST /api/sso/applications turned the OAuth plugin's 400 for a refused
redirect URL into a 500 with "An internal server error occurred". Adding a
web application with http://localhost or a plain http address on the
network failed with no hint why.

The route now checks redirect URLs with the plugin's own rules for the
application type before calling it and answers 400 with what is wrong and
what to use instead. Any other refusal from the plugin keeps its status and
reason; real failures still hide their details.

PUT used an older, looser rule (http allowed on localhost for any type).
It now follows the same rules per type, but a URL the application already
has can stay, so applications registered before better-auth 1.7 keep their
addresses when edited.

The rules live in src/lib/oauth-redirect-rules.ts, with a table of 28 cases
checked against the plugin's own registration endpoint.
2026-11-26 09:18:11 +05:30
ARUNAVO RAY
3103a81483 docs: link to RayLabs from the README and the site footer (#576)
Nothing pointed at raylabs.io: the README had no mention and the footer's
"RayLabs team" went to the GitHub organization. The README gets a "made by
RayLabs" badge and a short About section, and the footer link goes to
raylabs.io.
2026-11-26 09:10:40 +05:30
ARUNAVO RAY
3505c44417 feat(auth): 2FA with an authenticator app (#552) (#577)
feat(auth): 2FA with an authenticator app (#552)

Accounts with a password can turn on 2FA from the account menu. Setup asks
for the password, shows a QR code and the key to type by hand, checks one
code from the app, then shows ten backup codes to copy or download. Login
with a password then asks for the app's code or a backup code, with an
opt-in "trust this device for 30 days". When 2FA is on, the menu shows On
and opens Manage 2FA for new backup codes or turning it off.

Built on Better Auth's twoFactor plugin: migration 0025 adds users.two_factor_enabled
and the two_factors table. The plugin only gates /sign-in/email, so SSO,
header auth and API keys are unchanged. It is listed before oauthProvider so
a password alone never mints an OAuth authorization code; tests fail if the
order is swapped.

bun run disable-2fa -- --email=... turns it off for someone who lost both
the phone and the backup codes, and forgets trusted browsers.

Also fixes a race in the login form: it always sent the browser to the
dashboard after one second, which cut off an app signing in through Gitea
Mirror when its callback or the consent page took longer than that.
2026-11-26 09:05:00 +05:30
ARUNAVO RAY
55eb745934 feat(cleanup): wait before acting on a missing source (#549) (#575) 2026-11-26 08:15:37 +05:30
ARUNAVO RAY
9da2e5bf3b feat(metadata): mirror security advisories as issues (#561) (#574) 2026-11-26 07:56:38 +05:30
ARUNAVO RAY
d8150ffc76 feat(notifications): notify when repository cleanup acts (#554) (#573) 2026-11-26 07:39:00 +05:30
ARUNAVO RAY
7c4d5bbc0c chore(deps): clear the open image scan alerts (#572) 2026-11-26 07:38:53 +05:30
ARUNAVO RAY
8e4d329620 feat(starred): place starred repositories like any other (#571) 2026-11-26 07:06:04 +05:30
ARUNAVO RAY
292416f068 feat(releases): separate limit for pre-releases (#570) 2026-11-26 06:54:27 +05:30
ARUNAVO RAY
5b2ab31d0b fix(oauth): only the instance owner manages OAuth applications (#569) 2026-11-26 06:41:49 +05:30
ARUNAVO RAY
b94116b3f2 fix(recovery): stop the restart loop after a crash (#568)
After a crash, a job was only resumed once its last checkpoint was 10
minutes old, although with SQLite nothing else can still be running it.
When the resumed work itself took the app down, it went down again about
10 minutes after every start, with no end.

- A job last touched before the server process started is interrupted
  at once. The 10 minute window still covers jobs this process started.
- mirror_jobs.resume_attempts counts resumes in a row that finished no
  item. A job that reaches 3 is marked failed instead of resumed again.
- The Docker and Nix startup step no longer resumes jobs itself. It ran
  them in a process that exited after 30 seconds and left a fresh
  checkpoint behind. It now resets stuck statuses and lists the jobs.
- A clean stop keeps its jobs in progress, so they resume on the next
  start as their message says. Before, they were never resumed.
2026-11-26 05:54:10 +05:30
ARUNAVO RAY
bce41e4513 fix(cleanup): show the destination switch on the Repository Cleanup card (#567)
CLEANUP_DELETE_FROM_GITEA had no switch in the UI, so with the card set to
archive or delete, cleanup only changed gitea-mirror's own list and left the
destination alone while the card suggested otherwise.

The card now has "Apply to the destination too" (hidden for Skip), saved
through the existing cleanup auto-save. The Archive and Delete tiles say
which of the two happens, and the Database Maintenance card says it never
touches repositories. Docs updated, including the archive paragraph, which
said a mirror's interval is pushed out to a year (the code turns automatic
syncs off).
2026-11-26 05:44:29 +05:30
ARUNAVO RAY
231a3be5c9 fix(sso): only the instance owner can manage SSO providers (#566)
* fix(sso): only the instance owner can manage SSO providers

SSO providers apply to the whole instance, but any signed-in account could
add one, for any email domain, and the register route marked it trusted for
that domain. Signing in through it with another user's email linked the
sign-in to that user's account.

The first account created is now the instance owner, and only the owner can
list, add, change or remove providers. The check runs in the app's routes
and, for the SSO plugin's own endpoints behind the /api/auth catch-all, in a
Better Auth before hook. The owner sees every provider and saving one makes
it theirs. Migration 0022 removes the trust from providers another account
added, so the plugin refuses sign-in through them until the owner saves
them, and the panel marks them.

The OAuth applications API and OIDC discovery are owner-only too. The
consent page looks up its one application by client id, which stays open to
any signed-in account.

GHSA-c6c2-hr73-h7hw

* fix(sso): sign out accounts linked through a provider the owner did not add

Migration 0022 stops new sign-ins through providers another account added,
but a session gained through one before the upgrade stayed valid until it
expired. The migration now also deletes the sessions of accounts that have a
sign-in linked through such a provider.

* fix(sso): also revoke OAuth tokens and API keys of accounts linked through untrusted providers

Ending sessions leaves an API key or OAuth token created during a session
gained through such a provider. The migration now deletes the OAuth access
and refresh tokens of those accounts and turns off their API keys. Keys are
turned off, not deleted, so the list still shows any nobody recognizes.

* fix(sso): include accounts linked through a deleted provider in the revocation

Deleting a provider leaves its account links, sessions and API keys behind,
so the join on sso_providers skipped them. The migration now treats any
account link other than a password or a trusted provider as untrusted.
2026-11-26 05:44:04 +05:30
cypherbits
844ca05d3f perf(github): reuse ETags for GitHub App sources (#563)
Installation tokens authenticate every request, so the conditional request
cache createGitHubClient has always used applies to App sources too: an
unchanged GET comes back as a 304, which does not count against the rate
limit. App sources were built on createPublicGitHubClient, which never got
that layer, so every sync paid for the whole listing again.

createPublicGitHubClient takes an optional cache scope and installs the ETag
layer before the rate limit gate, the same order createGitHubClient uses.
createGitHubAppClient passes its user scope, falling back to a hash of the
credential when there is none, so the cache survives the per-sync client
re-creation without putting the secret in a cache key.

Tokenless sources are left alone. An anonymous 304 still counts against the
60 req/h budget, so caching there would only save bandwidth.

Tests cover the 304 replay on a repeat GET, the cache surviving a fresh
client built from the same credential, and isolation between users.
2026-11-26 05:33:13 +05:30
ARUNAVO RAY
744b70a310 fix(jobs): a rate limit during a manual mirror or sync no longer stops the app (#565)
The mirror, sync, retry and organization mirror routes start their batch in
a setTimeout callback and return. Since v3.40.1 a batch that hits GitHub's
rate limit ends with RateLimitedBatchError. Nothing caught it, so it became
an unhandled rejection and signal-handlers.ts shut the server down.

Background work in the job routes now goes through runInBackground, which
logs a rate limit as one warning and any other failure as an error. A test
checks that no API route starts work in a bare setTimeout callback again.

Fixes #557
2026-11-26 04:59:30 +05:30
Arunavo Ray
57907bca55 chore: bump version to 3.56.1 v3.56.1 2026-11-24 20:19:02 +05:30
Arunavo Ray
555ab93fc2 docs(changelog): add #555 and #556 2026-11-24 20:19:02 +05:30
cypherbits
3887bcc23c perf(issues): skip the comment listing when GitHub reports none (#556)
Skips issues.listComments for issues the listing reports with zero comments. A missing count still lists.
2026-11-24 20:18:46 +05:30
cypherbits
4424c8f7f5 perf(metadata): keep the incremental since stable within an hour (#555)
Rounds the incremental since down to the hour so the listing URL repeats and the ETag cache can answer 304. The issue and pull request passes now share one listing.
2026-11-24 20:18:41 +05:30
Arunavo Ray
081b39da67 chore: bump version to 3.56.0 v3.56.0 2026-11-24 19:02:31 +05:30
ARUNAVO RAY
18d66dbbb7 feat(cleanup): Run now buttons and the next maintenance run (#553)
Run now for Database Maintenance and Repository Cleanup, with progress shown inside the cards (#547). The next maintenance run follows the retention period and is no longer moved by repository cleanup (#548).
2026-11-24 19:02:15 +05:30
ARUNAVO RAY
25a1ce059d chore(docker): drop all capabilities and set no-new-privileges in compose (#545)
* docs(deployment): note that the image works with all capabilities dropped

The app runs as a regular user with no capabilities in effect, and the
image has no setuid programs, so cap_drop ALL and no-new-privileges change
nothing day to day. Tested on v3.55.0 with the default user and with
user: 1000:1000 and a bind mount. Document that they work, for setups that
require them, instead of adding them to the default compose files.

Refs #544

* chore(docker): drop all capabilities and set no-new-privileges in compose

The app runs as a regular user with no capabilities in effect, so this
changes nothing day to day and limits what someone who broke into the
container could do. Added to the three compose files and the compose and
docker run examples in the docs, with a note for anyone running the
container as root.

Suggested by @zwimer in #544.
2026-11-24 13:22:40 +05:30
Arunavo Ray
08fa7795b6 chore: bump version to 3.55.0 v3.55.0 2026-11-24 10:50:00 +05:30
ARUNAVO RAY
016fcc8f60 feat(config): add an auto import switch and ENVIRONMENT_SEEDING (#542)
Auto import could only be turned off with AUTO_IMPORT_REPOS=false, and
environment variables were only copied into the settings when a GitHub or
Gitea connection variable was set. Keeping tokens on the Configuration page
meant giving up AUTO_IMPORT_REPOS.

- The Automation tab gets an "Auto-import new repositories" switch next to
  the auto-mirror one. The docs already described it.
- ENVIRONMENT_SEEDING=true copies the environment without a connection
  variable, false never copies it, and unset keeps the old rule. Any other
  value is ignored with a warning. The Docker entrypoint follows the same
  rule.

Closes #541
2026-11-24 10:49:25 +05:30
Arunavo Ray
468e1de1df chore: bump version to 3.54.1 v3.54.1 2026-11-24 07:38:43 +05:30
Arunavo Ray
dab388e5af docs(changelog): add #534 and #536 2026-11-24 07:38:43 +05:30
ARUNAVO RAY
b392c75297 fix(releases): close release asset files before removing them (#540)
When the destination answered before reading the whole upload, such as
a reverse proxy refusing a large asset with 413, Bun stopped reading the
request body without cancelling it. The Bun.file stream behind it kept
the temp file open after it was removed, so its disk space was only
freed by a restart, and every sync that retried the asset leaked
another file.

The upload now reads the file through a handle it opens itself, and
the caller always closes it before removing the file. The close waits
for a read in progress, because in Bun a file handle closed during a
read reports success and keeps its descriptor.

Fixes #539
2026-11-24 07:38:08 +05:30
Tien Nguyen Minh
5551ff7f71 fix(sync): repoint rows when the configured Gitea already holds their mirror (#536)
* fix(sync): repoint rows when the configured Gitea already holds their mirror

Every repository row records the destination URL it was mirrored to, and
the destination guard refuses a row whose recorded URL differs from the
configured one. Nothing ever updated the recorded URL, so after a Gitea or
Forgejo server moved to a new address every existing row was refused on
sync and mirror, although the mirrors were all in place, and the rows
stayed failed until they were removed and mirrored again.

Before refusing, read the repository at the row's recorded location and
at the location the mirror strategy gives, and nowhere else. When one of
them is a pull mirror whose original URL is the row's source and the
configured token can push to it, repoint the row's destination columns at
the configured destination and carry on. That is what the lock dialog
already promises: syncing fails until the mirrors exist on the new server.
A row that does not match costs at most two lookups per run and keeps the
refusal. When the destination cannot be read, the error says so instead of
advising to remove and mirror again. Push targets are never repointed, and
the relink write leaves updatedAt alone so the in-flight claim is not
delayed.

* fix(sync): record the verified mirror location when repointing a row

The relink accepted the first probed location holding a writable pull
mirror of the row's source, but the sync then tried the recorded location
first and took any mirror there. When the recorded location held a mirror
the relink had rejected (another source, or no push permission) and the
strategy's location held the verified one, the sync acted on the rejected
repository.

Store the verified location in mirroredLocation together with the
destination columns, and return it, so the sync and the mirror paths start
from the repository that was checked. Probe the recorded location before
resolving the strategy owner, so a match there needs no owner lookup. A
response without a permissions object is refused.
2026-11-23 21:36:01 +05:30
ARUNAVO RAY
5e9bb804d7 fix(scheduler): respect AUTO_IMPORT_REPOS in the startup run (#537)
With scheduling on, the auto-start run after boot imported every
repository from the sources without checking the auto import switch.
Only the scheduled runs after it did, so AUTO_IMPORT_REPOS=false never
stopped the import on a restart.

Fixes #532
2026-11-23 21:20:02 +05:30