-
-
Notifications
You must be signed in to change notification settings - Fork 324
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
TLS woes #263
Comments
Hard to tell from just that output. Oauth providers have always been hard for us to test, but it looks like you're beyond that stage. Then again we're not really doing a lot of magic to the certs. Does the problem persist with openssl as the tls stack? |
FWIW, if this is for local testing then you could use For production you'd presumably use the in-cluster option instead, where all of the TLS certificates are provided statically. |
@teozkr Using kube proxy works fine for testing. But moving to the cluster gives me much the same situation. Using a plain Caused by: From the pod describe I see the sa is mounted: And to make sure I didn't miss any permissions, the sa is bound to cluster-admin. I'm running with native-tls-vendored. Suggestions are welcome :) [edit] I'm on k8s 1.18, forgot to mention [/edit] |
@sdlarsen What does your |
Yes, I can connect with curl, but only if I add --insecure as the cluster certs are self-signed, which seems to be the issue (for both environments actually).
Which I think is the correct way with self-signed certs? |
No, it should allow the connection if you specify the correct CA explicitly (via |
True, something is off with the certs. Let me fix that and get back to you. |
True, fixing the cert setup solved that. Thank you for the assistance. |
I'm unsure if this is addressed in any other issue (#132 for instance), but my setup is fairly simple:
k8s oauth to github with dex/gangway. The certificate is valid (production cert from letsencrypt).
When trying to connect with the client setup using
let client = Client::try_default().await?;
I get:`Error: ReqwestError: error sending request for url (https://my-cluster/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/collections.blah.test?&force=true&fieldManager=test-operator): error trying to connect: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1913: (unable to get issuer certificate)
Caused by:
0: error sending request for url (https://my-cluster/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/collections.blah.test?&force=true&fieldManager=test-operator): error trying to connect: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1913: (unable to get issuer certificate)
1: error trying to connect: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1913: (unable to get issuer certificate)
2: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1913: (unable to get issuer certificate)
3: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1913:`
Any suggestions? No other tool I've tried refuses to use my current config, so I'm a bit suprised :)
The text was updated successfully, but these errors were encountered: