Skip to content

v0.3.0

Latest

Choose a tag to compare

@andprov andprov released this 28 Oct 19:44
cf83e8c

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, run docker 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 the frontend container, point them to 8080/8443. The new images don't work with the old docker-compose.yml.
  • First start after the update: HTTPS may be unavailable for about a minute. The certbot container now gives nginx read access to the certificates in the letsencrypt volume; 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 400 with 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/reset validates 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 still 400.
  • 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 in gateway/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 the standard extras, which pulled in tools the app doesn't use. The certbot image is pinned to a certbot release instead of latest.

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