You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there.
I need to propagate some properties from the Environment to the System level so I am listening for ApplicationEnvironmentPreparedEvent event. So the only way is to register StandardEncryptableEnvironment within the SpringApplicationBuilder.
I use custom prefix and suffix specified in application.properties:
If only I use default Spring profile, all the properties from the event's environment instance are being decrypted just fine. The moment I specify some profile(s) in the spring.profiles.active property, none of the properties obtained from the event's environment are being decrypted (neither from application.properties nor from application-profile.properties).
If I switch back to the default prefix and suffix:
Hi there.
I need to propagate some properties from the Environment to the System level so I am listening for ApplicationEnvironmentPreparedEvent event. So the only way is to register
StandardEncryptableEnvironment
within theSpringApplicationBuilder
.I use custom prefix and suffix specified in
application.properties
:If only I use default Spring profile, all the properties from the event's environment instance are being decrypted just fine. The moment I specify some profile(s) in the
spring.profiles.active
property, none of the properties obtained from the event's environment are being decrypted (neither fromapplication.properties
nor fromapplication-profile.properties
).If I switch back to the default prefix and suffix:
decryption starts to work even with additional active profile(s).
I am using Spring Boot v3.2.1 (it happens with 3.1.x as well) and jasypt-spring-boot v3.0.5.
The text was updated successfully, but these errors were encountered: