Skip to content

redis-cli support not default user with auth from command line. #8047

@jrtaisto

Description

@jrtaisto

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%[email protected]:16379/0 ping

Proposed usage:

redis-cli -a acl_username:myUnguessablePazzzzzword123 ping
redis-cli -u redis://acl_username:p%[email protected]: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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions