OTLP HTTP: certifi default breaks TLS behind corporate SSL inspection on macOS/Windows
Maintainer antworten meist innerhalb von 2 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- python
- Bereich
- observability, security
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Python
- Sterne
- 2.7k
- Forks
- 1.1k
- Ø Merge
- 3 T. 12 Std.
- Gemergte PRs (30 T.)
- 16
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus open-telemetry/opentelemetry-python
-
References to Archived open-telemetry/otepsEvtl. vergeben @RjyavardhanSingh hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
open-telemetry/opentelemetry-python#5984 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Autoconfiguration rejects OTEL_EXPORTER_OTLP_PROTOCOL=http/jsonEvtl. vergeben @WendeelMarinho hat das vor 2 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
open-telemetry/opentelemetry-python#5981 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
MeterProvider raises ValueError on empty or uppercase OTEL_METRICS_EXEMPLAR_FILTEREvtl. vergeben @bishalde hat das vor 8 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
open-telemetry/opentelemetry-python#5948 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 2 Tagen
-
W3CBaggagePropagator drops a list-member over 4096 bytes that W3C Baggage requires it to propagateEvtl. vergeben @codedbyadiiii hat das vor 20 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
open-telemetry/opentelemetry-python#5913 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
otel.sdk.processor.{span,log}.queue.capacity uses synchronous UpDownCounter recorded once in __init__Evtl. wieder frei Ein Pull Request dazu wurde ohne Merge geschlossen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
open-telemetry/opentelemetry-python#5891 ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in open-telemetry/opentelemetry-python
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug improve content
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
opensafely/documentation#2102 ·
Maintainer antworten meist innerhalb von 1 Tag
-
difficulty:1 documentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
MakazhanAlpamys/Soup#3533 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
onyx-dot-app/onyx#18730 ·
Maintainer antworten meist innerhalb von 1 Tag