Add Unix Domain Socket mirrors for TLS ports with metadata export#357
Draft
Add Unix Domain Socket mirrors for TLS ports with metadata export#357
Conversation
Creates per-thread UDS mirrors for secure HTTP/TCP servers, writing YAML metadata files containing certificate information. Includes cleanup helpers for socket lifecycle management and comprehensive unit tests for metadata serialization and file operations.
When symphony connects to a per-thread UDS mirror and sends a PROXY v1 header, strip it before the HTTP parser sees it and set socket.remoteAddress / socket.remotePort to the real client values. Uses prependListener so our one-time data handler fires before Node's HTTP parser. socket.unshift() returns any non-header bytes back to the read buffer. Connections without a PROXY header pass through unchanged. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… headers in Node.js v24+
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Creates per-thread UDS mirrors for secure HTTP/TCP servers, writing YAML metadata files containing certificate information. Includes cleanup helpers for socket lifecycle management and comprehensive unit tests for metadata serialization and file operations.
This is designed to facilitate high efficiency socket handling from HarperFast/symphony.
PROXY protocol handling pairs with HarperFast/symphony#5