Skip to content

v1.11.0

Choose a tag to compare

@DredBaron DredBaron released this 06 Nov 03:45
· 33 commits to main since this release
5f8fe90

v1.11.0 - Security Fixes and Reverse Proxy Support

This release is focused on security fixes and hardening. All instances should update ASAP. Support for running OpenMTG behind a reverse proxy has also been added, along with clearer limits on imports and photo uploads.

Quick Start

$ git clone https://github.com/DredBaron/OpenMTG

$ cd OpenMTG

$ mv .env.example .env

$ openssl rand -hex 32    # paste the output as JWT_SECRET in .env

$ docker compose up -d

See the README or Installation Wiki for full setup instructions.

Please read these notes before updating.

  • Everyone will be signed out once and needs to sign in again.
  • OpenMTG now refuses to start if JWT_SECRET is empty, a placeholder such as changeme (the old .env.example default), or shorter than 32 characters. Set it to the output of openssl rand -hex 32 and restart.
  • If you run OpenMTG behind a reverse proxy, set TRUSTED_PROXIES to the proxy's address. If you use your own copy of docker-compose.yml, also add TRUSTED_PROXIES: ${TRUSTED_PROXIES:-} to the app's environment: block.
  • Home Assistant webhooks that point at localhost or another loopback address will stop working. Use the Home Assistant server's LAN address instead.

Changes

  • Server-side feature toggles - Disabled features (Showroom, Trades, Home Assistant integration) now return 403 from their API endpoints. Webhook credentials can't be managed while the integration is off.
  • Home Assistant API - The Home Assistant stats pull endpoint returns 403 instead of 503 while the integration is disabled.
  • JWT_SECRET startup check - Empty, example, and placeholder values, or values shorter than 32 characters, are refused at startup. The error message shows how to generate one.
  • Session revocation - Changing a user's password signs that user out everywhere by invalidating all keys for that user.
  • Reverse proxy support - New TRUSTED_PROXIES setting for instances behind Caddy, Traefik, Nginx Proxy Manager, a Cloudflare Tunnel, or similar. Empty by default. See the Configuration Reference for setup and how to find the address.
  • Login lockouts - Lockouts after repeated failed logins now apply per client address.
  • Trades - Trades show a "Processing" state while cards are transferred, and a trade interrupted during a transfer is settled automatically on the next start.
  • Webhooks - Target URLs must point to a LAN or public address as loopback and link-local addresses are no longer accepted. Test pushes are rate-limited.
  • Imports - Collection and deck imports are limited to 1000 lines each and rate-limited per user. The import dialogs show this new limit.
  • Card photos - Uploads accept JPEG, PNG, or WebP up to 10 MB, and the upload dialog shows the accepted types and size. Photo files are now removed from disk when their photo, card entry, or owner is deleted.
  • Hardened input validation across the API.
  • .env.example now leaves JWT_SECRET empty with a note on generating one, and includes TRUSTED_PROXIES.

Images

  • ghcr.io/dredbaron/openmtg:latest
  • ghcr.io/dredbaron/openmtg-arm64:latest
  • ghcr.io/dredbaron/openmtg:v1.11.0
  • ghcr.io/dredbaron/openmtg-arm64:v1.11.0