You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2026/04/27 10:14:00 UTC

[jira] [Updated] (CAMEL-22760) camel-kafka isn't auto-configured from spring.kafka configuration from Spring Boot

     [ https://issues.apache.org/jira/browse/CAMEL-22760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-22760:
--------------------------------
    Fix Version/s: 4.21.0
                       (was: 4.x)

> camel-kafka isn't auto-configured from spring.kafka configuration from Spring Boot
> ----------------------------------------------------------------------------------
>
>                 Key: CAMEL-22760
>                 URL: https://issues.apache.org/jira/browse/CAMEL-22760
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-kafka, camel-spring-boot
>    Affects Versions: 4.16.0
>            Reporter: David J. M. Karlsen
>            Assignee: Guillaume Nodet
>            Priority: Major
>             Fix For: 4.21.0
>
>
> I have to do this:
> {noformat}
> camel:
>   component:
>     kafka:
>       security-protocol: ${spring.kafka.security.protocol}
>       ssl-truststore-location: /etc/kafka/ca-certs/ca.crt
>       ssl-truststore-type: ${spring.kafka.ssl.trust-store-type}
>       ssl-keystore-location: /etc/kafka/user-certs/user.p12
>       ssl-keystore-type: ${spring.kafka.ssl.key-store-type}
>       ssl-keystore-password: ${spring.kafka.ssl.key-store-password}
>       brokers: ${spring.kafka.bootstrap-servers}
> spring:
>   kafka:
>     security:
>       protocol: SSL
>     ssl:
>       trust-store-location: file:${camel.component.kafka.ssl-truststore-location}
>       trust-store-type: PEM
>       key-store-location: file:${camel.component.kafka.ssl-keystore-location}
>       key-store-type: PKCS12
> {noformat}
> to get camel-kafka properly configured.
> when using
>  <dependency>
>       <groupId>org.apache.camel.springboot</groupId>
>       <artifactId>camel-kafka-starter</artifactId>
>     </dependency>
> The "starter" doesn't really autoconfigure any kafka setup in camel from spring-boot like for other components - in particular the bootstrap servers isn't passed on.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)