I could not find in the Harvester API documentatio...
# harvester
s
I could not find in the Harvester API documentation if there is a way to anonymously set the first login password for Harvester 1.6.1. Does anyone have knowledge of how to do this? This messes up our automation setup.
t
s
I don't even know you, rude. ha
thank you
t
haha love you too bro.
s
lol 🫶
b
You can generate the password hash yourself:
htpasswd -bnBC 10 "" "very-secret-password" | tr -d ':\n' | sed "s/\$2y/\$2a/"
Then find the admin user with
kubectl get user -o custom-columns='NAME:.metadata.name,DISPLAY_NAME:.displayName'
. It's the one with the "Default Admin" as display name. Edit (or patch) the user object and set "password" to the generated hash. 100% unsupported, but working.
s
ah okay, cool, thank you Armin. Yeah this will help since I am fully automated the entire build