-
Notifications
You must be signed in to change notification settings - Fork 142
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
camellia-redis-proxy support proxy_protocol to get real client ip in 4-layer-proxy #131
Comments
@InputOutputZ https://github.com/netease-im/camellia/blob/master/docs/redis-proxy/other/proxy_protocol.md could you pls help me to testing this feature?
|
Sure, I will test it now. |
thank you very much! you can compare enable/disable proxy_protocol
|
pls use the latest code, I fix a bug just now. @InputOutputZ |
@InputOutputZ thank you very much for your tests work. all test results is expected! And I try to compatible enable/disable proxy_protocol for haproxy and direct_connect, but I need more discuss |
@InputOutputZ I tried several methods to compatible, finally I decide to keep the way it is. Thank you very much for you tests work again! |
@InputOutputZ in latest code, you can specify the proxy_protocol_ports, e.g. tls-port enable and no-tls-port disable. you can see config in doc: https://github.com/netease-im/camellia/blob/master/docs/redis-proxy/other/proxy_protocol.md |
I think it's better solution. Thanks for this. |
@caojiajun I thought about client list, and it returns all connected clients including unauthenticated and I wonder if you can add extra field, beside cmd and user and the rest of the fields, to indicate authentication status e.g :-
Given the user is not authenticated but connected to redis-cli and:-
Given the user has already authenticated via AUTH command after connecting to redis-cli? With thanks. |
Btw, refer to Client List documentation, it said user field is the authenticated username of the client while now I have not authenticated just the user and from other session when I run client list I get the unauthenticated session having user=default field, when it shouldn't. |
I test direct connect to redis, unauthenticated client connection return user=default but I found if a client connection unauthenticated, the |
after authenticated, you can manual send |
the best solution is add |
Up to you but I recommend it to take CRP to the next level, because it's helpful in different situations e.g. to keep tracking of who is connected and authenticated to Redis Cluster for security purposes and I think it's needed since redis-cli it doesn't offer extra layer of protection such as 2FA , and to avoid false positives, it's helpful to have authentication status field available, and scanning the web cybersecurity services are a huge source of false positives. |
I will add |
pls try the latest code @InputOutputZ |
Tested and works like a charm. Thanks for this :) |
@InputOutputZ could you pls leave a star, and leave your company in this issue #10 (For open source users only) |
Sorry @caojiajun but I don't have a company yet I just left a star. Thanks. |
Module: camellia-redis-proxy
Content: camellia-redis-proxy support proxy_protocol to get real client ip in 4-layer-proxy
The text was updated successfully, but these errors were encountered: