Repository navigation
What's Changed
A security hardening release: nginx no longer runs as root, password reset and activation codes can't be used twice, the app sends stricter browser security headers, and the published images are checked for known vulnerabilities every week.
⚠️ Deployment: nginx listens on 8080/8443 inside the containers
nginx in the nginx and frontend images now runs as an unprivileged user and listens on container ports 8080 (HTTP) and 8443 (HTTPS) instead of 80 and 443. The ports on the host stay 80 and 443.
- Standard update (download the new
docker-compose.yml, rundocker compose up -d): nothing else to do. - Custom setup: if you changed the nginx ports in your own compose file or
docker-compose.override.yml, or put your own reverse proxy in front of thefrontendcontainer, point them to8080/8443. The new images don't work with the olddocker-compose.yml. - First start after the update: HTTPS may be unavailable for about a minute. The
certbotcontainer now gives nginx read access to the certificates in theletsencryptvolume; until it does, nginx serves HTTP only, then switches to HTTPS by itself.
Security
- Codes can't be used twice. Two simultaneous requests with the same password reset or activation code could both succeed. Now only the first one does; the second gets
400with an invalid code error. Wrong-code attempts are also counted atomically, so parallel requests can't go over the attempt limit. - Password reset checks the new password first.
POST /api/auth/password/resetvalidates the new password before it looks up the email and the code. A weak password now gets its own error (e.g.password_too_short) whatever the email and code are. The status is still400. - Content-Security-Policy and Permissions-Policy headers. Scripts, styles and fonts load only from the site itself, and the site can't be embedded in a frame. The API docs (
/api/docs,/api/swagger,/api/redoc) get a looser policy for their CDN assets. Browser features the app doesn't use (camera, microphone, geolocation, payment and others) are turned off. If you changed the frontend to load scripts, styles or fonts from other domains, update the policy ingateway/nginx/default.conf.template. - Leaner images. OS packages are upgraded on every build. The backend image no longer contains pip, and its dependencies are installed with exact versions from
uv.lock. FastAPI is installed without thestandardextras, which pulled in tools the app doesn't use. The certbot image is pinned to a certbot release instead oflatest.
CI
- Released images are scanned with Trivy every week.
- GitHub Actions are pinned by commit SHA; Dependabot keeps them and the certbot image up to date.
No database migrations.
Full Changelog: v0.2.0...v0.3.0