Skip to content

Proxy protocol#5

Merged
kriszyp merged 2 commits intomainfrom
proxy-protocol
Apr 18, 2026
Merged

Proxy protocol#5
kriszyp merged 2 commits intomainfrom
proxy-protocol

Conversation

@kriszyp
Copy link
Copy Markdown
Member

@kriszyp kriszyp commented Apr 17, 2026

Pairs with HarperFast/harper@52b9844

Send PROXY protocol v1 header to UDS upstreams
When proxying to a Unix domain socket upstream, write a PROXY v1 header
before copy_bidirectional so the backend can recover the real client IP
and port (which are otherwise invisible over UDS).

Format: PROXY TCP4/TCP6 0\r\n

TCP upstreams are unaffected. Upgrading to v2 (for TLS metadata such as
client cert CN) is the natural next step when needed.

kriszyp and others added 2 commits April 16, 2026 17:55
When proxying to a Unix domain socket upstream, write a PROXY v1 header
before copy_bidirectional so the backend can recover the real client IP
and port (which are otherwise invisible over UDS).

Format: PROXY TCP4/TCP6 <src-ip> <dst-ip> <src-port> 0\r\n

TCP upstreams are unaffected. Upgrading to v2 (for TLS metadata such as
client cert CN) is the natural next step when needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Update package name in root package.json, all npm sub-packages, and the
native addon loader in proxy.ts. Add license field to Cargo.toml. Replace
the LICENSE file with the Elastic License 2.0 text.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

@cb1kenobi cb1kenobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kriszyp kriszyp merged commit af23ec0 into main Apr 18, 2026
0 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants