hassio-addons / addon-grafana

Grafana - Home Assistant Community Add-ons
https://addons.community
MIT License
221 stars 61 forks source link

Default Admin Password Can't Be Changed #106

Closed ehbush closed 3 years ago

ehbush commented 3 years ago

Problem/Motivation

I may just be being dense, and I apologise if that is the case - but in attempting to change the default user's password, I was greeted with a error message of:

You cannot change password when ldap or auth proxy authentication is enabled.

Expected behavior

Expected to be able to change the password for the user in Grafana (in this case, the default admin user's pass)

Actual behavior

You cannot change password when ldap or auth proxy authentication is enabled.

Steps to reproduce

Brand new install of InfluxDB HASS Addon, followed-up by installing this Grafana add-on.

Proposed changes

Not sure what the error is, but in poking around it appears that auth_proxy is enabled (I assume for the creation of the initial user and/or because of the iframing or the way hass handle's add-ons?). Additionally, both auth_generic_oauth and auth_gitlab are enabled (though I believe this is unrelated, just making the observation since I'm not entirely certain where the issue may be).

The documentation here suggests changing the default password of course, but I must be missing something because it cannot be performed out-the-box as far as I can tell.

sinclairpaul commented 3 years ago

Unfortunately it is a side effect of how we provide both Ingress and direct access.

The only workaround is to create a new user and delete the original one (while updating the addon config).

I'll do a PR on the docs at some point.

github-actions[bot] commented 3 years ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!