Skip to content

[MOD-15869] Use Redis node metadata for cluster TLS connections - #11027

Merged
GuyAv46 merged 1 commit into
masterfrom
guyav-cluster-node-port-type
Aug 20, 2026
Merged

GuyAv46 merged 1 commit into
masterfrom
guyav-cluster-node-port-type

Conversation

@GuyAv46

@GuyAv46 GuyAv46 commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Describe the changes in the pull request

  1. Current: OSS cluster topology construction infers every node's connection transport from the local tls-cluster configuration.
  2. Change: Use the transport flag returned with each node by RedisModule_GetClusterNodeInfo.
  3. Outcome: Coordinator connections use the TLS or TCP transport associated with the returned node port without duplicating Redis configuration logic.

Which additional issues this PR fixes

  1. MOD-15869

Main objects this PR modified

  1. OSS cluster topology endpoint transport selection
  2. Redis module cluster-node flags
  3. Coordinator topology unit coverage

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

Release Notes

  • This PR requires release notes
  • This PR does not require release notes

@codecov

codecov Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.59%. Comparing base (712116c) to head (c38fcbb).
⚠️ Report is 15 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11027      +/-   ##
==========================================
- Coverage   83.55%   82.59%   -0.96%     
==========================================
  Files         614      641      +27     
  Lines       81636    82914    +1278     
  Branches    36935    38118    +1183     
==========================================
+ Hits        68207    68481     +274     
- Misses      13085    14089    +1004     
  Partials      344      344              
Flag Coverage Δ
flow 84.20% <100.00%> (-0.13%) ⬇️
unit 56.41% <100.00%> (-0.54%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@GuyAv46
GuyAv46 force-pushed the guyav-cluster-node-port-type branch from 1438f27 to c38fcbb Compare August 20, 2026 13:20

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c38fcbbd96

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/coord/rmr/cluster_topology.c Resolved
@GuyAv46
GuyAv46 requested a review from JoanFM August 20, 2026 13:46
@GuyAv46
GuyAv46 enabled auto-merge August 20, 2026 13:48
@GuyAv46
GuyAv46 requested a review from kei-nan August 20, 2026 13:48
@sonarqubecloud

Copy link
Copy Markdown

@GuyAv46
GuyAv46 added this pull request to the merge queue Aug 20, 2026
Merged via the queue into master with commit ecfa636 Aug 20, 2026
61 checks passed
@GuyAv46
GuyAv46 deleted the guyav-cluster-node-port-type branch August 20, 2026 14:33
alonre24 added a commit that referenced this pull request Sep 29, 2026
… connections (#11027)"

This reverts commit ecfa636.

#11027 takes each node's transport from the REDISMODULE_NODE_PORT_TLS flag
returned by RedisModule_GetClusterNodeInfo. Only Redis unstable sets that
flag; released Redis 8.10.x (the engine line 8.8-rse is tested and shipped
against) never does. The coordinator then dials every shard's TLS port in
plaintext, the shard rejects the connection ("SSL routines::wrong version
number"), and distributed commands fail on TLS clusters. This applies both
to OSS cluster and to Enterprise's short-form topology, which uses the same
path.

Restore deriving the transport from tls-cluster / tls-port, as on 8.10.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants