Testcontainer 1.19.8 (managed by Spring Boot 3.3.1) introduced org.testcontainers.kafka.KafkaContainer to support apache/kafka, alongside org.testcontainers.containers.KafkaContainer for confluentinc/cp-kafka.

Spring Boot supports the latter via @ServiceConnection, but not the former. A new KafkaConnectionDetails should be introduced to handle it.

Comment From: wilkinsona

Duplicates https://github.com/spring-projects/spring-boot/pull/40695.