OTLP HTTP: certifi default breaks TLS behind corporate SSL inspection on macOS/Windows
維護者通常 2 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 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=oropentelemetry_otlp_credential_provider(works; not discoverable for typicalOTLPSpanExporter/ 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 小時
- 30 天內合併 PR
- 16
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
open-telemetry/opentelemetry-python 的其他 Issue
-
References to Archived open-telemetry/oteps可能已有人在做 @RjyavardhanSingh 於 1 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
open-telemetry/opentelemetry-python#5984 · 1 則留言 ·
維護者通常 2 天內回覆
-
Autoconfiguration rejects OTEL_EXPORTER_OTLP_PROTOCOL=http/json可能已有人在做 @WendeelMarinho 於 2 天前認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 82/100
open-telemetry/opentelemetry-python#5981 ·
維護者通常 2 天內回覆
-
MeterProvider raises ValueError on empty or uppercase OTEL_METRICS_EXEMPLAR_FILTER可能已有人在做 @bishalde 於 8 天前認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 83/100
open-telemetry/opentelemetry-python#5948 · 3 則留言 ·
維護者通常 2 天內回覆
-
W3CBaggagePropagator drops a list-member over 4096 bytes that W3C Baggage requires it to propagate可能已有人在做 @codedbyadiiii 於 20 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 70/100
open-telemetry/opentelemetry-python#5913 ·
維護者通常 2 天內回覆
-
otel.sdk.processor.{span,log}.queue.capacity uses synchronous UpDownCounter recorded once in __init__可能重新可做 關聯的 PR 已關閉且未合併。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
open-telemetry/opentelemetry-python#5891 ·
維護者通常 2 天內回覆
查看 open-telemetry/opentelemetry-python 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 66/100
-
bug
難度 2/5 1-3 小時 新手友好度 66/100
raman325/lock_code_manager#1864 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 78/100
521xueweihan/HelloGitHub#4636 ·
-
bug improve content
難度 1/5 1 小時以內 新手友好度 92/100
opensafely/documentation#2102 ·
維護者通常 1 天內回覆