fix(pihole)!: refuse a non-empty app password and render app_pwhash empty

Released pihole-FTL checks an app_pwhash that does not start with `$` as a
legacy double-SHA256 hash and, on a match, upgrades it to a BALLOON hash
written into the main webserver.api.pwhash. One login with the app
password the role rendered therefore replaced the web password. FTL
master fixes this, no release has it yet, and the role does not pin FTL.

validate.yml now refuses a non-empty config.webserver.api.app_password,
and the template always renders app_pwhash = "", which FTL treats as app
passwords disabled. The key stays in the defaults; only a value is
refused. Molecule verifies the rendered empty hash and the new refusal.

BREAKING CHANGE: a non-empty config.webserver.api.app_password now fails
the role, and app_pwhash always renders empty.

Refs: #383
Assisted-by: Claude Code
This commit is contained in:
Defame1297 committed 2026-12-06 21:35:12 +00:00
1 parent 7cb99de32d
commit cb78edff6f
7 files changed
+37 -7

No files matched your search

@@ -0,0 +1,7 @@
---
breaking_changes:
- >-
pihole - A non-empty ``config.webserver.api.app_password`` is now refused, and ``app_pwhash``
always renders empty, which disables app passwords. Released pihole-FTL upgrades a
legacy-hashed app password on login by writing the new hash into the main ``pwhash``, so one
login with the app password replaced the web password.