jasypt-spring-boot icon indicating copy to clipboard operation
jasypt-spring-boot copied to clipboard

When Spring Cloud triggers Refresh, Jasypt decrypts properties that have already been overwritten, resulting in failed context refresh

Open Lumanman-a opened this issue 6 months ago • 0 comments

App Resources like: image The current application environment is prehub. The jasyptStringEncryptor configuration of Jasypt in the yml file of prehub is different from application.yml. application.yml and application-prepub.yml files have the same configuration items. During the startup phase, if there are no exceptions, Spring will select the configuration item and decryptor of application-prepub.yml for decryption. However, during Spring Cloud Refresh, Spring Cloud parses all configuration item files, causing Spring to use the decryptor configured in application-prepub.yml to decrypt the encrypted items in application-yml. image Decryption failed at this time, unable to complete Refresh context.

Lumanman-a avatar Aug 14 '24 07:08 Lumanman-a