-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
OTLP/HTTP Exporter does not respect tls/insecure setting #4829
Comments
@js8080 is it possible you're looking for |
Hmm, maybe... Although as documented in the OTLP/HTTP Exporter README:
|
You are specifying endpoint: http://hostname/tempo-gateway/otlp |
Yes because I want to use TLS, I just didn't want to verify the server certificate like the OTLP/HTTP Exporter README describes the |
True, sorry, I misunderstood the original problem. |
Ah yes, in this case if |
@codeboten I have to go through an approval process from my company to contribute so it's probably more straightforward for you. |
👍 np, thanks for reporting this @js8080! |
The otlpexporter and otlphttpexporter README files contained duplicate information about TLS configuration, some of which was incorrect. Fix open-telemetry#4829
The otlpexporter and otlphttpexporter README files contained duplicate information about TLS configuration, some of which was incorrect. Fix #4829
For me, the insecure_skip_verify=True also does not work. It says that it is an unexpected keyword argument. |
@anujap18 can you provide collector version information along with a configuration example? |
I am actually trying to simulate collector data in otlp format and push to grpc client. I am using OTLPMetricExporter ([https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/otlphttpexporter/README.md]) to push data to the grpc client. So, in that if I add this arg insecure_skip_verify=True, it says invalid argument. insecure=True also does not work. |
I just tested the following configuration and it worked w/ the latest collector:
|
when i use insecure and insecure_skip_verify params, collector throws error
|
@zekiahmetbayar can you paste your configuration? I just re-tested the config in my previous comment and it worked as expected |
Describe the bug
The OTLP/HTTP Exporter has a documented configuration option for skipping TLS verification, e.g.
Unfortunately, it does not seem to be respected in otel/collector:0.44.0
Steps to reproduce
My collector config:
I then start the collector using the following docker-compose file, mounting the config above into the container as
/etc/otel-config.yaml
:I then send a trace over to the collector from my application and it outputs the following error:
So it is clearly performing TLS verification even though I have
tls/insecure: true
What did you expect to see?
I expected the collector to skip TLS verification as documented.
What did you see instead?
The collector is still attempting to verify the server TLS certificate.
What version did you use?
Version: v0.44.0
What config did you use?
Environment
OS: Ubuntu 20.04
The text was updated successfully, but these errors were encountered: