🔒 Configuration security feature with PBE
Enters ENC([encrypted value]) in the configuration file.
spring:
datasource:
hikari:
...
username: ENC(iqTD9xHUch57rODDJr163Q==)
...
Inject secret password in runtime.
# from environment variable
export JASYPT_ENCRYPTOR_PASSWORD=[Your secret password]
# from command line argument
java -jar app.jar --jasypt.encryptor.password=[Your secret password]