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

HTTP: support generating fake PROXY protocol header #4518

Open
slandelle opened this issue Feb 2, 2024 · 0 comments
Open

HTTP: support generating fake PROXY protocol header #4518

slandelle opened this issue Feb 2, 2024 · 0 comments

Comments

@slandelle
Copy link
Member

slandelle commented Feb 2, 2024

Some applications might require a fake PROXY protocol header to perform properly based on the information in there, in particular the source address and port.

https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt

In this ticket, we're going to support the following:

  • only for HTTP protocol support
  • header version 1 only
  • INET protocol and family: IPv4 only, header won't be generated if the resolution results in an IPv6 address
  • source address and port: fetched from an Expression[InetSocketAddress] so the user can define his own generators and typically generate InetSocketAddress.createUnresolved(hostname, port)
  • destination address: the one of the proxy
  • destination port: the one of the proxy

The only thing the user will have to do to enable this feature will be to add enableFakeProxyProtocolHeader() on the HttpProtocol configuration and the source InetSocketAddress generator.

@slandelle slandelle added this to the 3.11.0 milestone Feb 2, 2024
@slandelle slandelle removed this from the 3.11.0 milestone Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant