Skip to content

2026.11.26

Latest

Choose a tag to compare

@kennethjiang kennethjiang released this 26 Nov 05:48

What's new for you

This release fixes a number of security problems found in a review of the server. We recommend that every self-hosted server upgrade. A few of the fixes change how an existing server behaves, so read the first section before you upgrade.

What can break an existing server

1. A server behind a reverse proxy needs NUM_TRUSTED_PROXIES. Earlier releases read each visitor's address from the X-Forwarded-For header without being told to. Anyone can write that header, so the server now trusts it only when you say how many proxies are in front of it. Add NUM_TRUSTED_PROXIES=1 to .env for one NGINX, Traefik, Caddy or Cloudflare Tunnel (2 for two proxies in a row), then restart. If you skip this, every visitor looks like the proxy: they share one limit on sign-in attempts and wrong printer link codes, they see each other's unlinked printers when linking, and ADMIN_IP_WHITELIST is compared with the proxy's address. A server that visitors reach directly needs no change. See the reverse proxy guide.

2. Everyone is signed out once if you never set DJANGO_SECRET_KEY. Earlier releases fell back to a key written in the source code. The server now generates a random key the first time it starts and keeps it in backend/.django_secret_key. Every browser and mobile app signs in again, once. Links to timelapses, snapshots and G-Code files are re-signed when the server starts and keep working inside the app; a link copied out of the server before the upgrade stops working. Add backend/.django_secret_key to your backups. If you run the web and tasks containers without the shared ./backend folder (Kubernetes, for example), set DJANGO_SECRET_KEY yourself so both use the same key. If you already set it, nothing changes.

3. Apps that sign in with OAuth reach less of the server. An OAuth token now works only on the API for apps: printers, prints, G-Code files and folders, the API version, and the endpoints the JusPrin slicer calls. Everything else, such as users/me, notification settings, tunnels and shared links, treats a request with only a token as signed out. The token must be sent as Authorization: Bearer <token>; the X-Api-Key header no longer signs a request in. Only staff accounts can register an OAuth application, and as the server's admin you are staff. If a third-party app stops working after the upgrade, this is the likely cause.

4. Apps that send pictures to the predict API get refused more often. POST /api/v1/printers/{id}/predict/ now follows the same rules as the printer's own failure detection: detection on, a print running, AI Detection Hours left, and at least 10 seconds between pictures from the same printer. A refused picture gets 403 with the reason, or 429 with Retry-After.

5. TUNNEL_DOMAIN: leave it unset. This new setting is used by the hosted service and is not supported on self-hosted servers yet. A server set up by the tunnel guide gives each tunnel a port and does not need it. With it unset, tunnels work as before.

6. RELAY_HOST: leave it unset unless you run your own TURN relay. With RELAY_HOST set, the server hands printers, the web page and the app a relay address with a credential that expires after 7 days, signed with RELAY_SECRETS. The relay must be coturn with use-auth-secret and the same secret. The server refuses to start with RELAY_HOST set and no RELAY_SECRETS. Printers take the relay from the server from Obico for OctoPrint 2.7.5 and Obico for Klipper 2.2.7; older plugins do not use it. With RELAY_HOST unset, the server offers no relay, as before.

Printer plugins

Every released plugin version keeps working, and you can upgrade the plugins before or after the server. We recommend Obico for OctoPrint 2.7.5 and Obico for Klipper 2.2.7 or later. From Obico for OctoPrint 2.7.4 and Obico for Klipper 2.2.6, automatic printer discovery is tied to the device that announced itself, so another device on the same network cannot pick up a printer's link code. From Obico for OctoPrint 2.7.5 and Obico for Klipper 2.2.7, printers also take the video relay settings from the server.

Everything else in this release

  • Printer link codes are random from a secure source. After ten wrong codes in an hour from one address, that address gets "too many requests" until the hour has passed.
  • New passwords need at least 8 characters, can't be a common one or only digits, and can't be too close to the account's name or email address. The password pages say why a password was refused. Existing passwords keep working.
  • Sign-in and password reset match only the email address that was typed.
  • Sign-up in the mobile app asks for reCAPTCHA when RECAPTCHA_SITE_KEY is set, as the website does. Without it, sign-up works as before.
  • Webhook and Apprise notification addresses that point at a private, loopback or other internal address (such as 192.168.x.x, 100.64.x.x or localhost) are refused when saved and again when sent, and a webhook does not follow redirects. Test messages are limited to 10 an hour per account.
  • The tunnel authorization page returns only to an app's own address (such as myapp://callback) or to a page on your server.
  • Files are served only from inside the media folder. A G-Code file's url and thumbnail addresses are written by the server, and a printer reporting a downloaded file can set only a bare file name.
  • Text a printer sends, such as the error after a button press, is shown as text, and a printer event's links open only web pages.
  • Shared links need a paid plan, which every account on a self-hosted server has. A shared link's page serves only the printer it was made for.
  • Smaller fixes: notification emails support one-click unsubscribe; muting an alert after the print has ended no longer fails; tunnel responses are compressed in a way OctoApp can read again; a webcam picture that can't be decoded is refused instead of stored; the SMS test message reports a failure when no SMS was sent; and the admin's "Send test email" says so when an account has no email address.
  • The failure-detection server downloads its model weights from this repository's ml-models-2026-11-23 release. The files are the same as before. ml_api/README.md explains how to run it on its own.

Prebuilt Docker images for this release are tagged 2026.11.26 on GitHub's container registry, for example ghcr.io/thespaghettidetective/obico-web:2026.11.26.

How to upgrade

Back up your database first (how), and keep a copy of backend/.django_secret_key if that file exists. Then on the release branch run git pull and docker compose up --build -d. Details in the server operations guide.