Repository navigation
[fix][broker] Use correct file path for tls trust certificates - #18712
Merged
Merged
Conversation
1 task done
nodece
approved these changes
Dec 2, 2022
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #18712 +/- ##
============================================
- Coverage 48.34% 46.18% -2.17%
- Complexity 9368 10296 +928
============================================
Files 618 699 +81
Lines 58586 68728 +10142
Branches 6097 7373 +1276
============================================
+ Hits 28326 31744 +3418
- Misses 27078 33377 +6299
- Partials 3182 3607 +425
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
BewareMyPower
approved these changes
Dec 5, 2022
BewareMyPower
pushed a commit
to streamnative/kop
that referenced
this pull request
Dec 5, 2022
### Motivation This is a trivial fix. The `getTlsCertificateFilePath` is meant to be the tls certificate chain when sending to a peer, and the `getTlsTrustCertsFilePath` is meant to be the root CAs. This PR could technically break installations. I'm unsure how we'd like to handle backwards compatibility here. Note that this PR is the same as apache/pulsar#18712. ### Modifications * Fix an incorrect reference to trusted certificates.
eolivelli
pushed a commit
to datastax/starlight-for-kafka
that referenced
this pull request
Dec 10, 2022
### Motivation This is a trivial fix. The `getTlsCertificateFilePath` is meant to be the tls certificate chain when sending to a peer, and the `getTlsTrustCertsFilePath` is meant to be the root CAs. This PR could technically break installations. I'm unsure how we'd like to handle backwards compatibility here. Note that this PR is the same as apache/pulsar#18712. ### Modifications * Fix an incorrect reference to trusted certificates. (cherry picked from commit 4cd64d8)
eolivelli
pushed a commit
to datastax/starlight-for-kafka
that referenced
this pull request
Dec 10, 2022
### Motivation This is a trivial fix. The `getTlsCertificateFilePath` is meant to be the tls certificate chain when sending to a peer, and the `getTlsTrustCertsFilePath` is meant to be the root CAs. This PR could technically break installations. I'm unsure how we'd like to handle backwards compatibility here. Note that this PR is the same as apache/pulsar#18712. ### Modifications * Fix an incorrect reference to trusted certificates. (cherry picked from commit 4cd64d8)
lifepuzzlefun
pushed a commit
to lifepuzzlefun/pulsar
that referenced
this pull request
Jan 10, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
This is a trivial cleanup, though it might technically break some deployments. Given that the
getBrokerClientTrustCertsFilePathtakes precedence over thegetTlsCertificateFilePath, it is unlikely to have been used with any frequency. However, it is better to correctly update the trust certs file path. The consequence of this breaking change will be immediately obvious to any impacted users, as their pulsar clients will not trust certificates that they may have trusted before.This is not a security vulnerability.
Modifications
getTlsCertificateFilePathwithgetTlsTrustCertsFilePathwhen callingsetTlsTrustCertsFilePathon the pulsar client in the pulsar broker.Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc-not-needed