Support Jetty's live cert reload on HTTPS frontend#7355
Merged
mlsorensen merged 2 commits intoapache:mainfrom Mar 22, 2023
Merged
Support Jetty's live cert reload on HTTPS frontend#7355mlsorensen merged 2 commits intoapache:mainfrom
mlsorensen merged 2 commits intoapache:mainfrom
Conversation
Signed-off-by: Marcus Sorensen <mls@apple.com>
Codecov Report
@@ Coverage Diff @@
## main #7355 +/- ##
=========================================
Coverage 12.68% 12.68%
Complexity 8656 8656
=========================================
Files 2718 2718
Lines 256169 256169
Branches 39932 39932
=========================================
Hits 32504 32504
Misses 219531 219531
Partials 4134 4134 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
yadvr
approved these changes
Mar 22, 2023
Member
yadvr
left a comment
There was a problem hiding this comment.
Code LGTM - but haven't tested it.
|
Kudos, SonarCloud Quality Gate passed! |
Contributor
Author
|
Merging based on 2x LGTM and manual testing of feature. |
Member
|
Sorry @mlsorensen per community guidelines, there were no @blueorangutan smoketests were performed and generally, it's not preferred that PR author serves manual tests. However, it's possible there's no regression as smoketests in Github Actions against simulator have passed. I'll kick a round of BO smoketests on #7344 |
kishankavala
pushed a commit
to shapeblue/cloudstack
that referenced
this pull request
Apr 13, 2023
* Support Jetty's live cert reload Signed-off-by: Marcus Sorensen <mls@apple.com> * Update ServerDaemon.java --------- Signed-off-by: Marcus Sorensen <mls@apple.com> Co-authored-by: Marcus Sorensen <mls@apple.com>
soreana
pushed a commit
to leaseweb/cloudstack
that referenced
this pull request
May 19, 2023
* Support Jetty's live cert reload Signed-off-by: Marcus Sorensen <mls@apple.com> * Update ServerDaemon.java --------- Signed-off-by: Marcus Sorensen <mls@apple.com> Co-authored-by: Marcus Sorensen <mls@apple.com>
yadvr
pushed a commit
to shapeblue/cloudstack
that referenced
this pull request
Sep 27, 2023
* Support Jetty's live cert reload Signed-off-by: Marcus Sorensen <mls@apple.com> * Update ServerDaemon.java --------- Signed-off-by: Marcus Sorensen <mls@apple.com> Co-authored-by: Marcus Sorensen <mls@apple.com> (cherry picked from commit 9ca5f28) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
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.








Description
This PR implements Jetty's hot certificate reload per jetty/jetty.project#5042
When the keystore changes, the API server begins using the new certificate. Note that this functionality doesn't support live change of keystore password, only certificate.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Tested locally with self-signed certs. Changed the cert in the keystore while management server was running, reloaded the website, and inspected the https certificate.
Tested against
cmk, which continued to function after the cert change. Also tested against UI - website needed to be refreshed due to browser security. Perhaps a future enhancement would catch these errors and auto-refresh?Here you can see the local cloudstack management server using a new cert after it is loaded into a keystore:
change cert
check cert