Skip to content

Commit

Permalink
How to configure a secured hotrod connection
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanezil authored and diegolovison committed Oct 27, 2023
1 parent 6de3e96 commit ca49821
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openshift/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ Follow these steps to build and deploy RadarGun image in OpenShift and run perfo
6) Create a subdirectory with configuration files for RadarGun and individual plugins. This directory will be mounted in main
and worker pods in OpenShift as /opt/radargun-configs.
You can include in this subdirectory additional configuration files. For example, a "hotrod-client.properties" file to configure the Hot Rod Java client. Also you can include a truststore/keystore file, etc.
Then the files in this directory can be referenced in a benchmark configuration file as needed.
7) Create RadarGun deployment via template.
Install "Infinispan Operator"
Expand Down
9 changes: 9 additions & 0 deletions openshift/configs/hotrod-client.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Example configuration to connect to an authenticated cluster with encryption enabled (SSL channel).
# See the available properties here: https://docs.jboss.org/infinispan/14.0/apidocs/org/infinispan/client/hotrod/configuration/package-summary.html
infinispan.client.hotrod.auth_username=yourusername
infinispan.client.hotrod.auth_password=thepassword
infinispan.client.hotrod.auth_realm=default
infinispan.client.hotrod.sasl_mechanism=SCRAM-SHA-512
infinispan.client.hotrod.trust_store_file_name=/opt/radargun-configs/truststore.jks
infinispan.client.hotrod.trust_store_type=JKS
infinispan.client.hotrod.trust_store_password=password
2 changes: 2 additions & 0 deletions openshift/configs/radargun-benchmark.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<setup group="client" plugin="infinispan140" lazy-init="true">
<hotrod xmlns="urn:radargun:plugins:infinispan140:3.0" cache="default">
<servers>infinispan.myprojectradargun.svc.cluster.local:11222</servers>
<!-- Enable this block if you need to configure specific connection parameters -->
<!-- <properties-path>/opt/radargun-configs/hotrod-client.properties</properties-path> -->
</hotrod>
</setup>
</config>
Expand Down

0 comments on commit ca49821

Please sign in to comment.