Skip to content

[BUG] sim-setup reports a working REDIS_URL as unreachable when its password is percent-encoded or ends in "=" #10710

Backlog

Description

@kowshikdev

Describe the bug
The setup tool's Redis probe sends the URL's username and password still percent-encoded, as new URL() keeps them. The app connects with the same URL because ioredis decodes them.

To Reproduce

  1. Run a Redis with a password such as c2VjcmV0a2V5= or p@ss (written p%40ss in the URL).
  2. Set REDIS_URL=redis://:c2VjcmV0a2V5=@localhost:6379.
  3. Run the setup doctor: it reports redis unreachable: -WRONGPASS invalid username-password pair.

Expected behavior
The probe authenticates with the decoded credentials and reports Redis as reachable.

Additional context
redisPing in packages/sim-setup/src/probes.ts. It also sends AUTH as an inline command, so a decoded password containing a space would be split.

Activity

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

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