You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/07/13 07:50:35 UTC

[GitHub] [doris] GoGoWen opened a new issue, #10801: [Enhancement] support proxy protocol

GoGoWen opened a new issue, #10801:
URL: https://github.com/apache/doris/issues/10801

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Description
   
   support proxy protocol :
   https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt
   
   background:
   when using haproxy as LB,  we can not get real client ip in audit log.  we request to get the source ip correctly.
   
   solution:
   1, in haproxy,  use send-proxy    #制使用PROXY协议连接建立到此服务器。
                            or send-proxy-v2   #服务器建立的任何连接强制使用PROXY协议版本2。
   2, in fe, once parse mysql protocol fail, we need to parse proxy-protocol.
   
   ### Solution
   
   support proxy protocol :
   https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt
   
   background:
   when using haproxy as LB,  we can not get real client ip in audit log.  we request to get the source ip correctly.
   
   solution:
   1, in haproxy,  use send-proxy    #制使用PROXY协议连接建立到此服务器。
                            or send-proxy-v2   #服务器建立的任何连接强制使用PROXY协议版本2。
   2, in fe, once parse mysql protocol fail, we need to parse proxy-protocol.
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org