Skip to content

michael-barker/jasypt-spring-cloud-stream-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jasypt Spring Cloud Stream Bug

When combining Spring Cloud Stream with Jasypt default properties that are overridden in the active profile are still being decrypted. If the encryptor keys are different for no profile and an active profile then the decryption of the overridden value fails causing the app to not start.

This issue was first noticed in Camden SR7 and also exists in Dalston RELEASE. The branch camden-sr6 does not have this issue but it can be reproduced on the camden-sr7 and dalston-release branches.

When not specifying a profile the app will fail to start if there Zookeeper and Kafka are not running on localhost with default ports which is expected. Running the app with other profile will cause it to fail before connecting to Zookeeper/Kafka which is unexpected.

##Steps to reproduce

Run app with other profile

java -jar build/libs/stream-jasypt-bug-0.0.1-SNAPSHOT.jar --spring.profiles.active=other

About

Bug when using Jasypt and Spring Cloud Stream together

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages