-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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: failed to verify certificate: x509: certificate signed by unknown authority #25978
Comments
First, try setting After doing this, what happens when you visit |
Thank you for replying. After setting it up, it didn't do anything. accessing the same URL still gives me the same error message |
What is the error message you get in the browser? |
|
It doesn't look like your cluster name matches your Cloudflare DNS record - your DNS record is for You mayneed to set the public address in your values to match the full FQDN on the DNS record and then redeploy: publicAddr: ['teleport.xxx.test.dev:443'] Also, can you share the output of these commands (with the base64 payloads/values redacted):
|
Sorry I'm just giving you an example. My DNS record is for
|
OK, cool, that should be fine. Can you also share the output of |
|
Yep, looks good to me. I guess the issue is definitely between Cloudflare and the Teleport load balancer. What happens if you run Alternatively, try disabling the Cloudflare forwarding for the DNS record and have it connect directly - what happens? We need to make sure that the load balancer itself is actually responding correctly with a Teleport page before adding the Cloudflare element in. |
If I ping If I switch off proxy DNS, all the traffic will go directly to
You can also give it a try yourself. |
I can't hit that address myself, it doesn't respond:
Is there a firewall or something in place to prevent direct connections? The response you see without the Cloudflare proxying looks like exactly what I'd expect to see, so it seems like maybe there's a connection issue between Cloudflare and the Kubernetes LB? |
I was suggesting maybe you could get a Cloudflare account and try to replicate what I'm doing
because I used the Cloudflare mTLS, so
I'm not sure what you mean by |
@webvictim Please let me know when you have some updates. Thank you so much |
After investigation, I have found that Teleport does not work correctly when deployed behind "proxied" Cloudflare DNS records. This is due to the fact that Cloudflare does not support Teleport's custom ALPN upgrades through its proxy, only standard websocket upgrades. An issue to work around this behaviour is tracked here on the Teleport side: #30493 If you switch to "DNS only" records on Cloudflare, open up traffic to the internet and still experience connectivity issues, please reopen this issue. |
Expected behavior:
Access the self-hosted teleport cluster domain from my browser, and expect it to work
Current behavior:
Seeing errors on the domain page
Info for debugging:
I'm trying to use the TLS cert from Cloudflare. If I don't use the existing TLS, it would work.
Below is what I did.
used
teleport/teleport-cluster
chart with version:13.0.0
followed the instructions in here and here created 2 secrets files.
My values file for
teleport-cluster
releaseBoth 2 secrets are there and all pods are running okay
After I setup the proxy DNS record in Cloudflare
My domain in Cloudflare is matching whatever value I set in the
clusterName
in the values file forteleport-cluster
. Access my set-up domain in my browser, but the proxy pod throws errors.Logs from proxy pod
How can I fix it? Thanks very much
The text was updated successfully, but these errors were encountered: