Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Lumanman-a opened this issue Aug 14, 2024 · 0 comments

Comments

@Lumanman-a
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant