Skip to content

Fix TLS configuration for WebClient Eureka transport - #4601

Open
yashdotdev13 wants to merge 1 commit into
spring-cloud:mainfrom
yashdotdev13:issue-3793-cert-authentication
Open

Fix TLS configuration for WebClient Eureka transport#4601
yashdotdev13 wants to merge 1 commit into
spring-cloud:mainfrom
yashdotdev13:issue-3793-cert-authentication

Conversation

@yashdotdev13

Copy link
Copy Markdown
Contributor

Description

The WebClient Eureka transport currently ignores the SSLContext provided by the Eureka client transport configuration.

This prevents WebClient from using the configured TLS credentials when connecting to an Eureka server that requires client certificate authentication.

This change:

  • propagates the configured SSLContext to WebClientTransportClientFactory
  • configures Reactor Netty to use the provided SSL context
  • adds WebClient TLS integration coverage to the Eureka client TLS test suite

Testing

  • ./mvnw -pl spring-cloud-netflix-eureka-client -am -DskipTests compile
  • ./mvnw -pl spring-cloud-netflix-eureka-client-tls-tests "-Dtest=WebClientEurekaClientTests" test

All 5 WebClient TLS tests pass.

Fixes #3793

Signed-off-by: 98001yash <yashchauhan.gaya@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support cert based authentication for eureka server

2 participants