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

Use keycloak as Dex OIDC provider, "entity index is invalid(500)" Error occurred #689

Open
jwim5819 opened this issue Mar 8, 2023 · 8 comments
Labels
kind/bug Something isn't working

Comments

@jwim5819
Copy link

jwim5819 commented Mar 8, 2023

I'm trying to connect dex oidc provider as keycloak
here's my dex config
1
after setting everything up.
It looks like a success to login.
login_page_1
login_page_2
login_page_3
2
but "entity index is invalid(500)" error occurred

Is there any solutions?

KubeVela Version
1.7.5

@jwim5819 jwim5819 added the kind/bug Something isn't working label Mar 8, 2023
@jwim5819 jwim5819 changed the title Use keycloak as Dex OIDC provider Use keycloak as Dex OIDC provider, entity index is invalid(500) Error occurred Mar 8, 2023
@jwim5819 jwim5819 changed the title Use keycloak as Dex OIDC provider, entity index is invalid(500) Error occurred Use keycloak as Dex OIDC provider, "entity index is invalid(500)" Error occurred Mar 8, 2023
@barnettZQG
Copy link
Collaborator

@jwim5819 Can you check the logs of the API server?

vela logs -n vela-system addon-velaux -c apiserver

@jwim5819
Copy link
Author

jwim5819 commented Mar 8, 2023

here's API server Pod log and Dex Pod log
apiserver
I0308 08:28:40.315542 1 server.go:271] "request log" clientIP="192.168.174.1" path="/api/v1/auth/login_type" method="GET" status=200 time="6.813222ms" responseSize=23
I0308 08:28:40.333227 1 server.go:271] "request log" clientIP="192.168.174.1" path="/api/v1/auth/dex_config" method="GET" status=200 time="2.964487ms" responseSize=155
E0308 08:28:45.420848 1 bcode.go:111] Business exceptions, error message: entity index is invalid, path:/api/v1/auth/login method:POST
I0308 08:28:45.420970 1 server.go:271] "request log" clientIP="192.168.174.1" path="/api/v1/auth/login" method="POST" status=500 time="47.071691ms" responseSize=63

dex

@barnettZQG
Copy link
Collaborator

@jwim5819 Maybe your user email or name includes invalid symbols to lead to this issue. Do you test with other accounts?

@jwim5819
Copy link
Author

jwim5819 commented Mar 9, 2023

yes i tested Ordinary account but it didn't work either

@jwim5819
Copy link
Author

i solved it.
It happened because there was no db in velaUX

@wonderflow
Copy link
Contributor

@jwim5819 Can you provide the steps about how you solved it here?

@barnettZQG
Copy link
Collaborator

@jwim5819 You are right, this issue only occurs when using the kube-api as the database.

@lucasfcnunes
Copy link

So, can't use kube-api (configmaps and secrets) to config the app?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants