Skip to content

Call AUTH before HELLO #2592

@OrangeDog

Description

@OrangeDog

Feature Request

Redis appears to be poorly designed security-wise, and in most ACL configurations it is not possible to use HELLO to authenticate because you have to authenticate first in order to be allowed to call it.

By default, of if configured to use RESP3, Lettuce will try to do this. It will only work if the default user is configured with no password.

Is your feature request related to a problem? Please describe

In most secure configurations you will get #1379.

Describe the solution you'd like

Lettuce should always AUTH first if a (username and) password is provided, before doing any protocol negotiation.

Describe alternatives you've considered

Either always force RESP2, or configure user default on nopass +hello.

The former requires user code changes and is less efficient. The latter is not appropriate if you need the default user for something else.

Teachability, Documentation, Adoption, Migration Strategy

No change to visible API/config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions