diff --git a/changelogs/fragments/383-pihole-app-password.yml b/changelogs/fragments/383-pihole-app-password.yml index 97ce452..2669779 100644 --- a/changelogs/fragments/383-pihole-app-password.yml +++ b/changelogs/fragments/383-pihole-app-password.yml @@ -4,4 +4,6 @@ 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. + 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. diff --git a/roles/pihole/meta/argument_specs.yml b/roles/pihole/meta/argument_specs.yml index b319e6e..6ff862b 100644 --- a/roles/pihole/meta/argument_specs.yml +++ b/roles/pihole/meta/argument_specs.yml @@ -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 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) - is a non-empty string and C(config.webserver.api.password) is a string other than - C(changetoyourownpassword). + is a non-empty string, C(config.webserver.api.password) is a string other than + 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 installer path under C(repo.path)) are role defaults deliberately not listed here, because argument diff --git a/roles/pihole/tasks/validate.yml b/roles/pihole/tasks/validate.yml index 80f18e9..824b55d 100644 --- a/roles/pihole/tasks/validate.yml +++ b/roles/pihole/tasks/validate.yml @@ -62,5 +62,6 @@ - (__pihole_candidate.config.webserver.api.app_password | default('', true)) == '' fail_msg: >- 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