-
Notifications
You must be signed in to change notification settings - Fork 57
feat(server): Add a KeyStoreScanner #134
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -136,6 +136,8 @@ public enum AuthorizationPolicy | |
| private Set<String> defaultAllowedRoles = ImmutableSet.of(); | ||
| private boolean allowUnsecureRequestsInAuthorizer; | ||
|
|
||
| private int keyStoreScanIntervalSeconds; | ||
|
|
||
| public boolean isHttpEnabled() | ||
| { | ||
| return httpEnabled; | ||
|
|
@@ -823,4 +825,17 @@ public List<HttpComplianceViolation> getHttpComplianceViolations() | |
| { | ||
| return httpComplianceViolations; | ||
| } | ||
|
|
||
| @Config("http-server.https.keystore.scan-interval-seconds") | ||
| @ConfigDescription("Interval (in seconds) at which the server checks for updates to the HTTPS keystore file") | ||
| public HttpServerConfig setKeystoreScanInterval(int keyStoreScanIntervalSeconds) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it would make more sense if this was a configuration value of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The actual Jetty method takes seconds only unfortunatley. Using a fractional duration rounded down to seconds may be confusing to users There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks. Makes sense. I would just recommend making the config name clearer that it accepts a value in seconds (rather than just the description)
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
| { | ||
| this.keyStoreScanIntervalSeconds = keyStoreScanIntervalSeconds; | ||
| return this; | ||
| } | ||
|
|
||
| public int getKeystoreScanInterval() | ||
| { | ||
| return keyStoreScanIntervalSeconds; | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
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.
Should we add a similar scanner to the while creating the
adminConnectoron line 329 ?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.
Added