docs(pihole): say how to clear app_password and what the upgrade run does
Build / build (pull_request) Successful in 34s
Lint / renovate-config (pull_request) Successful in 9s
Molecule / select (pull_request) Successful in 9s
Lint / lint (pull_request) Successful in 2m45s
Molecule / scenarios (pull_request) Successful in 3m24s
Molecule / Result (pull_request) Successful in 2s
Build / build (pull_request) Successful in 34s
Lint / renovate-config (pull_request) Successful in 9s
Molecule / select (pull_request) Successful in 9s
Lint / lint (pull_request) Successful in 2m45s
Molecule / scenarios (pull_request) Successful in 3m24s
Molecule / Result (pull_request) Successful in 2s
The refusal message and the changelog fragment now tell the consumer to remove app_password from pihole_overrides, the fragment says the first run after upgrading re-renders pihole.toml and reconfigures Pi-hole, and the role description lists the empty app_password among the conditions it checks. Refs: #383 Assisted-by: Claude Code
This commit is contained in:
1 parent
cb78edff6f
commit
067e0e4b3e
3 files changed
+7
-4
No files matched your search
@@ -4,4 +4,6 @@ breaking_changes:
|
|||||||
pihole - A non-empty ``config.webserver.api.app_password`` is now refused, and ``app_pwhash``
|
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
|
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
|
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.
|
login with the app password replaced the web password. Remove
|
||||||
|
``config.webserver.api.app_password`` from ``pihole_overrides``; the first run after upgrading
|
||||||
|
re-renders ``pihole.toml`` and reconfigures Pi-hole.
|
||||||
@@ -13,8 +13,8 @@ argument_specs:
|
|||||||
over C(pihole_default) in C(defaults/main.yml). The spec types it as a dictionary only, because sub-options
|
over C(pihole_default) in C(defaults/main.yml). The spec types it as a dictionary only, because sub-options
|
||||||
would reject every key it does not list. The merged result is an internal fact and never overwrites the
|
would reject every key it does not list. The merged result is an internal fact and never overwrites the
|
||||||
input. The role fails unless the merged C(config.dns.upstreams) is a non-empty list, C(config.dns.interface)
|
input. The role fails unless the merged C(config.dns.upstreams) is a non-empty list, C(config.dns.interface)
|
||||||
is a non-empty string and C(config.webserver.api.password) is a string other than
|
is a non-empty string, C(config.webserver.api.password) is a string other than
|
||||||
C(changetoyourownpassword).
|
C(changetoyourownpassword) and C(config.webserver.api.app_password) is empty.
|
||||||
- >-
|
- >-
|
||||||
C(pihole_default) (every setting rendered into C(pihole.toml)) and C(pihole_install_script) (the quoted
|
C(pihole_default) (every setting rendered into C(pihole.toml)) and C(pihole_install_script) (the quoted
|
||||||
installer path under C(repo.path)) are role defaults deliberately not listed here, because argument
|
installer path under C(repo.path)) are role defaults deliberately not listed here, because argument
|
||||||
|
|||||||
@@ -62,5 +62,6 @@
|
|||||||
- (__pihole_candidate.config.webserver.api.app_password | default('', true)) == ''
|
- (__pihole_candidate.config.webserver.api.app_password | default('', true)) == ''
|
||||||
fail_msg: >-
|
fail_msg: >-
|
||||||
config.webserver.api.app_password must stay empty: released pihole-FTL replaces the main
|
config.webserver.api.app_password must stay empty: released pihole-FTL replaces the main
|
||||||
web password when someone logs in with an app password the role has hashed (see #541).
|
web password when someone logs in with an app password the role has hashed. Remove
|
||||||
|
app_password from pihole_overrides.
|
||||||
quiet: true
|
quiet: true
|
||||||
Reference in new issue
Block a user