이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 5. Storing Data Grid Server credentials in keystores
External services require credentials to authenticate with Data Grid Server. To protect sensitive text strings such as passwords, add them to a credential keystore rather than directly in Data Grid Server configuration files.
You can then configure Data Grid Server to decrypt passwords for establishing connections with services such as databases or LDAP directories.
Plain-text passwords in $RHDG_HOME/server/conf
are unencrypted. Any user account with read access to the host filesystem can view plain-text passwords.
While credential keystores are password-protected store encrypted passwords, any user account with write access to the host filesystem can tamper with the keystore itself.
To completely secure Data Grid Server credentials, you should grant read-write access only to user accounts that can configure and run Data Grid Server.
5.1. Setting up credential keystores 링크 복사링크가 클립보드에 복사되었습니다!
Create keystores that encrypt credential for Data Grid Server access.
A credential keystore contains at least one alias that is associated with an encrypted password. After you create a keystore, you specify the alias in a connection configuration such as a database connection pool. Data Grid Server then decrypts the password for that alias from the keystore when the service attempts authentication.
You can create as many credential keystores with as many aliases as required.
Procedure
-
Open a terminal in
$RHDG_HOME
. Create a keystore and add credentials to it with the
credentials
command.TipBy default, keystores are of type PKCS12. Run
help credentials
for details on changing keystore defaults.The following example shows how to create a keystore that contains an alias of "dbpassword" for the password "changeme". When you create a keystore you also specify a password for the keystore with the
-p
argument.- Linux
bin/cli.sh credentials add dbpassword -c changeme -p "secret1234!"
bin/cli.sh credentials add dbpassword -c changeme -p "secret1234!"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Microsoft Windows
bin\cli.bat credentials add dbpassword -c changeme -p "secret1234!"
bin\cli.bat credentials add dbpassword -c changeme -p "secret1234!"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Check that the alias is added to the keystore.
bin/cli.sh credentials ls -p "secret1234!" dbpassword
bin/cli.sh credentials ls -p "secret1234!" dbpassword
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Configure Data Grid to use the credential keystore.
-
Specify the name and location of the credential keystore in the
credential-stores
configuration. Provide the credential keystore and alias in the
credential-reference
configuration.TipAttributes in the
credential-reference
configuration are optional.-
store
is required only if you have multiple keystores. -
alias
is required only if the keystore contains multiple aliases.
-
-
Specify the name and location of the credential keystore in the
5.2. Credential keystore configuration 링크 복사링크가 클립보드에 복사되었습니다!
This topic provides examples of credential keystores in Data Grid Server configuration.
Credential keystores
XML
JSON
YAML
Datasource connections
XML
JSON
YAML
LDAP connections
XML
JSON
YAML