ulisesbocchio / jasypt-spring-boot

Jasypt integration for Spring boot
MIT License
2.87k stars 514 forks source link

Spring RabbitMQ credentials can't be encrypted #364

Open cobar79 opened 1 year ago

cobar79 commented 1 year ago

I have a number of encrypted properties that are working fine. However, when I encrypt spring.rabbitmq.password the config server does not boot:

''' Found Custom Encryptor Bean org.jasypt.encryption.pbe.PooledPBEStringEncryptor@71dd4624 with name: jasyptStringEncryptor [org/springframework/boot/actuate/autoconfigure/amqp/RabbitHealthContributorAutoConfiguration.class]: Unsatisfied dependency expressed through method 'rabbitHealthContributor' parameter 0: Error creating bean with name 'rabbitTemplate' defined in class path resource [org/springframework/boot/autoconfigure/amqp/RabbitAutoConfiguration$RabbitTemplateConfiguration.class]: Unsatisfied dependency expressed through method 'rabbitTemplate' parameter 0: Error creating bean with name 'rabbitTemplateConfigurer' defined in class path resource [org/springframework/boot/autoconfigure/amqp/RabbitAutoConfiguration$RabbitTemplateConfiguration.class]: Unsatisfied dependency expressed through method 'rabbitTemplateConfigurer' parameter 0: Error creating bean with name 'spring.rabbitmq-org.springframework.boot.autoconfigure.amqp.RabbitProperties': Could not bind properties to 'RabbitProperties' : prefix=spring.rabbitmq, ignoreInvalidFields=false, ignoreUnknownFields=true

'''