-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Updates to Infinispan 14.0.19.Final #36445
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 |
---|---|---|
|
@@ -166,6 +166,19 @@ public class InfinispanClientRuntimeConfig { | |
@ConfigItem | ||
Optional<List<String>> sslCiphers; | ||
|
||
/** | ||
* Do SSL hostname validation. | ||
* Defaults to true. | ||
karesti marked this conversation as resolved.
Show resolved
Hide resolved
|
||
*/ | ||
@ConfigItem | ||
Optional<Boolean> sslHostNameValidation; | ||
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. It's unclear to me, why exactly is this optional when no default value is set via SmallRye Config. When no default value is set, then value is either true of false, no? I think setting default value would be clearer. 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. It's the default value in Infinispan 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'm not sure I should write this, because I don't think it is important at all, I just thought you could think about it when refactoring stuff in the future:
|
||
|
||
/** | ||
* SNI host name. Mandatory when SSL is enabled and host name validation is true. | ||
*/ | ||
@ConfigItem | ||
Optional<String> sniHostName; | ||
|
||
/** | ||
* Whether a tracing propagation is enabled in case the Opentelemetry extension is present. | ||
* By default the propagation of the context is propagated from the client to the Infinispan Server. | ||
|
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.
Here, you already know that
sniHostName
is not set, while hostname and validation is enabled. You could throw configuration exception. IMO it would be nicer than having it thrown during bean creating on startup event. But I take it you don't want to repeat validation that is already in the Infinispan client?It's really just FYI, nothing else.
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.
This kind of validation depends on Infinispan, is not Quarkus logic. I won't duplicate that here, since this logic can change for security or any other reasons in Infinispan.
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.
But you document it, how can you document it in Quarkus and say it can change in Infinispan? It will leave Quarkus documentation inconsistent.
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.
Anyway, I think I get your point, thanks for your answer and this PR.