Skip to content

Cannot log into valkey(/redis) server with no password #388

@solonovamax

Description

@solonovamax

It currently isn't possible to use a valkey(/redis) server without a password, as if the password is not provided it always defaults to an empty string which causes the following error:

Failed to save cache file
Failed to set cache: -ERR AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct?

username: Deno.env.get("REDIS_USERNAME") || "",
password: Deno.env.get("REDIS_PASSWORD") || "",

My current workaround has been to just comment out these lines.

A usecase for allowing connecting to valkey/redis without a password is when using docker compose, the valkey server is never exposed to the internet so it's fine to not give it a password.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions