[MDEV-22798] proxy-protocol-networks not working since migration in Mariadb 10.4.13 Created: 2020-06-04 Updated: 2022-06-13 Resolved: 2022-06-13 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System |
| Affects Version/s: | 10.4.13 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Critical |
| Reporter: | Nicolas PEYRESAUBES | Assignee: | Ramesh Sivaraman |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | galera, proxy_protocol_networks, regression | ||
| Environment: |
OS : Debian Buster |
||
| Issue Links: |
|
||||||||
| Description |
|
Dear All, Since I migrated from Mariadb 10.3.22 to 10.4.13, I get some regression with the use of proxy-protocol-networks.
and on haproxy's side :
I also tried with "send-proxy" On haproxy I get the following logs
and after a while I get the followinf error for each of my galera's nodes
On my galera's nodes I get following errors repeating till the source ip is blocked
All of this leads to all backend seen as down. If I skip all these proxy configuration things and create users in mariadb on haproxy's ips everything is working fine, but i lose the client IP. Regards |
| Comments |
| Comment by Nicolas PEYRESAUBES [ 2020-07-24 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I tried to upgrade to 10.5.3 ... but it doesn't change anything concerning this problem. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2020-08-13 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
jplindst, I'm positive that this work in normal standalone server, which is not Galera. We do have a test for this inside mysql_client_test, this is in test suite (https://github.com/MariaDB/server/blob/10.5/tests/mysql_client_test.c, look for test_proxy_header()) , and it always succeeds. Besides , there is not difference between 10.3 and 10.4 proxy protocol handling. But there is a difference in Galera, so I'm assigning you to check what's wrong. You'd need to implement test like this , also for Galera. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Yannis Fragkoulis [ 2021-09-03 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Have the same issue after upgrading to 10.5 from 10.3 (debian buster to bullseye). I am also behind haproxy and running mariadb in a container. Using `send-proxy` on the haproxy backend configuration now fails and mariadb logs: ``` | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Black [ 2022-05-05 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Note the mysql-check in haproxy is rather crude. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ramesh Sivaraman [ 2022-05-09 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Could not reproduce the issue on 10.4.24. Tried to configure galera hosts in HAproxy listen section to check the connection status. HAProxy could not be started while using the backend section mentioned in the bug description. Please share the haproxy.cfg file and try to check the connection status using the {{listen} section as mentioned in the test case below.
|