Ce contenu n'est pas disponible dans la langue sélectionnée.
20.7. Securing Interfaces
20.7.1. Hot Rod Interface Security Copier lienLien copié sur presse-papiers!
20.7.1.1. Encryption of communication between Hot Rod Server and Hot Rod client Copier lienLien copié sur presse-papiers!
Example 20.4. Secure Hot Rod Using SSL/TLS
Important
20.7.1.2. Securing Hot Rod to LDAP Server using SSL Copier lienLien copié sur presse-papiers!
PLAIN
authentication over SSL may be used for Hot Rod client authentication against an LDAP server. The Hot Rod client sends plain text credentials to the JBoss Data Grid server over SSL, and the server subsequently verifies the provided credentials against the specified LDAP server. In addition, a secure connection must be configured between the JBoss Data Grid server and the LDAP server. Refer to the JBoss Data Grid Administration and Configuration Guide for additional information on configuring the server to communicate to an LDAP backend. The example below demonstrates configuring PLAIN
authentication over SSL on the Hot Rod client side:
Example 20.5. Hot Rod Client Authentication to LDAP Server
Important
20.7.1.3. User Authentication over Hot Rod Using SASL Copier lienLien copié sur presse-papiers!
PLAIN
is the least secure mechanism because credentials are transported in plain text format. However, it is also the simplest mechanism to implement. This mechanism can be used in conjunction with encryption (SSL) for additional security.DIGEST-MD5
is a mechanism than hashes the credentials before transporting them. As a result, it is more secure than thePLAIN
mechanism.GSSAPI
is a mechanism that uses Kerberos tickets. As a result, it requires a correctly configured Kerberos Domain Controller (for example, Microsoft Active Directory).EXTERNAL
is a mechanism that obtains the required credentials from the underlying transport (for example, from aX.509
client certificate) and therefore requires client certificate encryption to work correctly.
20.7.1.3.1. Configure Hot Rod Authentication (GSSAPI/Kerberos) Copier lienLien copié sur presse-papiers!
Procedure 20.1. Configure SASL GSSAPI/Kerberos Authentication - Client-side Configuration
- Ensure that the Server-Side configuration has been completed. As this is configured declaratively this configuration is found in the JBoss Data Grid Administration and Configuration Guide.
- Define a login module in a login configuration file (
gss.conf
) on the client side:GssExample { com.sun.security.auth.module.Krb5LoginModule required client=TRUE; };
GssExample { com.sun.security.auth.module.Krb5LoginModule required client=TRUE; };
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Set up the following system properties:
java.security.auth.login.config=gss.conf java.security.krb5.conf=/etc/krb5.conf
java.security.auth.login.config=gss.conf java.security.krb5.conf=/etc/krb5.conf
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note
Thekrb5.conf
file is dependent on the environment and must point to the Kerberos Key Distribution Center. - Implement the
CallbackHandler
:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Configure the Hot Rod Client, as seen in the below snippet:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
20.7.1.3.2. Configure Hot Rod Authentication (MD5) Copier lienLien copié sur presse-papiers!
- Ensure that the server has been configured for MD5 Authentication. Instructions for performing this configuration on the server are found in JBoss Data Grid's Administration and Configuration Guide.
- Implement the
CallbackHandler
:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Connect the client to the configured Hot Rod connector as seen below:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
20.7.2. Hot Rod C++ Client Encryption Copier lienLien copié sur presse-papiers!
serverCAFile
method on the SslConfigurationBuilder
. Additionally, the client's certificate may be defined with the clientCertificateFile
, allowing for client authentication.
Important
Example 20.6. Hot Rod C++ TLS Example
20.7.3. Hot Rod C# Client Encryption Copier lienLien copié sur presse-papiers!
ServerCAFile
method on the SslConfigurationBuilder
. Additionally, the client's certificate may be defined with the ClientCertificateFile
, allowing for client authentication.
Important
Example 20.7. Hot Rod C# TLS Example