GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add mTLS tests by uglide · Pull Request #4458 · redis/jedis

Conversation

@uglide

@uglide uglide commented Mar 6, 2026 •
edited by cursor Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Add basic mTLS tests


Note

Medium Risk
Adds new docker-compose Redis services/endpoints and integration tests around TLS client-auth, which may affect CI environment setup and port/resource usage. No production code paths are changed beyond test utilities.

Overview
Adds mTLS (client-certificate) integration tests covering Jedis, RedisClient (standalone), and RedisClusterClient (including cluster node discovery), validating ACL WHOAMI behavior across Redis versions and basic read/write operations.

Extends test infrastructure to support these scenarios by introducing a shared ClientAuthTestBase, adding TlsUtil.clientKeystorePath(...) for locating pre-generated PKCS#12 client keystores, and registering new standalone-mtls / cluster-mtls endpoints plus matching Docker services configured to generate client certs and ACL users.

Written by Cursor Bugbot for commit cfb7a58. This will update automatically on new commits. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@uglide
uglide force-pushed the im/mtls-auth-tests branch from f25fa16 to 2f6b5b8 Compare March 6, 2026 15:47
@jit-ci

jit-ci Bot commented Mar 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Mar 6, 2026
View reviewed changes
Comment thread src/test/java/redis/clients/jedis/util/TlsUtil.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/test/java/redis/clients/jedis/tls/ClientAuthTestBase.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/test/java/redis/clients/jedis/tls/ClientAuthRedisClusterClientIT.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@uglide
Add mTLS tests
46cba55
@uglide
uglide force-pushed the im/mtls-auth-tests branch from 2f6b5b8 to 46cba55 Compare March 6, 2026 15:54
cursor[bot]
cursor Bot reviewed Mar 6, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/test/java/redis/clients/jedis/tls/ClientAuthTestBase.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Mar 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Test Results

   305 files  + 3     305 suites  +3   11m 48s ⏱️ +5s
10 944 tests +14  10 729 ✅ +14  215 💤 ±0  0 ❌ ±0 
 5 659 runs  +14   5 592 ✅ +14   67 💤 ±0  0 ❌ ±0 

Results for commit cfb7a58. ± Comparison against base commit c37b259.

♻️ This comment has been updated with latest results.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@uglide
Fix sslVerifyMode in ClientAuthRedisClusterClientIT
eecfa69
@uglide
uglide requested a review from ggivo March 6, 2026 16:22
@ggivo
Merge branch 'master' into im/mtls-auth-tests
3b7e7f6
ggivo
ggivo reviewed Mar 10, 2026
View reviewed changes

@ggivo ggivo left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I would add a test verifying client auth with an accepted certificate but missing ACL rules for the CN

Also, it probably makes sense to reuse tests for UnifiedJedis-based clients
, something along the line of 3140795

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
ggivo
ggivo reviewed Mar 11, 2026
View reviewed changes
Comment thread src/test/resources/env/docker-compose.yml Resolved

Uh oh!

There was an error while loading. Please reload this page.

ggivo and others added 4 commits March 11, 2026 12:16
@ggivo
Topic/ggivo/mtls auth tests shared (#4459)
0369d36
* base tests for RedisClient/RedisClusterClient

* move mTLS endpoint initialization to concrete test classes

* format

* discoverClusterNodesWithMtls - init client using single seed node

* address review comments
@uglide
Merge branch 'master' into im/mtls-auth-tests
9560af5
@uglide
Fix formatting
4f3b6e5
@uglide
Add missing negative test
cfb7a58
ggivo
ggivo approved these changes Mar 12, 2026
View reviewed changes
@uglide
uglide merged commit e9ff346 into master Mar 12, 2026
15 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@uglide
uglide deleted the im/mtls-auth-tests branch March 12, 2026 11:40
@ggivo ggivo added the testing label May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ggivo ggivo ggivo approved these changes
+1 more reviewer
@cursor cursor[bot] cursor[bot] left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

testing

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@uglide @ggivo
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.