-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Unable to interact with cluster through Teleport #3242
Comments
What exception are you seeing? |
Here is the exception I’m seeing:
It seems that somehow the authentication process which uses Teleport is not working and therefore the request is not authorized by the API. |
Without access to a teleport cluster it's kind of hard to debug this. The relevant exec code is here:
Can you turn on debug logging and see what it seems to be doing? |
By “debug logging” I guess you meant running maven with the Here are the logs:
Let me know if I should enable any other option. |
Can you try it adding I'm more interested in the logs when the kubeconfig is loaded, vs. the logs when the call is made. |
I added the option, ending up with this command:
There aren’t any further logs than the ones I sent earlier. I tried with |
I'm specifically trying to see if these log lines are loading:
My bet is that the |
That’s indeed what is happening here… I tried several solutions to pass the property down to the java exec, without any success. In the end, I decided to manually edit the code to use the Here are the relevant logs you were seeking:
So in the end it seems that the authentication part is working fine with the exec command… The issue seems to be elsewhere. |
Given that it is loading the cert, this all gets injected into the request here: How long do these teleport certificates last? The authenticator only loads it at config loading time, and doesn't reload ever, so if there is a short expiration time that might cause it. |
I checked by manually running the I wondered if this issue could somehow be linked to the lack of support for |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
Describe the bug
Using a cluster with authn via Teleport, it is not possible to interact with the cluster.
This is working fine with
kubectl
and after testing with the Python client it works too. This seems to only happen with the Java client (I didn’t test other clients though).Client Version
20
Kubernetes Version
1.28.6
Java Version
17
To Reproduce
tsh
Edit the
KubeConfigFileClientExample
:Run the example:
Expected behavior
The namespace is created.
KubeConfig
Server (please complete the following information):
Additional context
My user has limited permissions, but I should be able to create a namespace:
The text was updated successfully, but these errors were encountered: