Statping: Admin password environment variable naming seems wrong

Created on 17 May 2020  路  7Comments  路  Source: statping/statping

Describe the bug

Using the wiki page : https://github.com/statping/statping/wiki/Environment-Variables I tried to setup a default "admin password" using the environment variable "ADMIN_PASS" without success.

The problem is that the naming of this variable seems wrong. Indeed, in "types/configs/connection.go" on line 87 we can see that it's looking after a "ADMIN_PASSWORD" environment variable (instead of "ADMIN_PASS".

When I changed it to the correct name, it worked nicely :)

To Reproduce

Steps to reproduce the behavior:

  1. I'm using version: 0.90.39
  2. I configured environment variable "ADMIN_PASS" (with my password as a value)
  3. I cleaned up my database
  4. I started statping and see that the admin password is set to the default value (admin) and not the one that I've put into the env variable.

Expected Behavior

When setting the admin password in env variable I should be able to connect to the dashboard using the env variable value.

(I have already changed the wiki so nobody will have this problem but I think that a consistency pass on the naming of that variable should be done (ADMIN_PASS vs ADMIN_PASSWORD)

Thank you :)

Slack GitHub release Build Status

bug confirm fix

All 7 comments

I think it's a duplicate of the issue #542.

Not really a duplicate imo.

Thank you and good job for this awesome tool :)

Thank you for the update. This was an issue for my installations as well.

I'm going to close this issue.

Do not use ~ADMIN_PASS~ as an environment variable, use ADMIN_PASSWORD.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SaigyoujiYuyuko233 picture SaigyoujiYuyuko233  路  3Comments

majodev picture majodev  路  6Comments

asavoy picture asavoy  路  6Comments

iandk picture iandk  路  7Comments

bash-stack picture bash-stack  路  7Comments