Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot login after changing the default password #123

Open
samutamm opened this issue Apr 18, 2022 · 3 comments
Open

Cannot login after changing the default password #123

samutamm opened this issue Apr 18, 2022 · 3 comments

Comments

@samutamm
Copy link

samutamm commented Apr 18, 2022

When I install kstone following minikube installation guide, login in browser http://127.0.0.1:8080/login with default username admin and password [email protected], I'm requested to change the password. After changing the password (to [email protected]*) 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?

@tangcong
Copy link
Contributor

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

@bmson7112
Copy link

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

@wuming333666
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants