-
Notifications
You must be signed in to change notification settings - Fork 707
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
Keep being redirected to login page with Keycloak OIDC provider and pinniped #7866
Comments
Did you ever resolve this? I have the same issue. I think it has to do with ID token vs Access token. I think Kubernetes is expecting an access token and an id token is being sent. I'm not sure. |
My issue was kubeapps related, there was a indentation error in the pinniped-proxy config . |
Ah, OK thanks. I'm running mine on a K3s cluster at Hetzner with a Hetzner loadbalancer. Pinniped doesn;t seem to like the Hetnzer loadbalancer or something It just refuses to start. (I'm using the latest values.yaml file) from the kubeapps project. |
Just a shot in the dark here but would you be interested in a small 1 hour consult to help us get this going on our cluster? We've got everything up to Keycloak running fine - it's just this last piece we can't seem to figure out. Cheers, Dave |
What refuses to start? Pinniped or pinniped-proxy. Does it throw an error? How could we do this consult? |
Thanks for getting back. We have a k3s cluster at Hetzner with a Hetzner loadbalancer. The plan is to install:
and offer a service to small businesses utilizing Kubeapps. Keycloak is installed and is setup with a proper realm and client/client scopes/mappers/users and it all works and has been tested. The next step was installing Kubeapps and use Keycloak as the oidc provider to Kubeapps. We installed Kubeapps with:
We enabled pinniped in the values file and used a separate ingress.yaml (all attached). Kubeapps comes up when we hit https://kubeapps.saashq.org but bypasses Pinniped and offers login via Token. We can't seem to get it to launch Keycloak and then log us in and redirect to Kubeapps.
OK, UPDATE - I just cleared out ~/.kube/cache/ and now the login is asking for the proper oidc provider. Now it goes to For the consult we can give you access to the test cluster and maybe you could try it from your end and provide some insight. Whatever your hourly rate is. Cheers, Dave |
I can take a look next week if that’s soon enough for you. How can I get back to you? |
No worries, I finally got it going.I had to create an audience in Keycloak and assign to Client. Back in the day aud was automatically included in the id_tokens. Need to add them now. |
Good to hear you got it working! Cheers, Ronald |
My goal is to authenticate to kubeapps with keycloak and pinniped. I have configured everything but i keep bein redirected to the login page...
Here is my values.yaml:
I now have set up the impersonation proxy:
And jwtauthenticator:
With this config i'm able to authenticate to kubeapps with keycloak but after authentication i'm being redirected to the login page. In kubeapps auth-proxy pod logging I see nothing strange and nothing being logged in pinniped-proxy pod!
But in the apiserver logging I see the following:
In the concierge pod logging I do not see any token requests.
I able to get token with pinniped-cli and keycloak/pinniped impersonating proxy:
The text was updated successfully, but these errors were encountered: