After using the chart to deploy, modify the admin user password on the web. When gitea restarts, the admin password is reset. #320

Closed
opened 2022-05-07 03:45:11 +00:00 by kychen · 2 comments

I see a password reset in the init script init.yaml, what is the purpose of this? Will there be any bad effects if I remove the admin password reset? Will the configured username and password be used internally by gitea?

https://gitea.com/gitea/helm-chart/src/branch/master/templates/gitea/init.yaml#L60-L64
image

I think here the password should not be reset after checking that the user already exists. This will make users confused, I changed the admin password, and the password was reset after gitea restarted.

I see a password reset in the init script init.yaml, what is the purpose of this? Will there be any bad effects if I remove the admin password reset? Will the configured username and password be used internally by gitea? https://gitea.com/gitea/helm-chart/src/branch/master/templates/gitea/init.yaml#L60-L64 ![image](/attachments/13b399fc-c637-47d8-98d8-1eff49a55479) I think here the password should not be reset after checking that the user already exists. This will make users confused, I changed the admin password, and the password was reset after gitea restarted.
Member

I don't think the admin password has any effect on the internal Gitea logic. So removing that part for your release shouldn't do any harm.

The idea behind this "reset" is to configure the admin user through the Helm Chart. This also includes changing the password for an existing environment.

If you have changed the password via GUI after starting Gitea I recommend persisting that password for the Helm Chart as well. Otherwise, it could become confusing as the values.yaml usually represent the actual configuration state of the application. If you want to change the password because it is in plaintext in the configuration, you can use a Kubernetes secret as referenced source for the admin configuration. ?

I don't think the admin password has any effect on the internal Gitea logic. So removing that part for your release shouldn't do any harm. The idea behind this "reset" is to configure the admin user through the Helm Chart. This also includes changing the password for an existing environment. If you have changed the password via GUI after starting Gitea I recommend persisting that password for the Helm Chart as well. Otherwise, it could become confusing as the values.yaml usually represent the actual configuration state of the application. If you want to change the password because it is in plaintext in the configuration, you can use a Kubernetes secret as referenced source for the admin configuration. ?
justusbunsi added the
kind
question
label 2022-07-05 10:06:37 +00:00
Member

Closing it as answered question for now. Feel free to reopen it.

Closing it as answered question for now. Feel free to reopen it.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/helm-chart#320
No description provided.