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:
which should print something like:
Now copy the hash (
d7ff0c3cf3be79e0ecd30971c163b6be693fcb26578f18f1b9a3926eaf7b339d) without the
- and patch the secret with the new password hash:
After that you should be able to login with the user
admin and your new password into loft.