Currently, the camel-jasypt-starter can successfully encrypt/decrypt properties inside or outside the camel context, as seen in the documentation examples
But.. when I try to use it as a source for other SpringBoot properties, it does not decrypt.
For example, I have this plain property for SSL certs on the server, the example runs
server.ssl.key-store-password=temporal
But using the encrypted value, the example fails with a "Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect"
exception
server.ssl.key-store-password=ENC(9Orox+Cq+v2i9UHilYBEmPGr2z3DoKFwRRWATDEDWttGhzncYZklaR9/dF/3h4fb)
I have tested this value inside a bean and camel contents, and it is decrypted as expected
Maybe this feature could be added to the camel-jasypt-starter ? what do you think?
- links to