Skip to content

🛡️ Warracker is an open source, self-hostable warranty tracker to monitor expirations, store receipts, files. You own the data, your rules!

Merge expiry history (#209) into main

Omega (QA)7c2674baac15
diff --cc CHANGELOG.md
index b770445,f3ec16a..ff03331
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -2,9 -2,8 +2,12 @@@
## 1.0.8 - Unreleased
+- **Product photo fetch pins the connection to the validated address (GHSA-7rwc-pg49-r48w):** the photo-by-URL fetch used to validate a hostname and then let the HTTP client resolve it again at connect time, so a DNS answer that changed between the two lookups could steer the connection to a private address the guard never saw. The fetch now resolves each hop hostname exactly once, validates every returned address, and connects to the first public one, with no second lookup and no failover. For https the connection still presents the original hostname as SNI and verifies the certificate against it, and the Host header still carries the original hostname. The fetch also no longer follows environment proxy settings, since a proxy would resolve the hostname itself.
+ - _Files: `backend/warranties_routes.py`, `tests/test_photo_url.py`_
+
+ - **Warranty expiration change history (#209):** editing a warranty's expiration date, duration, or lifetime status now records the transition (previous value, new value, timestamp, editor, and an optional reason up to 255 characters) in a new `warranty_expiry_history` table without automatically mutating dates from claims. Warranties with recorded changes show a subtle clickable history badge next to the expiration date across the dashboard and Status page, opening an Expiry History modal; the Status page detail row and the Edit Warranty modal also display the change history, and the Edit Warranty modal dynamically reveals the optional reason field only when expiration inputs are modified.
- - _Files: `backend/migrations/056_create_warranty_expiry_history.sql`, `backend/warranties_routes.py`, `backend/statistics_routes.py`, `frontend/js/components/expiryHistory.js`, `frontend/js/components/editModal.js`, `frontend/js/components/warrantyRenderer.js`, `frontend/js/components/ui.js`, `frontend/js/controllers/warrantyListController.js`, `frontend/js/index.js`, `frontend/index.html`, `frontend/status.html`, `frontend/script.js`, `frontend/status.js`, `frontend/style.css`, `frontend/sw.js`, `locales/*/translation.json`, `tests/test_warranty_expiry_history.py`_
++ - _Files: `backend/migrations/057_create_warranty_expiry_history.sql`, `backend/warranties_routes.py`, `backend/statistics_routes.py`, `frontend/js/components/expiryHistory.js`, `frontend/js/components/editModal.js`, `frontend/js/components/warrantyRenderer.js`, `frontend/js/components/ui.js`, `frontend/js/controllers/warrantyListController.js`, `frontend/js/index.js`, `frontend/index.html`, `frontend/status.html`, `frontend/script.js`, `frontend/status.js`, `frontend/style.css`, `frontend/sw.js`, `locales/*/translation.json`, `tests/test_warranty_expiry_history.py`_
++
- **Security and Python dependency updates (#295):** Apprise moves from 2.2.0 to 2.3.0, carrying upstream security fix GHSA-rmjg-h4cf-m74j along with OAuth token redaction in debug logs, slow-attachment timeout protection, and new notification services. Authlib moves from 1.9.5 to 1.9.10 (five patch releases for the OIDC client stack), and `email-validator` moves from 2.3.0 to 2.4.0 (enforcing IDNA Bidi rules, rejecting overlong IDN domains before encoding, and fixing quoted local-part normalization).
- _Files: `backend/requirements.txt`_
- **Docker base image and BuildKit syntax refreshed (#290, #296):** the pinned `python:3.15-slim-trixie` base image digest was refreshed in both Dockerfile stages to pick up upstream Python and Debian Trixie security updates, and the BuildKit Dockerfile syntax moves from 1.28.0 to 1.29.0.
diff --cc backend/migrations/057_create_warranty_expiry_history.sql
index 0000000,49cbeb0..49cbeb0
mode 000000,100644..100644
--- a/backend/migrations/057_create_warranty_expiry_history.sql
+++ b/backend/migrations/057_create_warranty_expiry_history.sql