-
Notifications
You must be signed in to change notification settings - Fork 53
x509: certificate signed by unknown authority #101
Comments
Hi @kcyea , somehow I am not able to reproduce locally this issue. Let me double check and check if the new root CA could have impacted the exporter. |
By quickly looking at the TLS certificates bundled with the exporter, it looks valid. It includes Are you using a HTTPS proxy? If not, could you provide the output of |
Hi @Dabz, thanks for your prompt response. By the way, how do I check if I am using the HTTPS proxy? Our confluent cloud has a self signed certificate, will that caused an issue? |
By running the docker build using the Dockerfile, it got the following error:
By running |
I am not sure why the docker build failed (I assume because |
Hi @Dabz, I think I couldn't share it because it contains the certificate information, sorry about that. But i had mock the information and the output is similar to something like the following, not sure if you able to track something?
|
Hi, the problem is that there is a proxy between the exporter and the Metrics API endpoint. The only way to fix it is to trust your custom CA in the exporter, to do that, you will need to add your certificate in https://github.com/Dabz/ccloudexporter/blob/master/Dockerfile#L9 and rebuild the image. You could also see if there is a way to bypass the proxy. I hope that's clear |
Thanks for your explanation @Dabz . I will try to add the certificate but rebuild the image by using docker build? |
Yeah, you would need to do a |
Thanks @Dabz. I tried to rebuild the docker and it showed me the error I showed to you earlier.
It seems that it related to client_golang as well :( |
oh yeah, goland is failing to download dependencies due to the same x509 issue. I am not sure how to bypass this issue . |
Yeah, it is not helping even I switch the sequence. Seem not something that easy to fix :) |
It looks like golang is fetching TLS trusted certs from: https://stackoverflow.com/questions/40051213/where-is-golang-picking-up-root-cas-from . You could also build your image in a non-proxy environment then export/import it to your env |
Hi All,
I am trying to run the exporter by using Docker command to extract metrics from our confluent cloud setup.
But I am getting the following error:
Is it due to we enable the X.509 certificate at confluent cloud? Anyone know how to solve it? Appreciate your help. Thanks.
The text was updated successfully, but these errors were encountered: