ulisesbocchio / jasypt-spring-boot

Jasypt integration for Spring boot
MIT License
2.88k stars 516 forks source link

password encrypted with jasypt is breaking when refreshed #188

Closed krishna2025 closed 4 years ago

krishna2025 commented 4 years ago

we are using spring boot version 2.1.10.RELEASE and cloud version Greenwich.SR3 and we are using jasypt for encrypted passwords. I kept encrypted passwords on application.yml file. During configserver startup it is getting decripted properly and working fine. If I make any changes on application.yml file and hit bus/refresh, my decripted password automatically getting encrypted back and not decripting. Can some one help on this?

benhouse1987 commented 4 years ago

same problem

kamaydeo commented 4 years ago

Yes. We are having the same issue. We recently enabled spring.cloud.config.watch and started seeing issues with properties. If I restart the application, it works fine again. There is definitely something happening on the refresh event. We are using Spring Boot 2.2.3 and Jasypt Spring Boot-Starter 2.1.2 and spring cloud Hoxton.RELEASE

kamaydeo commented 4 years ago

I just found out that this problem exists for Jasypt Spring Boot-Starter 1.16 as well as the latest version which is 3.0.2.

ulisesbocchio commented 4 years ago

Are you guys using the starter plugin?

ulisesbocchio commented 4 years ago

can you try version 3.0.3 that just went out?

ulisesbocchio commented 4 years ago

I got confirmation the refresh mechanism should be back in business from another issue #211, closing