Skip to content

NOAUTH despite authPassword and/or ACL style on Redis 6.2.6 #28

Closed
@sgohl

Description

@sgohl

When trying to migrate a RDB file or a single-mode source redis to remote redis cluster (both 6.2.6)

docker run --pull=always -it --rm redisrdbcli/redis-rdb-cli:latest-native bash

# rdt -b redis://192.168.200.177:6161 -o /tmp/data.rdb
/[  1.3GB| 11.6MB/s]

# rmt -s /tmp/data.rdb -m redis://default:UaY34A1KB@192.168.200.177:6071 -r
\[    5 B|  333 B/s]failed to connect cluster nodes, reason : NOAUTH Authentication required.
failed to connect cluster nodes, reason : NOAUTH Authentication required.
failed to connect cluster nodes, reason : NOAUTH Authentication required.
failed to connect cluster nodes, reason : NOAUTH Authentication required.

Destination Redis Cluster has:

192.168.200.177:6071> ACL LIST
1) "user default on #7d18ca55910168baebd9e6304d988379163eb714a2f524c216299ab377e7451d ~* &* +@all"

I also tried the authPassword and ACL style and both:

redis://default:UaY34A1KB@192.168.200.177:6071?authPassword=UaY34A1KB
redis://192.168.200.177:6071?authPassword=UaY34A1KB

when I try to log in with a wrong password on purpose it recognized the password was wrong, so it works as expected:

java.lang.RuntimeException: failed to connect to 192.168.200.177:6071, reason WRONGPASS invalid username-password pair or user is disabled.
	at com.moilioncircle.redis.rdb.cli.cmd.XRmt.getRdbVisitor(XRmt.java:169)

It didn't work with the -c nodes.conf variant either.

Am I doing something wrong or is the tool not yet able to handle redis v 6.2.6 ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions