Skip to content

Commit

Permalink
KOGITO-4972: Enable security on infinispan container in process-usert… (
Browse files Browse the repository at this point in the history
apache#654)

* KOGITO-4972: Enable security on infinispan container in process-usertasks-with-security-oidc-quarkus-with-console example

* set back kogito-data-index-infinispan to prod image
  • Loading branch information
nmirasch authored Apr 21, 2021
1 parent 66a182f commit 99169b4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ services:

data-index:
container_name: data-index
image: quay.io/kiegroup/kogito-data-index-infinispan-nightly:${KOGITO_VERSION}
image: quay.io/kiegroup/kogito-data-index-infinispan:${KOGITO_VERSION}
ports:
- "8180:8080"
depends_on:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ services:
command: "/opt/infinispan/bin/server.sh -c infinispan-demo.xml"
volumes:
- ./infinispan/infinispan.xml:/opt/infinispan/server/conf/infinispan-demo.xml:z
- ./infinispan/users.properties:/opt/infinispan/server/conf/users.properties
- ./infinispan/groups.properties:/opt/infinispan/server/conf/groups.properties
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:11222/rest/v2/cache-managers/default/health/status" ]
interval: 1s
Expand Down Expand Up @@ -81,6 +83,10 @@ services:
- ./persistence/:/home/kogito/data/protobufs/
environment:
QUARKUS_INFINISPAN_CLIENT_SERVER_LIST: infinispan:11222
QUARKUS_INFINISPAN_CLIENT_USE_AUTH: "true"
QUARKUS_INFINISPAN_CLIENT_AUTH_USERNAME: admin
QUARKUS_INFINISPAN_CLIENT_AUTH_PASSWORD: admin
QUARKUS_INFINISPAN_CLIENT_SASL_MECHANISM: PLAIN
KAFKA_BOOTSTRAP_SERVERS: kafka:29092
KOGITO_DATA_INDEX_PROPS: -Dkogito.protobuf.folder=/home/kogito/data/protobufs/

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
admin=admin
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,19 @@
<security-realms>
<security-realm name='default'>
<properties-realm groups-attribute='Roles'>
<user-properties path='users.properties' relative-to='infinispan.server.config.path'/>
<user-properties path='users.properties' relative-to='infinispan.server.config.path' plain-text='true'/>
<group-properties path='groups.properties' relative-to='infinispan.server.config.path'/>
</properties-realm>
</security-realm>
</security-realms>
</security>
<endpoints socket-binding='default' security-realm='default'>
<hotrod-connector name="hotrod"/>
<hotrod-connector name="hotrod">
<authentication>
<sasl mechanisms="PLAIN DIGEST-MD5 SCRAM-SHA-512" qop="auth" server-name="infinispan"/>
</authentication>
</hotrod-connector>
<rest-connector name="rest"/>
</endpoints>
</server>
</infinispan>
</infinispan>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
admin=admin

0 comments on commit 99169b4

Please sign in to comment.