Skip to content

Redis List scaler with no redis username #6403

Closed Answered by IamJeffG
IamJeffG asked this question in Q&A / Need Help
Discussion options

You must be logged in to vote

I got it working! The fault was mine:

When I was base64-encoding the Redis access key, as is required to store in a kubernetes secret that keda reads, I was inadvertently including a newline on the value being encoded. Redis saw the extra newline character in the access key and rejected authentication.

This is what I had been doing:

$ echo myaccesskey | base64 -w0   # WRONG

This is the fix: (-n omits trailing newline)

$ echo -n myaccesskey | base64 -w0

And the fact that the keda source code passes info.username to the Go redis client is not a problem, even when there is no username.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by IamJeffG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant