Repository navigation
Authenticate RedisCluster seeds restored from the slot cache - #2957
Open
ebubekiryigit wants to merge 1 commit into
Open
ebubekiryigit wants to merge 1 commit into
ebubekiryigit wants to merge 1 commit into
Conversation
Copy configured credentials to seeds restored from the slot cache so authenticated topology remaps can use them. Add regression coverage for cached and uncached clients with persistent and nonpersistent connections. Extract the independent auth fix already included in pipeline PR phpredis#2798. Related to phpredis#2202.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
cluster_init_cacherecreates seed sockets without credentials. Ordinary reads and writes can succeed because data-node sockets have credentials, but a subsequent authenticated topology remap cannot use these seeds and fails after a MOVED response to a promoted replica.Copy the configured username and password to cached seeds, matching
cluster_init_seeds.This fix was originally implemented in the RedisCluster pipeline PR #2798, in commit d9dd96e. Since #2798 is a larger feature PR, I am submitting this change separately so the bug fix can be reviewed and merged independently. This PR also adds regression coverage for the existing non-pipeline remap path.
Closes #2202.
Validation
setex, and real manual failovers. Cached clients reproduced the remap failure on develop and passed with this fix; cache-disabled controls passed.The broader RedisCluster suite has two WATCH-abort failures also reproduced on clean develop (
testFailedTransactionsandtestQueuedReplyModes). All other applicable tests passed after installing the session runner's serializer dependencies.