Skip to content

Cherry pick #123114 to 26.3: S3 client check initial url in backup client - #123147

Merged
PedroTadim merged 5 commits into
backport/26.3/123114from
cherrypick/26.3/123114
Oct 2, 2026
Merged

PedroTadim merged 5 commits into
backport/26.3/123114from
cherrypick/26.3/123114

Conversation

@robot-clickhouse-ci-1

Copy link
Copy Markdown
Contributor

Original pull-request #123114

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-pick locally.
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:

  • delete the pr-cherrypick label from the PR
  • delete this branch from the repository

You also need to check the Original pull-request for pr-backports-created label, and delete if it's presented there

The PR source

The PR is created in the CI job

scanhex12 and others added 4 commits September 30, 2026 17:18
`PocoHTTPClient` for S3 only checks redirect targets against `RemoteHostFilter`,
and `BackupIO_S3` never validated the user-supplied endpoint, so
`BACKUP ... TO S3(url)` and `RESTORE ... FROM S3(url)` could reach hosts that
`s3` and `url` refuse with `UNACCEPTABLE_URL`.

Validate the backup URL in `makeS3Client`, the same way
`StorageS3Configuration::check` does for the `s3` table function.

The test is moved into `test_backup_restore_s3`.

ClickHouse/clickhouse-private#69102

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
S3 client check initial url in backup client
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only! do not test disable testing on pull request pr-critical-bugfix labels Sep 30, 2026
`BackupIO_S3.cpp`: the release branch does not include `Common/Throttler.h` here, so only `Common/RemoteHostFilter.h` is added.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@PedroTadim
PedroTadim merged commit 7ed214d into backport/26.3/123114 Oct 2, 2026
@PedroTadim
PedroTadim deleted the cherrypick/26.3/123114 branch October 2, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not test disable testing on pull request pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only! pr-critical-bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants