Permit to pass SslParameters to ExporterBuilders for fine grain TLS configuration

未关闭
#8,558 3 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

@raheelshahzad 已经在做这个了。

开始于 2026年9月24日。

  • #8858 来自 @raheelshahzad —— 已关闭,未合并

评估

难度
4/5
预计耗时
3-5 天
新手友好度
55/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
java
领域
security

调研方向

从 exporter builder API 开始,包括 OtlpHttpLogRecordExporterBuilder,并检查当前如何将 SslContext 传递给 HTTP 客户端。在决定参数应放在哪里之前,查阅 Java 的 javax.net.ssl.SSLParameters 文档和现有的 exporter 测试。完成标准是调用方可以同时提供 SSLParameters 和 SslContext,并且 exporter 的 TLS 行为已由测试覆盖。

由索引模型根据 Issue 内容生成。

描述

Feature Request

Problem

Post quantum resistant key exchange for TLS RFC is quite stable, enough for Java to implement it in JDK 27.
So when running the JDK OpenTelemetry exporter on java 27, it'll use a post-quantum-resistant algorithm as primary choice (X25519MLKEM768), and this can be defined at the entire JVM level with jdk.tls.namedGroups property.

The issue arise when we want to enforce OTLP to use only PQ-resistant algorithm (by setting jdk.tls.namedGroups=X25519MLKEM768 for example) while needing to call external services that does not offer yet a PQ-resistant key exchange algorithm.
Since the property affects the whole JVM other HttpClients will be impacted.

Proposed solution

Since HttpClient builder accepts javax.net.ssl.SSLParameters, I'd like to be able to pass an instance of these parameters alongside the SslContext in xxxExporterBuilder (such as OtlpHttpLogRecordExporterBuilder).
This way we could easily low level parameters of future TLS handshakes.

Alternatives/Workaround

Since one can currently pass an SslContext, it's possible to create a custom SslContext that will set SslParameters to the SslEngines it produces. But that's about 150 lines of boilerplate code...

Additional context

PostQuantum resistance is a hot topic right now, lots of countries have set deadlines for critical software to become PQ-resistant.

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.

主要语言
Java
星标
2.5k
派生
1.1k
平均合并
5 天 11 小时
30 天内合并 PR
41

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

open-telemetry/opentelemetry-java 的其他 Issue

查看 open-telemetry/opentelemetry-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。