Skip to content

Commit ef2a86e

Browse files
authored
Merge pull request #36519 from karesti/infinispan-client-ref
Infinispan client ref guide update with sni host validation
2 parents 996730b + 2e7eeaa commit ef2a86e

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

docs/src/main/asciidoc/infinispan-client-reference.adoc

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,6 @@ quarkus.infinispan-client.cache.books.near-cache-mode=INVALIDATED <1>
805805
quarkus.infinispan-client.cache.books.near-cache-max-entries=200 <2>
806806
quarkus.infinispan-client.cache.books.near-cache-use-bloom-filter=true <3>
807807
----
808-
809808
<1> Enables near caching for the 'books' cache by setting the mode to `INVALIDATED`
810809
<2> Sets the maximum number of entries that the near cache of the 'books' cache can hold before eviction occurs
811810
<3> Enables bloom filter for the 'books' cache
@@ -824,12 +823,31 @@ They cannot be used with unbounded near cache: maximum number of entries must be
824823

825824
Encryption at this point requires additional steps to get working.
826825

827-
The first step is to configure the `hotrod-client.properties` file to point to your truststore
826+
The first step is to configure the `application.properties` file to point to your truststore
828827
and/or keystore. This is further detailed https://infinispan.org/docs/stable/titles/hotrod_java/hotrod_java.html#hotrod_encryption[here].
829828

830829
The Infinispan Client extension enables SSL/TLS by default. You can read more about this
831830
at xref:native-and-ssl.adoc[Using SSL With Native Executables].
832831

832+
== SSL Host Name Validation
833+
834+
To prevent MITM attacks, when SSL is enabled, SSL host name validation is enabled by default in Infinispan.
835+
In this case, configuring the SNI host name is mandatory to start the client.
836+
837+
[source,properties]
838+
----
839+
quarkus.infinispan-client.sni-host-name=localhost <1>
840+
----
841+
<1> Sets the SNI host name
842+
843+
This behaviour can be changed by disabling the validation.
844+
845+
[source,properties]
846+
----
847+
quarkus.infinispan-client.ssl-host-name-validation=false <1>
848+
----
849+
<1> Disables ssl host name validation
850+
833851
== Additional Features
834852

835853
The Infinispan Client has additional features that were not mentioned here. This means this

0 commit comments

Comments
 (0)