Skip to content

[BUG] redis-cli no longer supports implicit default username in connection URL #12746

@OvervCW

Description

@OvervCW

Describe the bug

It used to be possible to connect to Redis using redis-cli and a connection URL with an empty username, like this:

redis-cli -u 'redis://:PASSWORD@localhost:6379/0'

However, this no longer seems to work with the redis-cli 7.0.12 I'm using right now and it responds with:

AUTH failed: WRONGPASS invalid username-password pair or user is disabled.

I found that this can be fixed by explicitly providing default as username as follows (by luck, since that doesn't appear to be documented anywhere):

redis-cli -u 'redis://default:PASSWORD@localhost:6379/0'

However, that seems to somewhat violate the backwards compatibility promise as described here.

To reproduce

See description.

Expected behavior

See description.

Additional information

N/A

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