🛡️ Warracker is an open source, self-hostable warranty tracker to monitor expirations, store receipts, files. You own the data, your rules!
Release 1.0.6 staging: date changelog, README current release, defaults removal now 1.0.7
Omega (QA)f0ff3c3af556
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex f2ec209..06c9552 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1,6 +1,6 @@# Changelog-## 1.0.6 - Unreleased+## 1.0.6 - 2026-11-10- **Docker image fails to start, fixed (#293):** the 1.0.5 image crashes on boot with "ModuleNotFoundError: No module named 'packaging'" and gunicorn never starts. The gevent worker class gunicorn loads imports the packaging module, but gunicorn declares packaging only in its optional "gevent" extra, and the requirements file installs plain gunicorn, so pip never installed it. The 1.0.4 image worked because it copied the builder's whole /usr/local, which happened to carry packaging along; the 1.0.5 image diet copies only the virtualenv, which exposed the missing pin. packaging is now pinned explicitly in the requirements file, and a regression test guards the pin. Verified in clean virtualenvs built from the old and new requirements: the old set reproduces the ModuleNotFoundError on worker load, the new set loads the worker.- _Files: `backend/requirements.txt`, `tests/test_requirements_packaging.py`_@@ -29,7 +29,7 @@- **Dependency and runtime updates:** gunicorn 24.1.1 → 26.2.0 and gevent 24.11.1 → 26.9.0 (the new gevent ships Python 3.15 wheels, ending the from-source compile that slowed multi-arch Docker builds), python-dateutil 2.9.0 → 3.0.0, setuptools 84.0.0 → 84.2.1, and the Python 3.15 slim base image digest refreshed.- _Files: `Dockerfile`, `backend/requirements.txt`, `.github/workflows/renovate.yml`_-- **Database credential defaults deprecated (#221, by Nam0101):** `DB_USER`, `DB_PASSWORD`, `DB_ADMIN_USER`, and `DB_ADMIN_PASSWORD` should now be set explicitly. The built-in defaults still work in this release, but the app logs a deprecation warning at startup naming any of the four that are not set, and the defaults will be removed in 1.0.6, when all four become required. Both shipped Docker Compose files set all four explicitly, the Unraid app template includes all four as well, and the root `env.example` now lists all four (it previously lacked `DB_USER` and `DB_ADMIN_USER`), so installs that follow the shipped templates need no action beyond checking for the warning.+- **Database credential defaults deprecated (#221, by Nam0101):** `DB_USER`, `DB_PASSWORD`, `DB_ADMIN_USER`, and `DB_ADMIN_PASSWORD` should now be set explicitly. The built-in defaults still work in this release, but the app logs a deprecation warning at startup naming any of the four that are not set, and the defaults will be removed in 1.0.7, when all four become required. (Removal was originally announced for 1.0.6; the 1.0.6 slot went to a hotfix.) Both shipped Docker Compose files set all four explicitly, the Unraid app template includes all four as well, and the root `env.example` now lists all four (it previously lacked `DB_USER` and `DB_ADMIN_USER`), so installs that follow the shipped templates need no action beyond checking for the warning.- _Files: `backend/config.py`, `env.example`, `Docker/docker-compose.yml`, `unraid/warracker.xml`_- **Mobile photo capture with client-side downscaling (#249, by canni):** a new "Take Photo" button opens the camera directly on mobile — the photo never enters the phone's gallery — and product photos are downscaled in the browser to at most 2048px (JPEG) before upload, so a multi-megabyte phone photo stops inflating storage and slowing uploads. Downscaling is EXIF-orientation-safe, renders transparency on white, never produces a larger file, passes animated GIFs through untouched, and falls back to the original file on any error. Applies to the add and edit photo inputs on the main and status pages.diff --git a/README.md b/README.mdindex 33de951..6dacce6 100644--- a/README.md+++ b/README.md@@ -98,7 +98,7 @@ More screenshots, including the table view, the card menu, and dark mode, are in## 🗺️Roadmap-The current release is **1.0.5**. What's planned next — 1.0.6 and the feature requests under consideration — lives on the [Roadmap](https://github.com/sassanix/Warracker/wiki/Roadmap) page in the wiki. Shipped work is in the [changelog](CHANGELOG.md) and the [releases](https://github.com/sassanix/Warracker/releases).+The current release is **1.0.6**. What's planned next, 1.0.7 and the feature requests under consideration, lives on the [Roadmap](https://github.com/sassanix/Warracker/wiki/Roadmap) page in the wiki. Shipped work is in the [changelog](CHANGELOG.md) and the [releases](https://github.com/sassanix/Warracker/releases).## 🚀Setupdiff --git a/backend/config.py b/backend/config.pyindex 72cd2fc..bb444e2 100644--- a/backend/config.py+++ b/backend/config.py@@ -85,7 +85,7 @@ class Config:def _warn_unset_db_vars(app):# Built-in DB credential defaults are deprecated: installs should set# all four variables explicitly. Warn for one release cycle (1.0.5);- # the defaults are removed and the variables become required in 1.0.6.+ # the defaults are removed and the variables become required in 1.0.7.if app.config.get('TESTING'):returnunset_vars = [@@ -96,7 +96,7 @@ class Config:logger.warning("DEPRECATION WARNING: %s not set explicitly, so built-in default ""database credentials are in use. These defaults are deprecated and "- "will be removed in version 1.0.6, when all four variables will be "+ "will be removed in version 1.0.7, when all four variables will be ""required. Set them in your environment or .env file.",', '.join(unset_vars))diff --git a/env.example b/env.exampleindex 0af119f..c51057e 100644--- a/env.example+++ b/env.example@@ -5,7 +5,7 @@# Set all four variables explicitly. Built-in defaults still apply# when they are unset, but those defaults are deprecated: the app# logs a warning naming any that are missing, and they will be-# removed in 1.0.6, when all four become required.+# removed in 1.0.7, when all four become required.DB_USER=warranty_userDB_PASSWORD=your_secure_database_passwordDB_ADMIN_USER=warracker_admindiff --git a/tests/test_config_deprecation.py b/tests/test_config_deprecation.pyindex 85747cf..caab2d7 100644--- a/tests/test_config_deprecation.py+++ b/tests/test_config_deprecation.py@@ -2,8 +2,8 @@1.0.5 keeps the defaults working but warns at startup about any ofDB_USER / DB_PASSWORD / DB_ADMIN_USER / DB_ADMIN_PASSWORD that are not-set explicitly; 1.0.6 removes the defaults and makes them required.-These tests pin the softened behavior so the 1.0.6 flip is a+set explicitly; 1.0.7 removes the defaults and makes them required.+These tests pin the softened behavior so the 1.0.7 flip is adeliberate change, not a surprise."""import logging@@ -35,7 +35,7 @@ def test_warns_naming_all_unset_vars(bare_app, monkeypatch, caplog):assert len(messages) == 1for var in DB_VARS:assert var in messages[0]- assert "1.0.6" in messages[0]+ assert "1.0.7" in messages[0]def test_warns_only_for_the_unset_vars(bare_app, monkeypatch, caplog):@@ -80,7 +80,7 @@ def test_production_init_starts_on_defaults(bare_app, monkeypatch, caplog):def test_builtin_defaults_still_present():- """Pins the 1.0.5 state; 1.0.6 removes these defaults on purpose.+ """Pins the 1.0.5 state; 1.0.7 removes these defaults on purpose.The class attributes are bound from the environment at importtime, so read them in a subprocess with the four variablesdiff --git a/unraid/warracker.xml b/unraid/warracker.xmlindex a397d7c..23860a0 100644--- a/unraid/warracker.xml+++ b/unraid/warracker.xml@@ -51,11 +51,11 @@Display="always" Required="true" Mask="true"></Config><Config Name="DB_ADMIN_USER" Target="DB_ADMIN_USER" Default="warracker_admin" Mode=""- Description="PostgreSQL admin username, used for database migrations. Set it explicitly: the built-in default is deprecated and will be removed in 1.0.6. Pre-filled with the value Warracker assumes by default; change it if your PostgreSQL admin user differs." Type="Variable"+ Description="PostgreSQL admin username, used for database migrations. Set it explicitly: the built-in default is deprecated and will be removed in 1.0.7. Pre-filled with the value Warracker assumes by default; change it if your PostgreSQL admin user differs." Type="Variable"Display="always" Required="true" Mask="false">warracker_admin</Config><Config Name="DB_ADMIN_PASSWORD" Target="DB_ADMIN_PASSWORD" Default="default_admin_password" Mode=""- Description="PostgreSQL admin password, used for database migrations. Set it explicitly: the built-in default is deprecated and will be removed in 1.0.6. Pre-filled with the value Warracker assumes by default; change it to your PostgreSQL admin password." Type="Variable"+ Description="PostgreSQL admin password, used for database migrations. Set it explicitly: the built-in default is deprecated and will be removed in 1.0.7. Pre-filled with the value Warracker assumes by default; change it to your PostgreSQL admin password." Type="Variable"Display="always" Required="true" Mask="true">default_admin_password</Config><Config Name="SECRET_KEY" Target="SECRET_KEY" Default="" Mode=""