Giter VIP home page Giter VIP logo

Comments (7)

nihohit avatar nihohit commented on May 20, 2024 1

let url="redis://test:testpass@localhost/0"
Here you pass username test with password testpass.
redis-cli -a testpass - here you don't pass a username, only a password. Might this be the issue?

from redis-rs.

thalesfragoso avatar thalesfragoso commented on May 20, 2024 1

redis has two authentication mechanisms: single password protection and ACL.
If you provide an username, it will use the ACL method, which I image isn't properly configured in your redis server.

from redis-rs.

jaymell avatar jaymell commented on May 20, 2024

Can you provide a snippet of code to reproduce this? I'm not able to do so.

from redis-rs.

51yu avatar 51yu commented on May 20, 2024
use redis::{aio::ConnectionManager, Client}

let url="redis://test:testpass@localhost/0"
let client = Client::open(url)?;
let conn = ConnectionManager::new(client).await?;

from redis-rs.

jaymell avatar jaymell commented on May 20, 2024

And what error are you getting?

Also, can you post output of what happens when you both run redis-cli AND execute a command?

from redis-rs.

51yu avatar 51yu commented on May 20, 2024

The error message is Password authentication failed.
and using redis-cli, it works fine

redis-cli -a testpass

I am running my app with envoy proxy. so the tcp connection is proxied by envoy.
If I disable password auth at redis, the proxied connection succeed with rust code

from redis-rs.

51yu avatar 51yu commented on May 20, 2024

app log

Password authentication failed- AuthenticationFailed)

redis-cli

$ redis-cli -a dev
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
127.0.0.1:6379> keys *
(empty array)```

from redis-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.