Repository navigation
MOD-18751: waive cluster bus protected mode for the oss-cluster phase - #1644
Conversation
redis/redis#15722 added cluster-bus-port-protected-mode, and on the 8.12 line it defaults to enabled: a node started with cluster-enabled and without tls-cluster then refuses to start, because its cluster bus port would be unauthenticated. That is how the oss-cluster phase is built, so every shard dies at startup and each test fails at connect with "Connection refused". The refusal happens while the configuration is validated, before the server opens its logfile, so the retained logs are empty and say nothing about the cause. Waive it for that phase. The bus ports here are bound to localhost on an ephemeral host, which is the condition the directive documents for waiving, and they were equally unauthenticated before the redis change - which only made running them an explicit choice. The option is not passed blind, because a redis that does not have it rejects the directive and fails to start the same way. RLTest takes it as an option rather than guessing, since nothing it can see distinguishes a build that has the option from one that does not: the 8.12 line reports 8.9.241 in version.h, the same as builds from before the change. CLUSTER_BUS_PROTECTED_MODE= omits it for anyone running the cluster phase against an older redis locally. The tls_cluster phase is left alone, since tls-cluster authenticates the bus, and so is the existing-env phase, where RLTest starts no servers. Requires RLTest with the option (RedisLabsModules/RLTest#255).
|
Blocked on the RLTest release. This pins RedisTimeSeries' equivalent PR is git-pinned to the RLTest merge commit, so it can go ahead of this one. Order that matters: the pin and the |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1644 +/- ##
=======================================
Coverage 85.97% 85.97%
=======================================
Files 15 15
Lines 5306 5306
=======================================
Hits 4562 4562
Misses 744 744 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 1b057de. Configure here.
|
No change needed here, recording why. This repo already pins Also worth noting that the old pin here, The two red legs are infrastructure, unrelated to this change: RedisTimeSeries also needed a test-side fix for replicas it spawns itself (MOD-18906); RedisJSON needs no equivalent, since its only self-started redis is the standalone one in |
run_env interpolates CLUSTER_BUS_ARGS for COORD=oss, but the ENV_ONLY branch calls run_env and exits 20 lines before the assignment, so that path started its cluster without the waiver and the shards refused to start on 8.12. Moving the assignment above the branch; it depends on nothing in between. Co-Authored-By: Claude Opus 5 <[email protected]>
…#1644) * MOD-18751: waive cluster bus protected mode for the oss-cluster phase redis/redis#15722 added cluster-bus-port-protected-mode, and on the 8.12 line it defaults to enabled: a node started with cluster-enabled and without tls-cluster then refuses to start, because its cluster bus port would be unauthenticated. That is how the oss-cluster phase is built, so every shard dies at startup and each test fails at connect with "Connection refused". The refusal happens while the configuration is validated, before the server opens its logfile, so the retained logs are empty and say nothing about the cause. Waive it for that phase. The bus ports here are bound to localhost on an ephemeral host, which is the condition the directive documents for waiving, and they were equally unauthenticated before the redis change - which only made running them an explicit choice. The option is not passed blind, because a redis that does not have it rejects the directive and fails to start the same way. RLTest takes it as an option rather than guessing, since nothing it can see distinguishes a build that has the option from one that does not: the 8.12 line reports 8.9.241 in version.h, the same as builds from before the change. CLUSTER_BUS_PROTECTED_MODE= omits it for anyone running the cluster phase against an older redis locally. The tls_cluster phase is left alone, since tls-cluster authenticates the bus, and so is the existing-env phase, where RLTest starts no servers. Requires RLTest with the option (RedisLabsModules/RLTest#255). * Trigger CI to build the image locally, so it installs RLTest 0.7.29 * Set CLUSTER_BUS_ARGS before the ENV_ONLY branch can use it run_env interpolates CLUSTER_BUS_ARGS for COORD=oss, but the ENV_ONLY branch calls run_env and exits 20 lines before the assignment, so that path started its cluster without the waiver and the shards refused to start on 8.12. Moving the assignment above the branch; it depends on nothing in between. Co-Authored-By: Claude Opus 5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]>
…#1644) * MOD-18751: waive cluster bus protected mode for the oss-cluster phase redis/redis#15722 added cluster-bus-port-protected-mode, and on the 8.12 line it defaults to enabled: a node started with cluster-enabled and without tls-cluster then refuses to start, because its cluster bus port would be unauthenticated. That is how the oss-cluster phase is built, so every shard dies at startup and each test fails at connect with "Connection refused". The refusal happens while the configuration is validated, before the server opens its logfile, so the retained logs are empty and say nothing about the cause. Waive it for that phase. The bus ports here are bound to localhost on an ephemeral host, which is the condition the directive documents for waiving, and they were equally unauthenticated before the redis change - which only made running them an explicit choice. The option is not passed blind, because a redis that does not have it rejects the directive and fails to start the same way. RLTest takes it as an option rather than guessing, since nothing it can see distinguishes a build that has the option from one that does not: the 8.12 line reports 8.9.241 in version.h, the same as builds from before the change. CLUSTER_BUS_PROTECTED_MODE= omits it for anyone running the cluster phase against an older redis locally. The tls_cluster phase is left alone, since tls-cluster authenticates the bus, and so is the existing-env phase, where RLTest starts no servers. Requires RLTest with the option (RedisLabsModules/RLTest#255). * Trigger CI to build the image locally, so it installs RLTest 0.7.29 * Set CLUSTER_BUS_ARGS before the ENV_ONLY branch can use it run_env interpolates CLUSTER_BUS_ARGS for COORD=oss, but the ENV_ONLY branch calls run_env and exits 20 lines before the assignment, so that path started its cluster without the waiver and the shards refused to start on 8.12. Moving the assignment above the branch; it depends on nothing in between. Co-Authored-By: Claude Opus 5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]>
…#1644) * MOD-18751: waive cluster bus protected mode for the oss-cluster phase redis/redis#15722 added cluster-bus-port-protected-mode, and on the 8.12 line it defaults to enabled: a node started with cluster-enabled and without tls-cluster then refuses to start, because its cluster bus port would be unauthenticated. That is how the oss-cluster phase is built, so every shard dies at startup and each test fails at connect with "Connection refused". The refusal happens while the configuration is validated, before the server opens its logfile, so the retained logs are empty and say nothing about the cause. Waive it for that phase. The bus ports here are bound to localhost on an ephemeral host, which is the condition the directive documents for waiving, and they were equally unauthenticated before the redis change - which only made running them an explicit choice. The option is not passed blind, because a redis that does not have it rejects the directive and fails to start the same way. RLTest takes it as an option rather than guessing, since nothing it can see distinguishes a build that has the option from one that does not: the 8.12 line reports 8.9.241 in version.h, the same as builds from before the change. CLUSTER_BUS_PROTECTED_MODE= omits it for anyone running the cluster phase against an older redis locally. The tls_cluster phase is left alone, since tls-cluster authenticates the bus, and so is the existing-env phase, where RLTest starts no servers. Requires RLTest with the option (RedisLabsModules/RLTest#255). * Trigger CI to build the image locally, so it installs RLTest 0.7.29 * Set CLUSTER_BUS_ARGS before the ENV_ONLY branch can use it run_env interpolates CLUSTER_BUS_ARGS for COORD=oss, but the ENV_ONLY branch calls run_env and exits 20 lines before the assignment, so that path started its cluster without the waiver and the shards refused to start on 8.12. Moving the assignment above the branch; it depends on nothing in between. Co-Authored-By: Claude Opus 5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]>
…#1644) * MOD-18751: waive cluster bus protected mode for the oss-cluster phase redis/redis#15722 added cluster-bus-port-protected-mode, and on the 8.12 line it defaults to enabled: a node started with cluster-enabled and without tls-cluster then refuses to start, because its cluster bus port would be unauthenticated. That is how the oss-cluster phase is built, so every shard dies at startup and each test fails at connect with "Connection refused". The refusal happens while the configuration is validated, before the server opens its logfile, so the retained logs are empty and say nothing about the cause. Waive it for that phase. The bus ports here are bound to localhost on an ephemeral host, which is the condition the directive documents for waiving, and they were equally unauthenticated before the redis change - which only made running them an explicit choice. The option is not passed blind, because a redis that does not have it rejects the directive and fails to start the same way. RLTest takes it as an option rather than guessing, since nothing it can see distinguishes a build that has the option from one that does not: the 8.12 line reports 8.9.241 in version.h, the same as builds from before the change. CLUSTER_BUS_PROTECTED_MODE= omits it for anyone running the cluster phase against an older redis locally. The tls_cluster phase is left alone, since tls-cluster authenticates the bus, and so is the existing-env phase, where RLTest starts no servers. Requires RLTest with the option (RedisLabsModules/RLTest#255). * Trigger CI to build the image locally, so it installs RLTest 0.7.29 * Set CLUSTER_BUS_ARGS before the ENV_ONLY branch can use it run_env interpolates CLUSTER_BUS_ARGS for COORD=oss, but the ENV_ONLY branch calls run_env and exits 20 lines before the assignment, so that path started its cluster without the waiver and the shards refused to start on 8.12. Moving the assignment above the branch; it depends on nothing in between. Co-Authored-By: Claude Opus 5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]>
* MOD-18952 Fix MGET command key spec (#1648) * MOD-18952 Fix MGET command key spec * fix tests * MOD-18751: waive cluster bus protected mode for the oss-cluster phase (#1644) * MOD-18751: waive cluster bus protected mode for the oss-cluster phase redis/redis#15722 added cluster-bus-port-protected-mode, and on the 8.12 line it defaults to enabled: a node started with cluster-enabled and without tls-cluster then refuses to start, because its cluster bus port would be unauthenticated. That is how the oss-cluster phase is built, so every shard dies at startup and each test fails at connect with "Connection refused". The refusal happens while the configuration is validated, before the server opens its logfile, so the retained logs are empty and say nothing about the cause. Waive it for that phase. The bus ports here are bound to localhost on an ephemeral host, which is the condition the directive documents for waiving, and they were equally unauthenticated before the redis change - which only made running them an explicit choice. The option is not passed blind, because a redis that does not have it rejects the directive and fails to start the same way. RLTest takes it as an option rather than guessing, since nothing it can see distinguishes a build that has the option from one that does not: the 8.12 line reports 8.9.241 in version.h, the same as builds from before the change. CLUSTER_BUS_PROTECTED_MODE= omits it for anyone running the cluster phase against an older redis locally. The tls_cluster phase is left alone, since tls-cluster authenticates the bus, and so is the existing-env phase, where RLTest starts no servers. Requires RLTest with the option (RedisLabsModules/RLTest#255). * Trigger CI to build the image locally, so it installs RLTest 0.7.29 * Set CLUSTER_BUS_ARGS before the ENV_ONLY branch can use it run_env interpolates CLUSTER_BUS_ARGS for COORD=oss, but the ENV_ONLY branch calls run_env and exits 20 lines before the assignment, so that path started its cluster without the waiver and the shards refused to start on 8.12. Moving the assignment above the branch; it depends on nothing in between. Co-Authored-By: Claude Opus 5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]> --------- Co-authored-by: LiranAbir <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]>
* MOD-18952 Fix MGET command key spec (#1648) * MOD-18952 Fix MGET command key spec * fix tests * MOD-18751: waive cluster bus protected mode for the oss-cluster phase (#1644) * MOD-18751: waive cluster bus protected mode for the oss-cluster phase redis/redis#15722 added cluster-bus-port-protected-mode, and on the 8.12 line it defaults to enabled: a node started with cluster-enabled and without tls-cluster then refuses to start, because its cluster bus port would be unauthenticated. That is how the oss-cluster phase is built, so every shard dies at startup and each test fails at connect with "Connection refused". The refusal happens while the configuration is validated, before the server opens its logfile, so the retained logs are empty and say nothing about the cause. Waive it for that phase. The bus ports here are bound to localhost on an ephemeral host, which is the condition the directive documents for waiving, and they were equally unauthenticated before the redis change - which only made running them an explicit choice. The option is not passed blind, because a redis that does not have it rejects the directive and fails to start the same way. RLTest takes it as an option rather than guessing, since nothing it can see distinguishes a build that has the option from one that does not: the 8.12 line reports 8.9.241 in version.h, the same as builds from before the change. CLUSTER_BUS_PROTECTED_MODE= omits it for anyone running the cluster phase against an older redis locally. The tls_cluster phase is left alone, since tls-cluster authenticates the bus, and so is the existing-env phase, where RLTest starts no servers. Requires RLTest with the option (RedisLabsModules/RLTest#255). * Trigger CI to build the image locally, so it installs RLTest 0.7.29 * Set CLUSTER_BUS_ARGS before the ENV_ONLY branch can use it run_env interpolates CLUSTER_BUS_ARGS for COORD=oss, but the ENV_ONLY branch calls run_env and exits 20 lines before the assignment, so that path started its cluster without the waiver and the shards refused to start on 8.12. Moving the assignment above the branch; it depends on nothing in between. Co-Authored-By: Claude Opus 5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]> --------- Co-authored-by: LiranAbir <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]>
* MOD-18952 Fix MGET command key spec (#1648) * MOD-18952 Fix MGET command key spec * fix tests * MOD-18751: waive cluster bus protected mode for the oss-cluster phase (#1644) * MOD-18751: waive cluster bus protected mode for the oss-cluster phase redis/redis#15722 added cluster-bus-port-protected-mode, and on the 8.12 line it defaults to enabled: a node started with cluster-enabled and without tls-cluster then refuses to start, because its cluster bus port would be unauthenticated. That is how the oss-cluster phase is built, so every shard dies at startup and each test fails at connect with "Connection refused". The refusal happens while the configuration is validated, before the server opens its logfile, so the retained logs are empty and say nothing about the cause. Waive it for that phase. The bus ports here are bound to localhost on an ephemeral host, which is the condition the directive documents for waiving, and they were equally unauthenticated before the redis change - which only made running them an explicit choice. The option is not passed blind, because a redis that does not have it rejects the directive and fails to start the same way. RLTest takes it as an option rather than guessing, since nothing it can see distinguishes a build that has the option from one that does not: the 8.12 line reports 8.9.241 in version.h, the same as builds from before the change. CLUSTER_BUS_PROTECTED_MODE= omits it for anyone running the cluster phase against an older redis locally. The tls_cluster phase is left alone, since tls-cluster authenticates the bus, and so is the existing-env phase, where RLTest starts no servers. Requires RLTest with the option (RedisLabsModules/RLTest#255). * Trigger CI to build the image locally, so it installs RLTest 0.7.29 * Set CLUSTER_BUS_ARGS before the ENV_ONLY branch can use it run_env interpolates CLUSTER_BUS_ARGS for COORD=oss, but the ENV_ONLY branch calls run_env and exits 20 lines before the assignment, so that path started its cluster without the waiver and the shards refused to start on 8.12. Moving the assignment above the branch; it depends on nothing in between. Co-Authored-By: Claude Opus 5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]> --------- Co-authored-by: LiranAbir <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]>
* MOD-18952 Fix MGET command key spec (#1648) * MOD-18952 Fix MGET command key spec * fix tests * MOD-18751: waive cluster bus protected mode for the oss-cluster phase (#1644) * MOD-18751: waive cluster bus protected mode for the oss-cluster phase redis/redis#15722 added cluster-bus-port-protected-mode, and on the 8.12 line it defaults to enabled: a node started with cluster-enabled and without tls-cluster then refuses to start, because its cluster bus port would be unauthenticated. That is how the oss-cluster phase is built, so every shard dies at startup and each test fails at connect with "Connection refused". The refusal happens while the configuration is validated, before the server opens its logfile, so the retained logs are empty and say nothing about the cause. Waive it for that phase. The bus ports here are bound to localhost on an ephemeral host, which is the condition the directive documents for waiving, and they were equally unauthenticated before the redis change - which only made running them an explicit choice. The option is not passed blind, because a redis that does not have it rejects the directive and fails to start the same way. RLTest takes it as an option rather than guessing, since nothing it can see distinguishes a build that has the option from one that does not: the 8.12 line reports 8.9.241 in version.h, the same as builds from before the change. CLUSTER_BUS_PROTECTED_MODE= omits it for anyone running the cluster phase against an older redis locally. The tls_cluster phase is left alone, since tls-cluster authenticates the bus, and so is the existing-env phase, where RLTest starts no servers. Requires RLTest with the option (RedisLabsModules/RLTest#255). * Trigger CI to build the image locally, so it installs RLTest 0.7.29 * Set CLUSTER_BUS_ARGS before the ENV_ONLY branch can use it run_env interpolates CLUSTER_BUS_ARGS for COORD=oss, but the ENV_ONLY branch calls run_env and exits 20 lines before the assignment, so that path started its cluster without the waiver and the shards refused to start on 8.12. Moving the assignment above the branch; it depends on nothing in between. Co-Authored-By: Claude Opus 5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]> --------- Co-authored-by: LiranAbir <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]>

Problem
redis/redis#15722 added
cluster-bus-port-protected-mode, and on the 8.12 line it defaults to enabled. A node started withcluster-enabled yesand withouttls-clusterthen refuses to start, because its cluster bus port would be unauthenticated. That is exactly how theoss-clusterphase is built, so every shard dies at startup and each test fails at connect:The refusal happens while the configuration is being validated, before the server opens its logfile, so the retained logs are empty and say nothing about the cause. Tracked as MOD-18751 — every
oss-clusterleg across this repo, RedisBloom and RedisJSON, public and dev forks, has been red on every run since 2026-09-15.Change
oss-clusterphase.requirements_docker.txtand the tests'requirements.txt, to a version that has the option.Waiving is the documented condition, not a shortcut: the bus ports here are bound to localhost on an ephemeral host, and they were equally unauthenticated before the redis change — which only made running them an explicit choice. redis waived it the same way in its own harness in that PR.
Why it is not passed unconditionally
A redis that does not have the option rejects the directive and fails to start the same way, whichever value is given — the name is what is unknown, not the value. So
CLUSTER_BUS_PROTECTED_MODE=omits it, for anyone running the cluster phase against an older redis locally:RLTest takes this as a caller option rather than working it out itself, because nothing it can see separates a build that has the option from one that does not — the 8.12 line reports
8.9.241inversion.h, the same as builds from before the change. Versions carrying it: 8.12 and up, plus the 8.2.10 / 8.4.7 / 8.6.7 / 8.8.3 / 8.10.2 backports, where it defaults to disabled and the flag is a harmless no-op.Untouched
tls_clusterphase —tls-clusterauthenticates the bus, so protection is already satisfied.existing-env/ RLEC phase — RLTest starts no servers.Verification
Built redis at
7a72677e(8.9.241, the 8.12 line) and ran a 3-shardoss-clusterthrough RLTest for each value:Connection refused(this bug)noyes3/3 shards receive the option when set, 0/3 when omitted.
Note the
build-linux-*legs install RLTest into the prebuilt ghcr image, whose tag is the redis ref rather than a content hash, so the new pin only takes effect once Push Docker Images rebuilds.🤖 Generated with Claude Code
Note
Low Risk
Test harness and dependency pin only; no runtime module or production Redis configuration changes.
Overview
Fixes oss-cluster RLTest runs against Redis 8.12+, where
cluster-bus-port-protected-modedefaults on and blocks unauthenticated cluster bus startup (the usual local oss-cluster layout).RLTest is pinned from 0.7.2 to 0.7.29 in
requirements_docker.txtandtests/pytest/requirements.txtso RLTest accepts--cluster_bus_port_protected_mode.tests.shbuildsCLUSTER_BUS_ARGS(defaultno) and appends it to oss-cluster invocations inrun_envand theCLUSTER=1phase. SettingCLUSTER_BUS_PROTECTED_MODE=clears the flag so older Redis builds that reject unknown directives still start.Other test legs (e.g. TLS cluster, existing-env) are unchanged.
Reviewed by Cursor Bugbot for commit 1b057de. Bugbot is set up for automated code reviews on this repo. Configure here.