Uploaded image for project: 'Red Hat build of Apache Camel for Spring Boot'
  1. Red Hat build of Apache Camel for Spring Boot
  2. CSB-5486

camel-jasypt-starter: Support properties' decryption on properties files

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Normal Normal
    • CSB-4.8
    • None
    • Camel
    • False
    • Hide

      None

      Show
      None
    • False
    • Moderate
    • 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+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?

          There are no Sub-Tasks for this issue.

              fmariani@redhat.com Federico Mariani
              rhn-support-anarvaez Alfredo Narvaez
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: