Este contenido no está disponible en el idioma seleccionado.
Chapter 8. Securing Data Grid Connections
Encrypt connections between clients and Data Grid nodes with Red Hat OpenShift service certificates or custom TLS certificates.
8.1. Using Red Hat OpenShift Service Certificates Copiar enlaceEnlace copiado en el portapapeles!
Data Grid Operator automatically generates TLS certificates signed by the Red Hat OpenShift service CA. You can use these certificates to encrypt remote client connections.
Procedure
Set the following
spec.security.endpointEncryptionconfiguration in your Infinispan CR and then apply the changes.Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Data Grid Operator stores in a secret named -cert-secret that is prefixed with the Data Grid cluster name, for example:
metadata: name: example-rhdatagrid
metadata:
name: example-rhdatagrid
The preceding cluster name results in a secret named example-rhdatagrid-cert-secret.
8.1.1. Red Hat OpenShift Service Certificates Copiar enlaceEnlace copiado en el portapapeles!
If the Red Hat OpenShift service CA is available, Data Grid Operator automatically generates a certificate, tls.crt, and key, tls.key, in PEM format.
Service certificates use the internal DNS name of the Data Grid cluster as the common name (CN), for example:
Subject: CN = example-infinispan.mynamespace.svc
For this reason, service certificates can be fully trusted only inside OpenShift. If you want to encrypt connections with clients running outside OpenShift, you should use custom TLS certificates.
Certificates are valid for one year and are automatically replaced before they expire.
8.1.2. Retrieving TLS Certificates Copiar enlaceEnlace copiado en el portapapeles!
Get TLS certificates from encryption secrets to create client trust stores.
-
Retrieve
tls.crtfrom encryption secrets as follows:
oc get secret example-rhdatagrid-cert-secret \
-o jsonpath='{.data.tls\.crt}' | base64 -d > tls.crt
$ oc get secret example-rhdatagrid-cert-secret \
-o jsonpath='{.data.tls\.crt}' | base64 -d > tls.crt
8.2. Using Custom TLS Certificates Copiar enlaceEnlace copiado en el portapapeles!
Use custom PKCS12 keystore or TLS certificate/key pairs to encrypt connections between clients and Data Grid clusters.
Prerequisites
Create either a keystore or certificate secret. See:
Procedure
Add the encryption secret to your OpenShift namespace, for example:
oc apply -f tls_secret.yaml
$ oc apply -f tls_secret.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow Specify the encryption secret with
spec.security.endpointEncryptionin your Infinispan CR and then apply the changes.Copy to Clipboard Copied! Toggle word wrap Toggle overflow