mirror of
https://github.com/plankanban/planka.git
synced 2026-02-25 03:14:50 +03:00
Cannot change password of initial user #619
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alzeebum on GitHub (Dec 14, 2024).
Is this a feature for the backend or frontend?
Frontend
What would you like?
You should be able to change the initial administrative user's password, but you cannot. After installing with the Automated Installation and successfully logging in, the first thing I intended to do was change this password, as the one I entered into the console was intentionally simple. However the "Users" list is empty, and there is no way to change the password in the "profile" section.
It appears the only supported way to change this password is through some backend console magic I am trying to figure out.
Why is this needed?
Changing passwords regularly is basic security policy.
Other information
No response
@meltyshev commented on GitHub (Dec 14, 2024):
Hi! Thanks for reporting this.
I’m not entirely sure how the automatic installer handles this, but the password cannot be changed because the initial user is defined in the environment variables (in the
docker-compose.ymlfile).To fix this, you need to remove the
DEFAULT_ADMIN_*lines from/opt/planka/docker-compose.ymland restart the container. Once done, the default admin user should be fully editable.@alzeebum commented on GitHub (Dec 14, 2024):
Hey Maksim,
There are no config entries with such names, or anything beginning with
DEFAULT_, in the /opt/planka/docker-compose.yml on the host. During the automated install you are prompted for the user details by what appears to be a shell script, I don't know where they go from there.EDIT: Nevermind, there's an
.envthere with them inside.@alzeebum commented on GitHub (Dec 14, 2024):
However, deleting those entries from the .env file and restarting with
docker-compose restartdoes not make the user editable and in fact it reverted my password back to the initial one after I'd changed it via the instructions in the issue 327. I am continuing to investigate.@meltyshev commented on GitHub (Dec 14, 2024):
Oops, you're right!
Hmm, it seems these variables are either defined somewhere else or redefined after the restart. I'll check now to see how it works.
@alzeebum commented on GitHub (Dec 14, 2024):
I may have misspoke earlier. The default admin user still does not appear in the users list when clicking the little people icon, but I can change the password and username now. The first point is weird but not terribly important I suppose.
@meltyshev commented on GitHub (Dec 14, 2024):
Ah, that's expected. This user is the current user and can only be changed through the own settings with confirmation of the current password. However, it might be less confusing if it was displayed there but restricted from being deleted 🤔