2023-01-22 Pi-hole admin password changes - master branch - PR 1 of 3 #648
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Circa July 9, 2022 docker-pi-hole PR 1106 made some significant changes to how the admin password is handled. The only documentation for this change was in
Changelog 2022.07:
This change was reported on Discord.
To summarise the new behaviour:
WEBPASSWORD
is not set on first launch, a random password is generated.WEBPASSWORD
is not set on second-or-subsequent launch, whatever password was already in effect is re-used. This also applies when there is no admin password.WEBPASSWORD
is defined but has a null value, any pre-existing password is cleared and the Web UI bypasses the login screen.WEBPASSWORD
is defined and has a value, that value is always used to update the admin password stored internally.This PR adjusts the IOTstack Pi-hole template to default to the third option above (ie no admin password). This avoids the need for any "build" process and the need to set/generate any password, and obviates the need for the associated Python scripts which have been removed.
A comment is added to the service definition template directing users to the IOTstack wiki page where the behaviour of
WEBPASSWORD
is documented in full.This change should only affect new users.
Any existing users who had followed the previous procedure of selecting Pi-hole, choosing a password or allowing one to be generated, and bringing up the container would have an admin password matching the value of
WEBPASSWORD
.Any existing users who had reset their password via:
will either have:
WEBPASSWORD
on each launch.WEBPASSWORD
.WEBPASSWORD
from their list of environment variables. The July 9 2022 changes would continue to use the existing password.This PR also takes the opportunity to:
~/IOTstack/.env
or defaults toEtc/UTC
.IOTstack Pi-hole documentation updated.
Signed-off-by: Phill Kelley [email protected]