Added
- Sign-In Page for Docker and Standalone: The app now shows its own username and password form instead of the browser's HTTP Basic dialog. This works in the Home Assistant Companion app and other embedded webviews, where the native dialog never appears. Sessions last 30 days, and
/logoutsigns out. The password is set withHATM_PASSWORD, or generated on first start and saved to/data/api-password. Changing it signs out existing sessions. - API Auth for the Container: Standalone and Docker installs now ask for a password on
/apiroutes. SetHATM_USERNAMEto pick the username. The/page stays reachable so the sign-in page can load. - Add-On Auth Option: Added
api_auth(defaultfalse) andapi_auth_passwordfor add-on users who publish port 54000 directly. Withapi_authoff, Ingress and Home Assistant authentication still protect the panel. - Winter Mode: A new toggle in Settings that makes snow fall across the app window. Off by default, and skipped when the system asks for reduced motion.
- Settings Links: The settings sheet now links to GitHub, Version Control, and Donate, with the links sitting below the Save and Cancel buttons.
- Tests: Path-safety unit tests plus an end-to-end test for auth, containment, and add-on mode.
Fixed & Improved
- Tab Switching: Switching tabs clears the right panel and shows "Select a backup to view ..." instead of leaving the previous tab's files on screen.
- Time Formats: Backup timestamps follow the selected language's time format, so French and other 24-hour locales no longer show AM/PM.
- No Browser Password Dialog: The native password dialog no longer interrupts the app before it can show the sign-in page.
- Loopback by Default: Bare-metal runs bind to
127.0.0.1. The Docker image still listens on all interfaces. - Maintenance: Updated server dependencies (Express 4.22.3,
undicireplacingnode-fetch) to clear all npm audit advisories.
Security Hardening
- Exact-Match CORS Allowlist:
HATM_ALLOWED_ORIGINStakes a comma-separated list of exact origins. No CORS headers are sent when the list is empty, cross-site writes are rejected, and Ingress headers are trusted only when they come from the Supervisor. - Contained File Operations: Delete, lock, export, scan, and every restore now resolve paths against the configured config and backup folders, so an operation cannot reach outside them.
- Scope: The add-on behind Ingress was not exposed as long as port 54000 was not published. The standalone Docker deployment was the one that needed the password and the origin checks.