Comments (7)
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.
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.
Can you provide a snippet of code to reproduce this? I'm not able to do so.
from redis-rs.
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.
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.
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.
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)
- (Async) Cluster: `get_random_connection` can panic HOT 1
- Async Cluster: Connection errors are hard to discover HOT 1
- Async Cluster: AWS Failover takes a long time to recover HOT 6
- `TlsConnParams` is opaque: Intentional? HOT 4
- add sentinel support in readme HOT 2
- Read timeouts on ConnectionManager in aio.rs HOT 6
- Possibly incorrect command ordering for XREADGROUP
- Async PubSub subscription to multiple channels doesn't work HOT 2
- Version 0.25 checklist HOT 1
- Error handling results of con.keys("meta_data:*") command HOT 1
- Pubsub util for rediscluster with async connection in Rust HOT 1
- Slow Redis client after build with release profile under qemu
- Setting and getting raw bytes HOT 4
- Does Client struct support TLS? HOT 4
- StreamReadReply silently discards data HOT 4
- Connection not usable after parsing error. "broken pipe" when connection manager is used. HOT 2
- Timeout parameter in .brpop changed from usize to f64 (or similar) HOT 3
- Issues with bytes-based APIs that don't allow iterating over commands
- Get nodes from cluster client HOT 1
- redis 0.23.4 contains a breaking change HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redis-rs.