OTLP HTTP: certifi default breaks TLS behind corporate SSL inspection on macOS/Windows

オープン
#5,880 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python

調査の方向性

Start from the default _build_transport() in the OTLP HTTP exporter, where verify=True makes requests use certifi, and from how OTEL_EXPORTER_OTLP_CERTIFICATE already overrides it. The open question is the design: an opt-in env var, scoped to the exporter, that uses OS trust on darwin and win32 only when no explicit certificate is set. Settle that design with maintainers before coding. Done means the opt-in works behind a TLS-inspecting proxy and the default behaviour is unchanged.

索引モデルが issue の本文から書いたものです。

説明

AI Disclosure: AI generated Issue, human directed.

Is your feature request related to a problem?

OTLP HTTP export fails on macOS/Windows behind TLS inspection (e.g. Zscaler): SSLCertVerificationError: unable to get local issuer certificate, while browsers trust the same host.

Default _build_transport() uses verify=True, so requests validates with certifi, not the OS trust store where inspection roots usually live. OTEL_EXPORTER_OTLP_CERTIFICATE works but requires every dev to export a PEM.

Describe the solution you'd like

Opt-in env (e.g. OTEL_EXPORTER_OTLP_HTTP_USE_SYSTEM_TRUST) to build the default OTLP HTTP requests session with OS-backed TLS on darwin/win32 when no explicit cert env is set—scoped to the exporter only (e.g. truststore on an HTTPAdapter, not global ssl monkeypatching).

Describe alternatives you've considered
  • OTEL_EXPORTER_OTLP_CERTIFICATE / custom PEM per machine
  • Custom session= or opentelemetry_otlp_credential_provider (works; not discoverable for typical OTLPSpanExporter / Phoenix setups)
Additional Context

Repro: HTTPS collector (e.g. https://<host>/v1/traces) from a corp-inspected network. SDK opentelemetry-exporter-otlp-proto-http 1.45.2, Python 3.14, macOS.

Would you like to implement a fix?

Yes

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

主要言語
Python
スター
2.7k
フォーク
1.1k
平均マージ
3日 12時間
マージ済み PR(30日)
16

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

open-telemetry/opentelemetry-python のほかの issue

open-telemetry/opentelemetry-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。