Want redis-cli to be able to connect as non-default user with AUTH.
Currently there is no way to do this using the -a and -u methods for redis-cli. Ideally, I would like to connect using either method.
Current usage (from website):
redis-cli -a myUnguessablePazzzzzword123 ping redis-cli -u redis://p%40ssw0rd@redis-16379.hosted.com:16379/0 ping
Proposed usage:
redis-cli -a acl_username:myUnguessablePazzzzzword123 ping redis-cli -u redis://acl_username:p%40ssw0rd@redis-16379.hosted.com:16379/0 ping
I'd would also be okay if an entirely new option was purposed for this functionality, if it's deemed too kludgy to implement the above suggestions, say like a '-U' argument.
Note: I'm aware that you can connect, then auth for a non-default users, but it makes writing shell scripts and ansible playbooks more challenging without the requested functionality.
Comment From: oranagra
are you missing this:
" --user <username> Used to send ACL style 'AUTH username pass'. Needs -a.\n"
" --pass <password> Alias of -a for consistency with the new --user option.\n"
however, i see that -u (URL) can be improved:
/* Extract user info. */
if ((userinfo = strchr(curr,'@'))) {
if ((username = strchr(curr, ':')) && username < userinfo) {
/* If provided, username is ignored. */
curr = username + 1;
}
Comment From: jrtaisto
I sure did. This can be closed out unless the redis URI is going to be addressed to allow access. Thanks.
On Thu, Nov 12, 2020 at 10:40 AM Oran Agra notifications@github.com wrote:
are you missing this:
" --user
Used to send ACL style 'AUTH username pass'. Needs -a.\n"" --pass Alias of -a for consistency with the new --user option.\n" however, i see that -u (URL) can be improved:
/* Extract user info. */ if ((userinfo = strchr(curr,'@'))) { if ((username = strchr(curr, ':')) && username < userinfo) { /* If provided, username is ignored. */ curr = username + 1; }— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/redis/redis/issues/8047#issuecomment-726156691, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI3XOZGMTNTUP5DC5ZNGUOLSPP6W3ANCNFSM4TTNOUXA .
Comment From: oranagra
already handled, will probably be in the next release. thanks