-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker web password handling #1764
Comments
@AliveDevil - moved your comment to the appropriate repo. Here is the relevant code from the container startup script: docker-pi-hole/src/bash_functions.sh Lines 191 to 218 in d82ce16
It's a tricky balance with persistence in these things. When purley checking against the set value in the config file, it's nearly impossible to tell whether it is blank because:
The policy of the container, much like a bare metal install, is to set a random password to prevent someone from accidentally having an insecure interface - especially if they just spin it up on cloud infrastructure and don't think about port forwarding/security. Personally I'd say that environment variables are the best way to persist configuration between container builds, with the exception of the databases obviously. Perhaps the documentation just needs emphasising that the way to explicitly set an empty password is to use the environment variable. |
Yeah, something along those lines - make it abundantly clear that on docker this must be a non-empty password, and the mere existence of the env-variable disables all automatic password generation. |
Agree with environment variable or some how avoid overriding if it's set to blank in pihole.toml. |
Thanks. I was trying to modify the hash based on the pihole.toml and had not read that on the readme. |
Originally posted by @AliveDevil in #5959
The text was updated successfully, but these errors were encountered: