kstone-io / kstone

Kstone is an etcd management platform, providing cluster management, monitoring, backup, inspection, data migration, visual viewing of etcd data, and intelligent diagnosis.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot login after changing the default password

samutamm opened this issue · comments

When I install kstone following minikube installation guide, login in browser http://127.0.0.1:8080/login with default username admin and password adm1n@kstone.io, I'm requested to change the password. After changing the password (to adm1n@kstone.iO*) I cannot sign in with new password. I just get redirected back to http://127.0.0.1:8080/login.
kstone-dashboard-api pod has following logs:

[GIN] 2022/04/18 - 06:30:23 | 401 |     13.0142ms |       127.0.0.1 | GET      "/apis/etcdclusters"
E0418 06:30:25.488243       1 request.go:50] check password error: crypto/bcrypt: hashedPassword is not the hash of the given password
[GIN] 2022/04/18 - 06:30:25 | 401 |     64.4262ms |       127.0.0.1 | POST     "/apis/login"
[GIN] 2022/04/18 - 06:31:26 | 200 |     68.2519ms |       127.0.0.1 | POST     "/apis/login"
[GIN] 2022/04/18 - 06:31:49 | 200 |     75.1253ms |       127.0.0.1 | PUT      "/apis/user"
[GIN] 2022/04/18 - 06:31:53 | 200 |      65.007ms |       127.0.0.1 | POST     "/apis/login"
[GIN] 2022/04/18 - 06:31:54 | 401 |     11.1067ms |       127.0.0.1 | GET      "/apis/etcdclusters"
[GIN] 2022/04/18 - 06:43:00 | 200 |     70.2775ms |       127.0.0.1 | POST     "/apis/login"
[GIN] 2022/04/18 - 06:43:00 | 401 |     10.5591ms |       127.0.0.1 | GET      "/apis/etcdclusters"

Environment

kstone tag is v0.2.0-beta.1. I have similar installation like the minikube example, running in kind cluster locally on my laptop. Kubernetes version is v1.23.3 and I noticed that you recommend to use older versions between 1.14 and 1.20. However I think that my problem might not be due to unsupported Kubernetes version?

This seems to have nothing to do with the k8s version. could it be that the password is wrong after you reset it? we have not received other feedback at this time. you can refer to this document to reset your password. https://github.com/tkestack/kstone/tree/master/docs/proposal/authentication-support

I also got the same error, did you solve it?

you should write your serviceAccout's token in env "KUBE_TOKEN"