-
Bug
-
Resolution: Done
-
Major
-
RHDG Operator CSV 8.3.7 GA
-
None
-
False
-
None
-
False
-
-
-
-
-
-
-
-
Important
Steps
1. Create a new project: oc new-project dgtest
2. Create a secret with a valid certificate:
apiVersion: v1 kind: Secret metadata: name: tls-secret namespace: dgtest type: Opaque stringData: alias: '1' password: pass1 data: cert1.p12: >- MIIJYQIBAzCCCScGCSqGSIb3DQEHAaCCCRgEggkUMIIJEDCCA8cGCSqGSIb3DQEHBqCCA7gwggO0AgEAMIIDrQYJKoZIhvcNAQcBMBwGCiqGSIb3DQEMAQYwDgQIngTjm5HRBqQCAggAgIIDgHwoxUlXTGaF6xYSj++SPg1r+l/eRJ8emjcslh/blGfiDgZ285X80cJy1SKQZzVra110vDa8ojfJHojhHfuVZ5qAqFBHzyOoBWthSDkgH7oa66wNOgpn597UH9nWY59XT/lJoyx5xhczvMqhuP/6B5CnPQ/DJb2tV89V/nj2bnVmkaprdwRaqynAC+En6Y2pLAEnLpj4r42w4MicPl9jNpX0nVXVIjXCQGjdjCKsZfs7zax2ZzRZw2mXxmSb8He4Hz1vLQ4OJxS3YlrNwhOcAWUFsZGW+gSVYJt5rVaQyX1J3nus0OdhmGAIJ3BKsNXZyPakl17aNePvkINmEwd32nM2htc6hAEpfdtKJRc+MLsjJigNu/1TzidvJMUEDLqOShNBjoUGLCcTnwg4bAXKtgmE7Pb54sHW9sjZA4lqI+cO0QQWXCLZSQA0d8ge+oR5Qlxpx4NHTw+MusHEETxbE7Q6sq5wn4N7CV95FNoA+O7qfGrXwFNWLD8VyleWuXA26smxvHtO4ZIgEJ8zHI+nTXwtJzBzUWWyTWNMLUraWkDa5vf5ykeczupfJAkQWFGepCyVmzpeae/F/djXi52dBschwvHU1AHhKNF6MH/QgRivlSb48Qwf1pbglhf+9tlD9agF27lV9peaMBW7yBs/WMxduQnwf31f2Hgsrr/SwmqJ4EV2dds1nTHxo/C5JiHuLOjr9nNJgzdNqXwSkvBGthLEyTUpahSNbjPj+FsF8TY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/XgxN4UFO4lTrADKOD+Otq4KEKbetgyuxxsp7FsA/gxJTAjBgkqhkiG9w0BCRUxFgQUmZs+88tiKa8zbQU22UALOUV4py4wMTAhMAkGBSsOAwIaBQAEFLdgxIF+JlX4754umnGcOCGVex3gBAi7fLTtJb4t9gICCAA=
3. Create an Infinispan CR referencing the previous cert:
apiVersion: infinispan.org/v1
kind: Infinispan
metadata:
name: custom-infinispan
namespace: dgtest
spec:
security:
endpointAuthentication: true
endpointEncryption:
clientCert: None
type: Secret
certSecretName: tls-secret
expose:
type: Route
service:
type: DataGrid
replicas: 1
logging:
categories:
org.infinispan.SERVER: debug
org.wildfly.security: trace
Comparing working - Encryption service type vs Encryption Secret type
Working DG default cert:
<security> <security-realms> <security-realm name="default"> <server-identities> <ssl> <keystore path="/etc/security/conf/operator-security/keystore.pem" password="***"/> </ssl> </server-identities> <properties-realm groups-attribute="Roles"> <user-properties digest-realm-name="default" path="cli-users.properties"/> <group-properties path="cli-groups.properties"/> </properties-realm> </security-realm> <security-realm name="admin"> <properties-realm groups-attribute="Roles"> <user-properties digest-realm-name="admin" path="cli-admin-users.properties"/> <group-properties path="cli-admin-groups.properties"/> </properties-realm> </security-realm> </security-realms> </security>
Non-Working DG (custom cert - missing server-identities section):
<security> <security-realms> <security-realm name="default"> <properties-realm groups-attribute="Roles"> <user-properties digest-realm-name="default" path="cli-users.properties"/> <group-properties path="cli-groups.properties"/> </properties-realm> </security-realm> <security-realm name="admin"> <properties-realm groups-attribute="Roles"> <user-properties digest-realm-name="admin" path="cli-admin-users.properties"/> <group-properties path="cli-admin-groups.properties"/> </properties-realm> </security-realm> </security-realms> </security>
- links to