-
Notifications
You must be signed in to change notification settings - Fork 284
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
OIDC Login Support #1308
Comments
One more thing:
And using the returned token in the
|
Hey everyone, so the issue keeps getting weirder. I had installed RD via Homebrew, which as you know forces us to delete binaries (eg. So I uninstalled RD, installed the binaries ( But now I'm even more stumped: Is the I'm sorry if this a stupid issue ,but I don't really know what is happening ahah. Well it's fixed for now, by installing my own |
I'm running into exactly the same issue. What I've found is that if you're patient and wait for long enough (in my case it's around 10 minutes) you eventually get a response. |
I had the same issue when I was trying to install |
How do you edit the kube api? I've been looking but the answers I come across seem to suggest that I need to edit a config before the server starts. |
Unfortunately that didn't fix it for me. |
Just spent a lot of time debugging this issue on the
from my |
We are hitting this as well, it seems something about the kubectl with rancher-desktop is breaking when using
Then eventually we see |
Also just had this issue. It is specific to using kuberlr. Rancher aliases kubectl to kuberlr and then sets itself as the first entry in the path. This breaks any OIDC based clusters. If you do a |
Until this problem is fixed, I have just changed the entrypoint for the exec login from instead of being a user:
exec:
apiVersion: client.authentication.k8s.io/v1beta1
command: ../.krew/bin/kubectl-oidc_login
args:
- get-token
- --oidc-issuer-url=... |
|
still have this problem, could i help the rancher team with providing some sort of extra info? What do you need? |
@gvlekke It's not the rancher issue, but kuberlr flavio/kuberlr#37 as mentioned above |
Ah thanks didn't saw that part. So rancher uses the kuberlr, that explains why if i remove kubectl r |
Problem --- As raised in flavio#37 and in rancher-sandbox/rancher-desktop#1308, When using kubelogin or any other credentials benefiting from kubectl plugins, an infinite recursion loop happens. kuberlr is designed to be a built-in replacement for `kubectl` and hence replaces the `kubectl` command in the `PATH`. Using kubectl exec plugin configured as below, the Kubernetes version client will systematically execute kubectl to obtain credentials to the cluster. This will result calling `kuberlr` which will try to get the version again. ```yaml - name: schip-oidc user: exec: apiVersion: client.authentication.k8s.io/v1beta1 args: - oidc-login - get-token - --oidc-issuer-url=https://auth.example.com - --oidc-client-id=kubelogin command: kubectl ``` To prevent this infinite loop, mark the execution of `KubectlVersionToUse` in an environment variable. This way, when `kuberlr` is executed again to authenticate to Kubernetes so it can retrieve the Kubernetes version, it will systematically use the latest stable Kubectl version and avoid the infinite recursion loop. fixes: flavio#37 fixes: rancher-sandbox/rancher-desktop#1308
Hi! |
Rancher Desktop Version
0.7.1
Rancher Desktop K8s Version
1.23.1, 1.20.14
What operating system are you using?
macOS
Operating System / Build Version
macOS Big Sur v11.6.2
What CPU architecture are you using?
arm64 (Apple Silicon)
Linux only: what package format did you use to install Rancher Desktop?
No response
Windows User Only
No response
Actual Behavior
I'm using a
context
in a kube config file with theuser
as follows:Every time I try to use the
kubectl
command it prints out the error, over and over again:Until it prints out:
Finally it prints out endlessly:
Unfortunately the Rancher Desktop logs don't output anything, even in debug mode.
Steps to Reproduce
contexts
in the Kubernetes config file to use theoidc-login
command, like this:kubectl
, eg:kubectl get ns
;Result
Expected Behavior
Connecting to the cluster.
Additional Information
The cluster I'm trying to connect is also behind a VPN. I don't know if it's in line with #722 but every issue about company VPNs is on Windows platform, so I decided to submit here my own.
I also tried it in a Mac with intel processor and the result is the same.
Thanks for the support.
The text was updated successfully, but these errors were encountered: