umami icon indicating copy to clipboard operation
umami copied to clipboard

Setting the admin password from ENV variables

Open thetillhoff opened this issue 2 years ago • 2 comments

In order to fully support Infrastructure-as-Code settings, changing the admin password without manual intervention would also introduce additional security.

In case someone is actively searching for a new umami instance on a URL, that person could be faster than the administrator of said instance and gain unprivileged access.

Having the option to set the admin password via an environment variable would solve this issue. (And allows to reset the admin password with a simple restart of the instance.)

thetillhoff avatar Aug 05 '22 09:08 thetillhoff

To further support infrastructure-as-code settings, it would be great if one could start umami with a simple configuration file stating which websites should exist. Something like this:

websites.conf

some-website-name,predetermined-website-id
other-website-name,other-website-id

This way, I don't have to manually register my website and then manually configure my frontend to use the given identifier.

stianlagstad avatar Aug 05 '22 11:08 stianlagstad

In case it's helpful to others, here's a way to accomplish both when deploying umami on kubernetes: https://stianlagstad.no/2022/08/deploy-umami-analytics-with-kubernetes/.

stianlagstad avatar Aug 06 '22 19:08 stianlagstad

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] avatar Aug 19 '23 01:08 github-actions[bot]

@mikecao seeing this issue going stale, are there any plans for improving the umami-initial setup without touching the database directly as @stianlagstad described?

If there are no plans, should we close this?

thetillhoff avatar Aug 21 '23 21:08 thetillhoff

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] avatar Oct 22 '23 01:10 github-actions[bot]

Any updates on this issue?

I'm currently facing a situation where I need to reset the admin password, and so far haven't been able to find how to do that. Having something like this would certainly make that easier.

mryechkin avatar Oct 25 '23 01:10 mryechkin

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] avatar Dec 25 '23 01:12 github-actions[bot]

This issue was closed because it has been inactive for 7 days since being marked as stale.

github-actions[bot] avatar Jan 01 '24 01:01 github-actions[bot]

I would still like to see this feature added :(

mryechkin avatar Jan 01 '24 16:01 mryechkin