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

能否支持认证? #42

Open
dongzerun opened this issue May 2, 2018 · 5 comments
Open

能否支持认证? #42

dongzerun opened this issue May 2, 2018 · 5 comments

Comments

@dongzerun
Copy link
Contributor

有的业务需要 auth,能否在 proxy 层实现一下 auth 命令呢?passwd 写在 cerberus 的配置文件里就可以,选择是否开启

我可以提个 pr

@zheplusplus
Copy link
Contributor

对这个需求不很强烈啊. 其实都不怎么用代理了, 现在程序直连集群就挺好的...

要实现的话可以参考下只读代理发 READONLY 命令那里, 修改 on_server_connected

https://github.com/projecteru/redis-cerberus/blob/master/core/server.cpp#L236

@dongzerun
Copy link
Contributor Author

我的想法是在 proxy 层实现 auth,而不用发送 auth 到后端 redis。直连始终对运维不友好

@jasonjoo2010
Copy link

我的想法是在 proxy 层实现 auth,而不用发送 auth 到后端 redis。直连始终对运维不友好

@dongzerun 你可以尝试下corvus

除此之外,我fork的分支有正在测试的订阅命令(publish/subscribe/unsubscribe/psubscribe/punsubscribe)支持版

哈哈,挺怀念cerberus,不过改起来不如C语言版简单些

@neuront 在只读实例负载均衡处理上,proxy还是有一点用处

@dongzerun
Copy link
Contributor Author

@jasonjoo2010 谢谢,我自己写了 auth,不过 cerberus 不合并

@andyli029
Copy link

Good

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

No branches or pull requests

4 participants