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

[feat][proxy] PIP-250: Add proxyVersion to CommandConnect #19618

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reject proxy connection when proxyVersion is supplied
  • Loading branch information
michaeljmarshall committed Apr 6, 2023
commit c93d8ee0dd0cd7b7e8cd1bb6ad7b644ee666b66e
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,15 @@ remoteAddress, protocolVersionToAdvertise, getRemoteEndpointProtocolVersion(),
return;
}

if (connect.hasProxyVersion()) {
if (LOG.isDebugEnabled()) {
LOG.debug("[{}] Client illegally provided proxyVersion.", remoteAddress);
}
state = State.Closing;
writeAndFlushAndClose(Commands.newError(-1, ServerError.NotAllowedError, "Must not provide proxyVersion"));
return;
}

try {
// init authn
this.clientConf = createClientConfiguration();
Expand Down