Repository navigation
Cherry pick #114357 to 26.6: Validate S3 and Azure URLs before client creation and schema inference - #119547
Merged
Conversation
Run the object-storage configuration check before `DESCRIBE s3` infers a schema, so `remote_url_allow_hosts` rejects the initial URL before any request.
# Conflicts: # tests/integration/test_storage_s3/test.py
Run configuration checks before `resolveSchemaAndFormat` in `StorageObjectStorageCluster`, preventing blocked hosts from being contacted by `s3Cluster` during schema inference.
Configured disks are explicitly approved by the operator and bypass remote host filtering at request time. Keep format validation, but do not revalidate their endpoints as SQL-provided URLs.
Disk-backed data-lake configurations only need the shared format check. Expose that check as a non-virtual helper so the path does not bypass an overridden virtual method.
Use a unique object outside the managed disk root and remove it explicitly. Also avoid a value equal to the column name, which automatic header detection consumes as a header.\n\nCI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=114357&sha=168fe5dc03895135db0695276ff2ac3498d6c071&name_0=PR&name_1=Integration%20tests%20%28amd_asan_ubsan%2C%20flaky%29
Keep the construction-time header normalization, but validate a copy during repeated S3 and Web configuration updates. Preserve the existing data-lake check lifecycle. PR: #114357
…ot-20260831 # Conflicts: # src/Storages/ObjectStorage/DataLakes/DataLakeConfiguration.h
The existing Iceberg disk integration cases now run without allowlisting Azurite, proving that configured Azure disks bypass both the data lake configuration pre-check and the request transport filter.
…emory-retry-20260831
…nfra-retry-20260901
…emory-retry-20260901-2
…i-retry-20260901-3
…i-retry-20260901-4
Remove config-reload, request-time, background metadata, `HDFS`, and Azure expansion from earlier automated review rounds. Keep validation before first access for SQL-supplied URLs while configured `S3` disks remain trusted.
…357-pass21-20260906
Run the configuration check before `getContainerClient` can probe or create a container for a SQL-supplied endpoint. Cover both `CREATE TABLE` and `INSERT INTO TABLE FUNCTION` and assert that rejected URLs make no Azure container API calls. The same integration test cases observe one API call each before the fix and zero after it with the patched Debug binary. #114357 (comment)
…ost-validation Validate S3 and Azure URLs before client creation and schema inference
Keep master's `format != "auto"` guard in `checkFormat`. It is unchanged context in #114357's diff, but it comes from a commit that is not on 26.6, and this change moves `check()` ahead of schema inference where `format` is still `auto`; without it every `format = auto` table would fail with UNKNOWN_FORMAT. Drop the post-inference `configuration->check(context)` the merge left behind in StorageObjectStorage.cpp. 26.6 has no comment above that call, so the removal hunk did not match and the new early call was simply added alongside it. For `restricted_dummy`, add only `remote_servers.xml`; the other side also lists `allow_server_credentials.xml`, which does not exist on 26.6. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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 #114357
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