[SERVER-60677] Create a parser for proxy protocol headers Created: 13/Oct/21  Updated: 29/Oct/23  Resolved: 01/Nov/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1.0-rc3, 5.0.7

Type: Improvement Priority: Major - P3
Reporter: Tyler Seip (Inactive) Assignee: Tyler Seip (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-58496 Detect connections made via the Proxy... Closed
Problem/Incident
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0
Sprint: Service Arch 2021-11-01, Service Arch 2021-11-15
Participants:
Linked BF Score: 0
Story Points: 3

 Description   

https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt outlines the specification for the proxy protocol header, which we need to be able to parse in order to support detecting load balanced connections. In this ticket, implement a parser that supports both V1 and V2 of the proxy protocol and surfaces the original source and destination IPs parsed from the headers to a user. See SERVER-58496 for a summary of all of the work required to support load balanced connections on the server.



 Comments   
Comment by Githook User [ 17/Mar/22 ]

Author:

{'name': 'Tyler Seip', 'email': 'Tyler.Seip@mongodb.com', 'username': 'tseip-mongo'}

Message: SERVER-60677: Implement parser for Proxy Protocol V1 and V2 headers

(cherry picked from commit 786482da93c3e5e58b1c690cb060f00c60864f69)
Branch: LB
https://github.com/mongodb/mongo/commit/0c54de9aabadbdc459bb94aa1cc3af2dd0e3d439

Comment by Githook User [ 16/Mar/22 ]

Author:

{'name': 'Tyler Seip', 'email': 'Tyler.Seip@mongodb.com', 'username': 'tseip-mongo'}

Message: SERVER-60677: Implement parser for Proxy Protocol V1 and V2 headers

(cherry picked from commit 786482da93c3e5e58b1c690cb060f00c60864f69)
Branch: v5.0
https://github.com/mongodb/mongo/commit/fcb579b971ae344eae8aa1e1e00db7e627d9e013

Comment by Githook User [ 29/Oct/21 ]

Author:

{'name': 'Tyler Seip', 'email': 'Tyler.Seip@mongodb.com', 'username': 'tseip-mongo'}

Message: SERVER-60677: Implement parser for Proxy Protocol V1 and V2 headers
Branch: master
https://github.com/mongodb/mongo/commit/786482da93c3e5e58b1c690cb060f00c60864f69

Comment by Githook User [ 28/Oct/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: Revert "SERVER-60677: Implement parser for Proxy Protocol V1 and V2"

This reverts commit 0220bb0c39c75858689c95d90e0c07e42773bf55.
Branch: master
https://github.com/mongodb/mongo/commit/0db4669dfe16452e57d06b11f1e0dbdb57a556d8

Comment by Githook User [ 27/Oct/21 ]

Author:

{'name': 'Tyler Seip', 'email': 'Tyler.Seip@mongodb.com', 'username': 'tseip-mongo'}

Message: SERVER-60677: Implement parser for Proxy Protocol V1 and V2
Branch: master
https://github.com/mongodb/mongo/commit/0220bb0c39c75858689c95d90e0c07e42773bf55

Generated at Thu Feb 08 05:50:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.