Skip to content

Rework proxyline parsing for SSH direct dial nodes#35659

Closed
espadolini wants to merge 1 commit intomasterfrom
espadolini/proxyline-inline
Closed

Rework proxyline parsing for SSH direct dial nodes#35659
espadolini wants to merge 1 commit intomasterfrom
espadolini/proxyline-inline

Conversation

@espadolini
Copy link
Copy Markdown
Contributor

@espadolini espadolini commented Dec 12, 2023

This PR changes the SSH service listener (in direct dial mode) to use a dedicated connection handler to parse the optional signed PROXY protocol v2 header from the proxy (instead of relying on the generic protocol multiplexer), with the ability to send "early data" such as the SSH version identification string.

Fixes #35647.

Changelog: Restored direct dial SSH server compatibility with certain SSH tools (such as ssh-keyscan).

@espadolini espadolini force-pushed the espadolini/proxyline-inline branch 3 times, most recently from 6d6cbb1 to bf667ee Compare December 13, 2023 16:14
@smallinsky smallinsky self-requested a review December 13, 2023 18:00
@espadolini espadolini force-pushed the espadolini/proxyline-inline branch from 3c8a6d7 to 6e7251a Compare December 14, 2023 18:35
@espadolini espadolini force-pushed the espadolini/proxyline-inline branch from 6e7251a to bab9de2 Compare December 14, 2023 20:10
@espadolini
Copy link
Copy Markdown
Contributor Author

Closing this in favor of #35762 because our test code relies far too much on the exact semantics of the multiplexer server - I intend to revisit that in the future, however.

@espadolini espadolini closed this Dec 15, 2023
@espadolini espadolini deleted the espadolini/proxyline-inline branch December 15, 2023 00:37
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.

SSH listener violates spec by waiting for client data

1 participant