Hi,
Not sure what do you mean by “bring tomcat to use HikariCP”.
CUBA 7.2. uses HikariCP by default.
If you switch your data store’s “define jdbc datasource in” property to “JNDI”, this can be done in production app.properties by setting cuba.dataSourceProvider = jndi - then you will be able to use datasources provided natively by Tomcat and follow any advice from the internet, e.g. this:
Note that CUBA team does not recommend encrypting password while storing decryption password nearby encrypted data, because this is “security through obscurity”. It does not add more security to the deployed system. You should use it only if you are forced to (by boss, by security audit etc).
Read more here: Password - Apache Tomcat - Apache Software Foundation
The recommended way of providing production database password for the CUBA 7.2 deployed application is to set the password with environment variable on the target server. Thus you will avoid storing sensitive parameters in the source code or in the artifact being deployed.