-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Set value of admin password in config not working #67
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐛 bug, please make sure you include steps to reproduce it. Also, logs, error messages and information about your hardware might be useful. |
FYI, I was able to manually change password via the following, but I'm not sure the change will survive a container update. I'm assuming there is a better/cleaner way to do this.
|
The underlying issue is that the ini file takes precedence over the environment variables. The reason the password cannot be changed from the UI is to do with the configuration required to support both ingress and external access. In my view there really isn't much that can be done here, the other option would be I guess to create a new user and delete the original. I would assume that your password reset command should be persistent, perhaps you could confirm? |
Just read your forum post, and re-read the comment, if it is persistent after a restart it will be persistent from an update. |
OK, then it would seem this is a useable workaround to set the password. Since the readme docs say to change the default admin password, it would be a good idea to document this process until a cleaner solution comes along. |
@sinclairpaul Can a plug-in run a program after container creation? If so, what if there was a value in the plugin config yaml like:
And the plug-in code ran the following command when the container started:
|
Anything is possible, however it can be challenging as we would need to: Confirm admin actually exists, or pass both user and password Either that or we add in some other way to host a method of changing passwords. At this point in time, my recommendation is to create a new user, set the password to what you want, and delete the admin user. Although not ideal, it is the only thing I can see happening in the short term. |
Hi,
This settings seems to be ignored (just as your setting). In the log of the add-on i see, what you can see below. So first it recognizes my setting (to user grafana2.ini) and then i says it is using the original file within the docker i guess):
Is it not possible to change the config location to a file outsite the docker image? |
Same with
Log shows:
... but still is set as false once grafana runs. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi, any news on this? How change default admin password? Thanks |
Problem/Motivation
Trying to change the default
admin
user password. The following does not work as value in/etc/grafana/grafana.ini
within the container still showshassio
Expected behavior
The
admin
user password is updated to the value specified.Actual behavior
Default password remains
Steps to reproduce
Use the above config, setting the value of
GF_SECURITY_ADMIN_PASSWORD
and restart the container. The default password is not updated.The text was updated successfully, but these errors were encountered: