Skip to content

feat(configuration): add TLS/mTLS support to declarative configuration - #5781

Open
herin049 wants to merge 10 commits into
open-telemetry:mainfrom
herin049:feat/config-tls
Open

herin049 wants to merge 10 commits into
open-telemetry:mainfrom
herin049:feat/config-tls

Conversation

@herin049

Copy link
Copy Markdown
Contributor

Description

Adds support for configuring TLS/mTLS in opentelemetry-configuration for gRPC/HTTP exporters.

Fixes #5670

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • I am a human and not a bot
  • I have run tox -e precommit
  • I have run tox -e typecheck
  • I have run the relevant tests and linting tox environments
  • This requires the following PR in contrib:

@herin049
herin049 requested a review from a team as a code owner October 14, 2026 03:22
@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Pull request dashboard status

Waiting on reviewers · refreshed 2026-11-09 22:27 UTC

Review the latest changes.

Also blocked by: Merge conflicts.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

All three gRPC factories let tls.insecure=False override explicit HTTP endpoints, breaking plaintext connections.

1 open finding
What changed in this PR

Adds declarative TLS/mTLS configuration for OTLP trace, metric, and log exporters, addressing #5670.

Changes:

  • Forwards HTTP certificate paths and builds gRPC credentials.
  • Adds shared TLS validation and file-reading helpers.
  • Adds TLS tests and a changelog entry.
File Description
opentelemetry-configuration/​tests/​test_tracer_provider.py Tests trace exporter TLS settings.
opentelemetry-configuration/​tests/​test_meter_provider.py Tests metric exporter TLS settings.
opentelemetry-configuration/​tests/​test_logger_provider.py Tests log exporter TLS settings.
opentelemetry-configuration/​tests/​test_common.py Tests validation and credential helpers.
opentelemetry-configuration/​src/​opentelemetry/​configuration/​_tracer_provider.py Wires TLS into trace exporters.
opentelemetry-configuration/​src/​opentelemetry/​configuration/​_meter_provider.py Wires TLS into metric exporters.
opentelemetry-configuration/​src/​opentelemetry/​configuration/​_logger_provider.py Wires TLS into log exporters.
opentelemetry-configuration/​src/​opentelemetry/​configuration/​_common.py Adds shared TLS helpers.
.changelog/​5781.added Announces declarative TLS/mTLS support.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@opentelemetry-pr-dashboard

This comment has been minimized.

@herin049

herin049 commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

/dashboard route:reviewers

@opentelemetry-pr-dashboard

Copy link
Copy Markdown

@herin049, this pull request was routed to reviewers. The handoff remains active across pushes until newer actionable human feedback arrives. Top-level feedback through this request will not return; unresolved review threads remain open.

@tammy-baylis-swi tammy-baylis-swi moved this to Ready for review in Python PR digest Nov 5, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Ready for review

Development

Successfully merging this pull request may close these issues.

opentelemetry-configuration: add support for the OTLP exporter TLS configuration

2 participants