It looks like with spring boot 3.5.4 (spring-kafka 3.3.8), the injection/handling of ssl bundles no longer works. Instead, we are now expected to configure the properties (what we believe to be) the old way?
Before (SSL Bundle - broken in 3.5.4):
spring:
ssl:
bundle:
jks:
kafka:
truststore:
location:
password:
type:
kafka:
ssl:
bundle: kafka
```
After (Traditional SSL - working in 3.5.4):
```yaml
spring:
kafka:
ssl:
trust-store-location: file:
trust-store-password:
trust-store-type:
Comment From: philwebb
Looking at the git history we don't appear to have changed anything in this area. Could you please provide a sample that demonstrates the problem?
Comment From: GuiF73
I analyzed a bit as we are expericing same problems. It's affected by this issue : https://github.com/spring-projects/spring-boot/issues/41137 and this one https://github.com/spring-projects/spring-boot/issues/45722.
Key message is the first from @wilkinsona https://github.com/spring-projects/spring-boot/issues/45722#issuecomment-2918639688
Comment From: wilkinsona
Thanks, @GuillaumeF73, but we don't know that @itssrihere was using methods on KafkaProperties so it's not clear that your problem and theirs are indeed the same.
Comment From: GuiF73
On my side, we are creating our proper ProducerFactory/ConsumerFactory/KafkaAdmin, so we are using kafkaProperties.buildProducerProperties(sslBundles), kafkaProperties.buildConsumerProperties(sslBundles) and kafkaProperties.buildAdminProperties(sslBundles) methods, which has been modified on SB 3.5.x for SSLBundles configurations.
But except adding configs on ProducerFactory/ConsumerFactory by ourself, don't know how it should works now when you don't want to use AutoConfig for these beans
Comment From: wilkinsona
My comment links to the auto-configuration code that you will now have to replicate. If you have any questions about how to do this in your specific application, please follow up on Stack Overflow. The issue tracker, particularly someone else's issue, isn't the right place for this.
Comment From: itssrihere
@wilkinsona - As @GuiF73 pointed out, we are also using the corresponding methods on kafkaProperties. viz.
kafkaProperties.buildProducerProperties(sslBundles);
kafkaProperties.buildConsumerProperties(sslBundles);
kafkaProperties.buildAdminProperties(sslBundles);
and
kafkaProperties.buildStreamsProperties(sslBundles);
Is adapting our code to match what's done in KafkaAutoConfiguration the general way ahead for all the above?
Comment From: wilkinsona
Yes, that's right.