Erugo 0.3.0
Most of what's in 0.3.0 was written by Erugo's contributors. While releases here were slow, @RZA-SF and @moutonnoireu kept working on it. They found and fixed security problems and built new share features, and RZA kept his own preview images running for people who needed the fixes sooner. This release brings their work back into the official project.
It's one big release on purpose. Since 0.2.15 in January, the official image, RZA's preview images, the community forks and the iOS app branch drifted apart, and each fix had to be made in more than one place. 0.3.0 puts them back on one codebase. Every pull request now runs the test suite, releases are built and published by GitHub Actions, and there's a tested upgrade path from each of those images. That means future fixes can go out in smaller, more regular releases, led by the community and the people contributing to it.
Thank you to everyone who has put time into Erugo. Special thanks to @RZA-SF and @moutonnoireu for your dedication and hard work. A lot of people are running safer, better Erugo installs because of you, and both of you have since joined the project as maintainers.
Thanks
- @RZA-SF wrote most of this release: share lifecycle, file management, clones, disk usage, email normalisation, PHP 8.4, the split Caddy logs and most of the security fixes (#260, #261, #262, #263, #264, #266, #268, #269, #270, #271, #272, #275, #276, #277, #278, #282, #302).
- @moutonnoireu fixed warning emails failing when a share's owner has been deleted, the auth providers message on the settings page, older themes blanking the settings pages, and a French label.
- @anyingiit (#294) and @jasonpsimon (#297) did the Alpine and PHP work that 0.2.16 shipped and this release builds on.
Security fixes
- Laravel and the other PHP dependencies are updated. 0.2.16 had 135 published advisories across 22 of them. 0.3.0 has none.
- Share API responses no longer include the bcrypt hash of a share's password.
- Login is rate limited by IP and by email on every auth endpoint, web and app. Throttled requests get a JSON 429.
- The tusd upload hook endpoint can only be called from inside the container, with a key made at every boot. Before, anyone whose requests reached Erugo from a private address (Docker Desktop, some Linux setups, a LAN proxy) could fake upload events.
- tusd no longer serves in-progress uploads to anyone who knows an upload ID.
- Path checks on downloads now use a proper folder boundary, and the share zip is built with PHP's ZipArchive instead of the
zipcommand. Symlinks inside a share are skipped. - Markdown, login provider icons and branding colours are sanitised before they reach the page.
- Error responses no longer include internal exception messages or server paths.
- Theme uploads are checked by content and size. Background uploads are checked by content and by file extension.
- CORS is limited to the app's own URL. The download route only accepts GET and POST.
- Reverse-share invite tokens are sent in the request body, not the URL.
- Disabled accounts can't log in, refresh or reset their way back in, on web or app.
- Web refresh tokens last 24 hours. A bug made them last 60 days.
- Created folders are 0750 instead of 0777, and storage permissions are fixed at startup.
New
- Share lifecycle. Extend a share by days, weeks, months, to a date, or to no expiry. Owners can ask for a share to be deleted early; admins can delete or purge shares.
- Manage existing shares. Add files to a share, replace a file, or clone a share. A clone shares its files on disk with the original through hard links, so it takes no extra space.
- Disk usage. The admin stats show real disk use, counting hard-linked files once.
- Emails are case-insensitive. Addresses are stored in lowercase and login works whatever case you type.
- iOS app support. The API used by the Erugo iOS app is now in the official image, under
/api/app/v1. The app is in beta: download it from TestFlight. - Trusted proxies setting in System settings, so rate limits and download logs see real client IPs behind a reverse proxy.
- PHP 8.4 and Laravel 13. The image now uses PHP 8.4.28 on Alpine 3.24, and the build fails on anything older than 8.4.27. Laravel moves from 11 to 13, since Laravel 11 no longer gets security fixes.
Fixed
- Expiry and deletion warning emails no longer fail when a share's owner has been deleted.
- Saving settings no longer always says auth providers were saved, and shows an error when saving them fails.
- Themes saved by older versions no longer leave the settings pages blank.
Things that behave differently
- Behind a reverse proxy? Add your proxy's address under System settings → Trusted proxies. By default only loopback is trusted, so devices on your network can't fake their IP. Erugo shows a warning with a button to trust the proxy when it sees forwarded headers from an address it doesn't trust.
- Accounts whose emails differed only by case. When emails are lowercased, the newer of any such pair is disabled and its email gets a
__dup_<id>suffix. The details are written tostorage/logs/email-normalization-<date>.log. Check that file after upgrading. - Password reset links still expire after 60 minutes. Welcome emails for accounts an admin creates now last 24 hours.
- Caddy logs.
storage/logs/caddy.logis replaced bycaddy-access.logfor requests andcaddy-error.logfor errors. They roll over at 20 MB and 10 MB and keep a week of history. Your oldcaddy.logis left alone, and you can delete it. - App API. A disabled account now gets 403 with
AUTH_ACCOUNT_INACTIVEinstead of 401, andaccess_token_expires_inreports the access token's real lifetime (3600 seconds).
Upgrading
Back up your storage volume, then pull the new image and restart:
docker compose pull
docker compose up -dThe image is wardy784/erugo:0.3.0, also tagged 0.3, 0 and latest, for amd64 and arm64.
Coming from RZA-SF's preview images
If you've been running ghcr.io/rza-sf/erugo:..., you can move back to the official image and keep your data:
- Back up your storage volume.
- In your compose file, change the image to
wardy784/erugo:0.3.0. Keep the same storage volume. docker compose pull && docker compose up -d
0.3.0 includes the migrations those images ran, under the same names, so they aren't run again. Clones, shares with no expiry, shares waiting for deletion and lowercased emails all carry over.
Those images kept a loose copy of every multi-file share's files next to its zip. 0.3.0 goes back to keeping just the zip and unpacks it when it needs to. Shares you already have keep their loose copy until they expire or you add files to them, and they work either way. We tested this from his 0.2.15-421a556 and 0.2.16-6c61323 builds.
Live shares
Live shares are in the code but switched off. They aren't ready yet.
Getting involved
If you've fixed something in your own fork, please open a pull request. With tests running on every PR and releases automated, it's now much quicker to get a fix reviewed and shipped.