envoyproxy/envoy

envoy redis_proxy can‘t support RESP3 HELLO CMD

开放

#17,571 创建于 2021年8月3日

 (14 条评论) (2 个反应) (0 位负责人)C++ (5,373 个派生)batch import
area/redishelp wanted

仓库指标

星标
 (27,997 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Title: envoy redis_proxy can‘t support RESP3 HELLO CMD

Description:

I use a RESP3 redis client(lettuce) to connect envoy redis proxy,I found :

  1. if envoy config downstream_auth_password, the use lettuce connect, envoy will return -NOAUTH Authentication required. image

  2. if envoy not config downstream_auth_password,then use lettuce connect, envoy will return -unsupported command 'HELLO' image

If I use a RESP3 redis client(lettuce) to connect redis directly , there is no this problem.I think if envoy don't support HELLO,it should return -ERR unknown command 'HELLO' like redis server return , so redis client lettuce can siwtch to RESP2.

Repro steps:

  1. use https://github.com/lettuce-io/lettuce-core redis client (java) to connect envoy
  2. or use telnet like this [root@hadoop-master envoy]# telnet 127.0.0.1 63799 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. *5 $5 HELLO $1 3 $4 AUTH $7 default $8 foobared

Config: envoy-redis-proxy-HELLO.yml.txt

贡献者指南