Skip to content

Add SslOptions support to JedisClientConfiguration#3360

Open
gggeon96 wants to merge 2 commits intospring-projects:mainfrom
gggeon96:issue/3355-jedis-ssloptions
Open

Add SslOptions support to JedisClientConfiguration#3360
gggeon96 wants to merge 2 commits intospring-projects:mainfrom
gggeon96:issue/3355-jedis-ssloptions

Conversation

@gggeon96
Copy link
Copy Markdown

@gggeon96 gggeon96 commented Apr 27, 2026

Description

Adds SslOptions support to JedisClientConfiguration for consistency with the existing SSLSocketFactory, SSLParameters, and HostnameVerifier options, as discussed in #3355.

JedisClientConfiguration.builder()
    .useSsl()
    .sslOptions(SslOptions.builder()
        .truststore("truststore.p12", "secret")
        .sslProtocol("TLSv1.3")
        .build())
    .build();

The Mutable cleanup follows your direction: the sslSocketFactory, sslParameters, and hostnameVerifier fields/setters had no invocations, so they are removed; the corresponding getters now return Optional.empty().

Open question

I used @since 4.1 as a placeholder — happy to retarget to whichever release line you prefer.

Closes #3355


  • You have read the Spring Data contribution guidelines.
  • You use the code formatters provided here and have them applied to your changes. Don't submit any formatting related changes.
  • You submit test cases (unit or integration tests) that back your changes.
  • You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).

Expose Jedis's SslOptions on JedisClientConfiguration for consistency
with the existing SSLSocketFactory, SSLParameters, and HostnameVerifier
options. Wire it through to the Jedis JedisClientConfig.Builder in
JedisConnectionFactory.

See spring-projects#3355

Signed-off-by: Geonhyeon Kim <geon1120@gmail.com>
The setSslSocketFactory, setSslParameters and setHostnameVerifier setters
have no invocations, leaving the corresponding fields permanently null.
Remove the dead fields and setters; getters now return Optional.empty().

Closes spring-projects#3355

Signed-off-by: Geonhyeon Kim <geon1120@gmail.com>
@gggeon96 gggeon96 changed the title Issue/3355 jedis ssloptions Add SslOptions support to JedisClientConfiguration Apr 27, 2026
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for configuring Jedis SslOptions

2 participants