opentelemetry-specification icon indicating copy to clipboard operation
opentelemetry-specification copied to clipboard

Add SDK env variable for OTLP TLS skip verify

Open pavolloffay opened this issue 1 year ago • 3 comments

What are you trying to achieve?

I would like to configure OTLP exporter in SDK with env var to skip SSL verification. The variable is not currently supported https://opentelemetry.io/docs/specs/otel/protocol/exporter/

What did you expect to see?

Additional context.

Created from https://github.com/open-telemetry/opentelemetry-operator/issues/1818

pavolloffay avatar Oct 17 '24 14:10 pavolloffay

Thanks @pavolloffay , there's currently a moratorium on env vars as described in this comment

https://github.com/open-telemetry/opentelemetry-specification/issues/2891#issuecomment-1289241503

I have added this to the Configuration SIG backlog and they will be able to pick it up as they stabilise declarative configuration.

danielgblanco avatar Oct 21 '24 09:10 danielgblanco

How is this different from OTEL_EXPORTER_OTLP_INSECURE ?

marcalff avatar Nov 08 '24 00:11 marcalff

The difference, as I understand it, is that OTEL_EXPORTER_OTLP_INSECURE results in no TLS encryption, while this requested feature would allow for TLS encryption while skipping certification verification.

danielgblanco avatar Nov 15 '24 00:11 danielgblanco

Hi !

Having a dedicated config option/env variable to disable certificate validation would be great, in particular for use-cases that involve local deployments and self-signed certificates.

Since exporter options are also defined on a per-signal basis, maybe as an alternative we could use a "magic value" with the existing OTEL_EXPORTER_OTLP_CERTIFICATE config option and its per-signal alternatives. For example setting OTEL_EXPORTER_OTLP_CERTIFICATE=* could work without breaking existing implementations as * is not a suitable file path.

SylvainJuge avatar Jul 11 '25 12:07 SylvainJuge