-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the updateServerConfig function to pass in the cert value diectly #3337
Update the updateServerConfig function to pass in the cert value diectly #3337
Conversation
Skipping CI for Draft Pull Request. |
Codecov Report
@@ Coverage Diff @@
## main #3337 +/- ##
============================================
+ Coverage 58.49% 61.63% +3.14%
- Complexity 0 768 +768
============================================
Files 91 182 +91
Lines 9233 12333 +3100
Branches 0 268 +268
============================================
+ Hits 5401 7602 +2201
- Misses 3403 4135 +732
- Partials 429 596 +167
Flags with carried forward coverage won't be shown. Click here to find out more.
|
...receiver/src/main/java/dev/knative/eventing/kafka/broker/receiver/impl/ReceiverVerticle.java
Outdated
Show resolved
Hide resolved
...receiver/src/main/java/dev/knative/eventing/kafka/broker/receiver/impl/ReceiverVerticle.java
Outdated
Show resolved
Hide resolved
...receiver/src/main/java/dev/knative/eventing/kafka/broker/receiver/impl/ReceiverVerticle.java
Outdated
Show resolved
Hide resolved
}); | ||
try { | ||
// Update SSL configuration by passing the new value of the certificate and key | ||
// Have to use value instead of path here otherwise the changes won't be applied |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious, do you know why this is the case @Leo6Leo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure whether problem is here or not.
https://github.com/eclipse-vertx/vert.x/blob/6954961d9b723ed245f91b6dedb41b9b09e991bd/src/main/java/io/vertx/core/net/impl/SSLHelper.java#L182C11-L182C71
Because the line if (prev.succeeded() && prev.result().options.equals(options)) {
is checking whether the options are the same. If we are using the path, obviously the options doesn't get changed because the file path is the same. And so it doesn't get updated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That seems accurate, can you report that to the Vertx team https://github.com/eclipse-vertx/vert.x/issues/new/choose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue reported @pierDipi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice findings @Leo6Leo
/lgtm
/approve
Left one nit comment to be consistent with the style of the other code which often use "final var"
...receiver/src/main/java/dev/knative/eventing/kafka/broker/receiver/impl/ReceiverVerticle.java
Outdated
Show resolved
Hide resolved
}); | ||
try { | ||
// Update SSL configuration by passing the new value of the certificate and key | ||
// Have to use value instead of path here otherwise the changes won't be applied |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That seems accurate, can you report that to the Vertx team https://github.com/eclipse-vertx/vert.x/issues/new/choose?
/retest-required |
…roker/receiver/impl/ReceiverVerticle.java Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
/retest-required |
@Leo6Leo: The following tests failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/retest-required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Cali0707, Leo6Leo, pierDipi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/cherry-pick release-1.11 |
@Leo6Leo: new pull request created: #3358 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Fixes #3336
Proposed Changes
Now:
Past:
Release Note
Docs