You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Federico Mariani (Jira)" <ji...@apache.org> on 2024/09/16 09:32:00 UTC
[jira] [Updated] (CAMEL-21226) camel-jasypt-starter: Support early properties' decryption on properties files
[ https://issues.apache.org/jira/browse/CAMEL-21226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Federico Mariani updated CAMEL-21226:
-------------------------------------
Description:
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+.../dF/3h4fb)_
We can hook into Spring Boot lifecycle, and decrypt properties earlier into the life cycle, before Spring Boot context initialization.
was:
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+.../dF/3h4fb)_
We can hook into Spring Boot lifecycle, and decrypt properties earlier into the life cycle, before Spring Boot context initialization.
> camel-jasypt-starter: Support early properties' decryption on properties files
> ------------------------------------------------------------------------------
>
> Key: CAMEL-21226
> URL: https://issues.apache.org/jira/browse/CAMEL-21226
> Project: Camel
> Issue Type: New Feature
> Components: camel-jasypt, camel-spring-boot
> Affects Versions: 4.8.0
> Reporter: Federico Mariani
> Assignee: Federico Mariani
> Priority: Minor
> Fix For: 4.9.0
>
>
> 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+.../dF/3h4fb)_
> We can hook into Spring Boot lifecycle, and decrypt properties earlier into the life cycle, before Spring Boot context initialization.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)