Giter Club home page Giter Club logo

Comments (7)

ulisesbocchio avatar ulisesbocchio commented on May 13, 2024

Hi! Do you have sample app where the error is happening? Do you get a any errors? Can you share your SSL config? I'll setup the sample app with an HTTPS sample endpoint to see what happens but I don't know from the top of my head what could be causing the issue.
Thanks for using the library!
Best,
Uli

from jasypt-spring-boot.

aruizp avatar aruizp commented on May 13, 2024

We just added this properties, as the spring boot documentation says:
server.ssl.key-store = ssl_file.jks
server.ssl.key-store-password = asdasd
server.ssl.key-password = qwerty
Everything works fine with this configuration and SSL is enabled in the right way. If i add the @EnableEncryptableProperties the ssl wont load and the app will work without ssl..

from jasypt-spring-boot.

aruizp avatar aruizp commented on May 13, 2024

Just tested with the spring boot sample https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-tomcat-ssl, I added the dependency, the annotation and a password and it fail.

Greetings!

from jasypt-spring-boot.

ulisesbocchio avatar ulisesbocchio commented on May 13, 2024

Alright let me give that a try and I'll come back to you shortly.

from jasypt-spring-boot.

ulisesbocchio avatar ulisesbocchio commented on May 13, 2024

Alright, I just did what you suggested and it works. I added an SSL demo project for you to try it out here https://github.com/ulisesbocchio/jasypt-spring-boot/tree/master/jasypt-spring-boot-demo-tomcat-ssl. Keep in mind that during the weekend I added support for multiple PropertySource implementations that may have fixed the issue you were having most likely due to the way the server.ssl.* properties are being retrieved by Spring.
Please give it a try with the latest code and let me know if it solves your problem.
Best,
Uli

from jasypt-spring-boot.

aruizp avatar aruizp commented on May 13, 2024

Yeah!, It works now! Thanks! What was the problem? I can see that you add a few more classes. How is that the server.ssl.* props aren't loaded in the same way than the others?

from jasypt-spring-boot.

ulisesbocchio avatar ulisesbocchio commented on May 13, 2024

Great! Thanks for your feedback.
Before I was just wrapping the most basic PropertySource class. But it turns out there are other subclasses such as EnumerablePropertySource and MapPropertySource that need to be wrapped properly also. I also added a proxy mode that uses CGLib proxies to intercept the PropertySource.getProperty(String) method that could be activated with property: jasypt.encryption.proxyPropertySources

from jasypt-spring-boot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.