github Sync-in/server v2.7.0

one hour ago

⭐ Highlights

Resumable chunked uploads

Large files now use resumable upload sessions from the web interface and desktop synchronization client. The first chunk initializes the session, subsequent chunks are sent sequentially, and the client can resume from the last offset actually persisted by the server after an interruption. (#348)

In the web client, files smaller than or equal to maxChunkSize continue to use multipart uploads, while larger files use the new upload-session API. Size, quota, and permissions are validated before the staged file is published to its final destination.

Desktop synchronization also supports a secure mode using SHA-512/256 digests to validate transferred chunks. Older clients remain compatible with the legacy single-stream upload route.

Keep both files on conflicts

Upload and copy conflicts now provide a Keep both option. The incoming file is automatically renamed with a numbered suffix, preserving both versions without manual intervention. (#350) @Stephan-P

Folder sizes in synchronization workflows

Folder sizes are now displayed when selecting and configuring synchronization paths.

Expired notification cleanup

The scheduler now automatically removes expired notifications to prevent obsolete entries from accumulating in the database.

⚙️ Transfer configuration

Upload settings are now grouped under a new transfers section in environment.yaml:

applications:
  files:
    transfers:
      maxUploadSize: 5GB
      maxChunkSize: 95MB

Both values accept a byte count or text units such as KB, MB, and GB.

  • maxUploadSize remains the maximum file size accepted by the backend. Its default value is 5 GB.
  • maxChunkSize defines the multipart/chunked-upload threshold and target chunk size. Its default value is 95 MB, leaving headroom below common 100 MB proxy limits.
  • Setting maxChunkSize to null, an empty value, or 0 disables chunking in the bundled clients.
  • maxChunkSize is a client-side transfer hint, not a backend-enforced request limit. Reverse-proxy and infrastructure limits still apply.

The previous configuration key remains supported but is now deprecated:

applications:
  files:
    maxUploadSize: 5368709120

The corresponding environment variable has also moved from:

SYNCIN_APPLICATIONS_FILES_MAXUPLOADSIZE

to:

SYNCIN_APPLICATIONS_FILES_TRANSFERS_MAXUPLOADSIZE

The chunk size can be configured with:

SYNCIN_APPLICATIONS_FILES_TRANSFERS_MAXCHUNKSIZE

🐞 Bug fixes

Isolation of retained user data

Data retained after deleting a user is now moved outside the active login namespace:

deleted-users/<login>/<deleted-user-id>/

Creating a new account with the same login can therefore no longer expose files retained from the previous account.

Reliable quota updates

Quota cache updates are now completed before file, share, space, and user operations return, preventing subsequent operations from temporarily observing stale quota information.

New backend build pipeline

The backend is now compiled with Rspack. Runtime path resolution and asset handling, including MIME resources used in development, have been adapted to the new build pipeline.

⚠️ Security

Permission enforcement for links added to existing shares

Fixed high-severity vulnerability GHSA-8rmv-4f4p-v9jg.

When updating an existing share, the permissions of a newly added public link were not restricted to those the caller was allowed to delegate. A member authorized to share content externally could therefore create an anonymous link with add, modify, and delete permissions that the member did not hold. New links now use the same permission intersection as links created together with the share.

Overwrite permission enforcement

Fixed moderate-severity vulnerability GHSA-wfx5-p4q9-x8pj.

Copy and desktop synchronization operations now enforce the permissions required to overwrite existing content. Modifying an existing file requires MODIFY, while structurally replacing a resource requires both ADD and DELETE.

Hardened OIDC identity binding

Fixed moderate-severity vulnerability GHSA-r53r-qpv5-9p7g.

Before binding a new OIDC identity to an existing local account, the server now performs a Unicode caseless comparison while preserving accent and compatibility distinctions. Migration 0009 also updates identifier collations and checks for historical collisions before modifying the database schema.

Special thanks to @jpabeem for privately reporting these vulnerabilities and providing detailed reproductions.


Features

  • backend:scheduler: add expired notification cleanup (ed4429a)
  • files: add resumable chunked uploads (#348) (037bca0)
  • files: keep both on copy conflict (#350) (5890fa0)
  • sync: display folder sizes across sync workflows (054abcd)

Bug Fixes

  • backend:auth: generate app passwords with secure randomness (07418fc)
  • backend:auth: harden OIDC identity binding against collation mismatches (5816666)
  • backend:database: enforce non-null comment and notification content (6688856)
  • backend:database: lower recovered pool connection losses to debug (d6c3b21)
  • backend:database: make migration 0008 idempotent (6a2074c)
  • backend:files: await quota cache updates (a455041)
  • backend:files: enforce overwrite permissions (d2b4e0f)
  • backend:shares: intersect new link permissions before creation (aad7b9f)
  • backend:users: isolate retained homes from reused logins (40572f0)
  • build: materialize MIME assets in development builds (d80970f)

Don't miss a new server release

NewReleases is sending notifications on new releases.