Skip to content

fix: use KeyManagerFactory.getDefaultAlgorithm() in TlsUtil.keyManager()#8122

Merged
jkwatson merged 1 commit intoopen-telemetry:mainfrom
lbarrios:fix-8112
Feb 28, 2026
Merged

fix: use KeyManagerFactory.getDefaultAlgorithm() in TlsUtil.keyManager()#8122
jkwatson merged 1 commit intoopen-telemetry:mainfrom
lbarrios:fix-8112

Conversation

@lbarrios
Copy link
Contributor

TlsUtil.keyManager() was incorrectly using TrustManagerFactory.getDefaultAlgorithm() to initialize KeyManagerFactory, which could cause NoSuchAlgorithmException.

Fixes #8112

TlsUtil.keyManager() was incorrectly using TrustManagerFactory.getDefaultAlgorithm()
to initialize KeyManagerFactory, which could cause NoSuchAlgorithmException.

Fixes open-telemetry#8112
@lbarrios lbarrios requested a review from a team as a code owner February 27, 2026 19:55
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Feb 27, 2026

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: lbarrios / name: Ezequiel Barrios (b0ca48f)

@jack-berg
Copy link
Member

Can you sign the CLA? Thanks!

@codecov
Copy link

codecov bot commented Feb 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.34%. Comparing base (250021c) to head (b0ca48f).
⚠️ Report is 11 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #8122      +/-   ##
============================================
+ Coverage     90.33%   90.34%   +0.01%     
- Complexity     7614     7647      +33     
============================================
  Files           839      841       +2     
  Lines         22913    23007      +94     
  Branches       2285     2295      +10     
============================================
+ Hits          20698    20786      +88     
- Misses         1505     1507       +2     
- Partials        710      714       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jkwatson jkwatson merged commit e37a6b1 into open-telemetry:main Feb 28, 2026
27 checks passed
@otelbot
Copy link
Contributor

otelbot bot commented Feb 28, 2026

Thank you for your contribution @lbarrios! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TlsUtil.keyManager() uses TrustManagerFactory.getDefaultAlgorithm() to initialize KeyManagerFactory

3 participants