X Tutup
Skip to content

Add mTLS tests#4458

Open
uglide wants to merge 3 commits intomasterfrom
im/mtls-auth-tests
Open

Add mTLS tests#4458
uglide wants to merge 3 commits intomasterfrom
im/mtls-auth-tests

Conversation

@uglide
Copy link
Contributor

@uglide uglide commented Mar 6, 2026

Add basic mTLS tests


Note

Medium Risk
Primarily test and test-environment changes, but it adds new Docker services/endpoints and manipulates JVM truststore properties, which can cause CI flakiness or interfere with other TLS tests if mis-scoped.

Overview
Adds new integration coverage for mutual TLS (client-certificate) authentication across Jedis, RedisClient, and RedisClusterClient, validating ACL WHOAMI behavior (CN-based user on Redis 8.6+, otherwise default) and basic read/write operations.

Introduces a shared ClientAuthTestBase that provisions a temporary truststore, locates per-user .p12 client keystores, and centralizes version-aware username assertions. Updates test infrastructure (TlsUtil, endpoints.json, and docker-compose.yml) to provide standalone and 3-node cluster mTLS Redis targets with pre-generated client certs for mtls-user1/mtls-user2.

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

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

jit-ci bot commented Mar 6, 2026

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit

@uglide uglide force-pushed the im/mtls-auth-tests branch from 2f6b5b8 to 46cba55 Compare March 6, 2026 15:54
Copy link

@cursor cursor bot left a 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.

@github-actions
Copy link

github-actions bot commented Mar 6, 2026

Test Results

   305 files     305 suites   11m 43s ⏱️
10 942 tests 10 727 ✅ 215 💤 0 ❌
 5 657 runs   5 590 ✅  67 💤 0 ❌

Results for commit 3b7e7f6.

♻️ This comment has been updated with latest results.

@uglide uglide requested a review from ggivo March 6, 2026 16:22
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

Successfully merging this pull request may close these issues.

2 participants

X Tutup