-
Notifications
You must be signed in to change notification settings - Fork 41.4k
Description
Issue
While upgrading from Spring Boot 3.4.x
to 3.5.x
I have noticed a regression/change in behaviour of how Spring Boot Autoconfigure sets up TLS, in particular for Couchbase.
Couchbase supports TLS while using the default certificates through the JVM:
Couchbase SecurityConfig
And in Spring Boot 3.4.x it was possible to enable this behaviour by specifying the property:
spring:
couchbase:
env:
ssl:
enabled: true
With no need for an SSL bundle, Spring Boot would set up TLS during autoconfigure without a truststore, and couchbase would fetch the default certificates.
The change in behaviour seems to have been introduced here: Commit during #41137.
Where now, an SSL bundle is required to setup TLS. This appears to have been changed in 3.5.0.
Workaround
To workaround the issue, I can create a customizer to set TLS to enabled:
@Configuration
public class CouchbaseConfig {
@Bean
public ClusterEnvironmentBuilderCustomizer clusterEnvironmentBuilderCustomizer(){
return builder -> builder.securityConfig().enableTls(true);
}
}
It would be good to know if this behaviour was intentionally removed and we should continue with the workaround, or if this should be supported?