Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support SSL for endpoint and no SSL for discovery service #3141

Open
tishun opened this issue Jan 24, 2025 · 0 comments
Open

Support SSL for endpoint and no SSL for discovery service #3141

tishun opened this issue Jan 24, 2025 · 0 comments

Comments

@tishun
Copy link
Collaborator

tishun commented Jan 24, 2025

Bug Report

When connecting to an SSL-enabled database we get an error.

Current Behavior

As per best practises guide says

The sentinel endpoint is UN-authenticated and will list all the databases and corresponding IP addresses. It has no TLS, which further adds complexity if TLS is enabled for a database at the framework client library level (e.g. Spring Data).

spring:
 application:
  name: "myApp"
 data:
  redis:
   ssl:
    enable: true
   sentinel:
    username: theUsername
    password: thePassword
    master: theMaster
    nodes: IP_ADDRESS:8001, IP_ADDRESS:8001, IP_ADDRESS:8001
Stack trace
2024-11-22 13:46:01,801 ERROR [lr002tom10009,service-digital-swift-manager,3010986,o.s.s.s.TaskUtils$LoggingErrorHandler ,     Job-1] ,, : Unexpected error occurred in scheduled task
org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis
 
Caused by: io.lettuce.core.RedisConnectionException: Unable to connect to 10.179.251.6/<unresolved>:10100
Caused by: io.lettuce.core.RedisConnectionException: Connection closed prematurely```

</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant