If you have lost the password for a loft user, you can also reset it via kubectl. Make sure you have cluster wide access to the kubernetes cluster where loft is running in.
Find the kubernetes secret with the password hash
In order to find the kubernetes secret where the password hash for a specific user is stored, run the following command:
The important part of the yaml is the password ref, which holds the reference for the secret where the password is stored.
Reset the password
The next step is to create a sha256 hash of your new password:
Patch the secret with the new password hash:
After that you should be able to login with your new password into loft.