Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加proxy层面的auth认证 #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dongzerun
Copy link
Contributor

实现方式是在 proxy 增加 auth 认证,不透传到后端 redis,并且兼容现有非 auth 模式。请 review 下~~

  1. Config 增加 auth 字段,兼容认证和非认证模式
  2. Client 增加 _auth 字段
  3. 增加 AuthCommandParser,用于处理 AUTH 命令,每个 SpecialCommandParser 在 spawn_commands 时先判断是否需要认证,否则返回 NOAUTH_RSP 的 DirectCommandGroup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant