Repository navigation
Releases
Releases · chmedinap/sonarr-analyzer
v0.7.1
Fixed
- 🔧 On every start, Streamlit asked
checkip.amazonaws.comfor the server's public IP and printed it in the logs as an "External URL". That was an undeclared request to a third party, and it made the logs look as if the app were exposed to the internet. The banner is now off; the logs show "Starting web app on port 8501 (http|https)" instead
Docker: docker pull martitoci/sonarr-analyzer:v0.7.1 (also latest), for linux/amd64 and linux/arm64.
v0.7.0
Upgrading from v0.6 needs no manual steps:
users.dbgains two tables on first start. Map port 8502 if you will use the mobile apps.
Added
- ➕ Mobile API for the upcoming iOS and Android apps: a read-only JSON API on port 8502 (a third process in the container, next to the web app and the scheduler) serving the Dashboard and the detail of a series from saved history. Turn it off with
SONARR_ANALYZER_API=0 - ➕ Device sign-in: each phone gets its own token, by scanning a one-time QR code from My profile → Add mobile device (valid 5 minutes, works once) or with username and password. My profile → Mobile devices lists them with a Revoke button
- ➕ HTTPS without a reverse proxy:
SONARR_ANALYZER_TLS=self-signedcreates a certificate in/app/data/tlson first start and serves the web app and the API over HTTPS. Its SHA-256 fingerprint is printed in the logs and shown in My profile; the apps pin it. Extra names or IPs for it:SONARR_ANALYZER_TLS_HOSTNAMES - ➕
SONARR_ANALYZER_PUBLIC_URL: the address the phones use (e.g. behind a reverse proxy), pre-filled in the QR dialog - ➕
FORWARDED_ALLOW_IPS: the reverse proxy's IP, so the API's sign-in limit sees each client's real address
Changed
- 🔄 The Docker healthcheck is now
python -m sonarr_analyzer.healthcheck: it checks the web app and the API, over HTTPS when it is on. The old one-liner would mark an HTTPS container unhealthy - 🔄 Changing a password signs out all of that user's mobile devices
- 🔄 Wrong passwords on a disabled account now count towards the lockout, like on any other account
Security
- 🔒 Device tokens and pairing codes are stored only as SHA-256 hashes. The API never returns Sonarr URLs or API keys
- 🔒 The API sign-in and pairing endpoints allow 10 failures per IP in 10 minutes (429 after that), on top of the per-account lockout
- 🔒 The login lockout now holds against parallel attempts. Simultaneous wrong passwords all read the same failure count, so a burst of guesses was never locked out; now at most 5 are checked per lock
- 🔒 A wrong password no longer reveals that a disabled account exists ("User account is disabled" is only shown with the right password)
- 🔒 The sign-in form no longer shows internal error details; they go to the log
- 🔒 Requests to Sonarr no longer follow redirects. A redirect (e.g. to a login portal in front of Sonarr) would have sent the Sonarr API key to another host
- 🔒 A database error no longer shows the "Create the first account" page
Removed
- ➖ Unused
metric_label,StorageTrend.date_free_space_runs_outandOverview.runway_gain_days
Docker: docker pull martitoci/sonarr-analyzer:v0.7.0 (also latest), for linux/amd64 and linux/arm64.
v0.6.2
Fixed
- 🔧 A scheduled analysis where some series failed to load was saved as complete, showing a fake storage drop on the dashboard and skewing the forecast; it is now reported as an error and not saved
- 🔧 Deleting an instance left its schedule behind, failing with "No token found" on every run; the schedule is now deleted with it
- 🔧 Schedules of deactivated or deleted users kept running
- 🔧 The master key file was briefly created world-readable before being restricted, and the web app and the scheduler could both create it on first start; it is now created once, with mode 0600
Changed
- 🔄
TZdocumented and set indocker-compose.yml(the image runs in UTC by default) - ➖ Removed unused
TokenManager.has_token/has_any_token
Docker: docker pull martitoci/sonarr-analyzer:v0.6.2 (also latest)