Technical references : Administration : Server Hardening : Encrypt database password
Encrypt database password
You can encrypt the database password in the data source with standard WildFly functionality using a security domain and picketbox. Carry out the following steps:
Procedure
1. Add your password to the Encrypt DB credential store:
/subsystem=elytron/credential-store=EncryptDBCredentialStore:add-alias(alias="db_password", secret-value="YourPassword")
2. Remove the following attribute using CLI:
/subsystem=datasources/data-source=PlanonDS:undefine-attribute(name=password)
3. Add the Encrypt DB credential store to the Planon data source:
/subsystem=datasources/data-source=PlanonDS:write-attribute(name=credential-reference, value={store=EncryptDBCredentialStore, alias="db_password"})