dotnet / dotnet/yarp

Implement inbound PPv2

Open
#11 2 comments 1 reaction 0 assignees View on GitHub
Type: Enhancement
Dominant language
C#
Stars
9.6k
Forks
933
Avg merge
12d 18h
Merged PRs (30d)
2

Description

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

This is a proxy forwarder protocol primary used by layer 4 proxies to forward information about the original client such as their IP. It does so by pre-pending the connection stream with a text or binary formatted blob of data. It's more efficient than adding X-Forwarded-For and similar headers to every request.

In Kestrel this would be implemented as a connection middleware. We helped an internal team build this middleware already and they're using it with an existing azure network services that sends that data.

I'll file a separate issue for outbound support as it would need to integrate with HttpClient.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.