Repository navigation
Cherry pick #123188 to 26.9: add a setting to allow disabling interserver mode over tcp_with_proxy interface - #125322
Merged
robot-ch-test-poll2 merged 8 commits intoOct 22, 2026
Conversation
…o-disable-interserver-mode-over-tcp-with-proxy # Conflicts: # src/Core/ServerSettings.cpp
- Declare `ServerSetting::tcp_with_proxy_allow_interserver_mode` in `TCPHandler.cpp`. - Add `/// NOLINT` to the `throw exception;` to satisfy `cert-err09-cpp`. - Document the setting with `false` in `config.xml` and mirror it in `config.yaml.example`. - Add an instance relying on the default value to check interserver mode stays allowed on `tcp_with_proxy_port`. - Assert the `LoginFailure` row in `system.session_log` for the rejection.
…tcp_with_proxy_port` The reject path logged the `LoginFailure` against `socket().peerAddress()`, so with `auth_use_forwarded_address` enabled `system.session_log` recorded the proxy instead of the real client. Use `getClientAddress` like the empty default user reject path does, and check `client_address` in the integration test. Related: #123188 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…LED`-only With `auth_use_forwarded_address` enabled, `getClientAddress` throws `INCORRECT_DATA` for a non-IP PROXY source address. That skipped the `LoginFailure` row and the silent close for interserver peers in `runImpl`, sending a serialized error to an unauthenticated peer. Resolve the forwarded address without throwing in this path, and add a test with a malformed PROXY source address. Related: #123188 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…isable-interserver-mode-over-tcp-with-proxy add a setting to allow disabling interserver mode over tcp_with_proxy interface
Contributor
|
Dear @tiandiwonder, @chhetripradeep, this cherry-pick PR has not been updated for 3d0h5m22s. Please resolve the conflicts to backport #123188, or close this PR if the backport is no longer needed. This PR will be automatically closed after 7 days of inactivity. |
Resolve the conflict in `src/Core/ServerSettings.cpp`: add `tcp_with_proxy_allow_interserver_mode` and keep the release branch's own description of `handshake_timeout_milliseconds`. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Member
|
Dear @tiandiwonder, @chhetripradeep, this cherry-pick PR has not been updated for 7d0h4m37s. Closing automatically. If you still want to backport #123188, please resolve the conflicts and reopen this PR. |
Contributor
|
Dear @tiandiwonder, @chhetripradeep, this PR is opened while #123188 was marked as backported. The If the cherry-pick is not needed anymore, then just close this PR. |
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.
Original pull-request #123188
Do not merge this PR manually
This pull-request is a first step of an automated backporting.
It contains changes similar to calling
git cherry-picklocally.If you intend to continue backporting the changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.
The check results does not matter at this step - you can safely ignore them.
Before you resolve anything
Conflicts are often caused by a prerequisite change that has not been backported yet, rather than by a real divergence. The bot re-tries this cherry-pick against the release branch on every run, so if that is the case here it will merge itself as soon as the prerequisite lands, and you will see a comment saying so. Manual resolution is only needed while the conflict persists.
Troubleshooting
If the conflicts were resolved in a wrong way
If this cherry-pick PR is completely screwed by a wrong conflicts resolution, and you want to recreate it:
pr-cherrypicklabel from the PRYou also need to check the Original pull-request for
pr-backports-createdlabel, and delete if it's presented thereThe PR source
The PR is created in the CI job