Repository navigation
Cherry pick #108470 to 25.8: Hide legacy storage_* credential settings of DataLakeCatalog - #116271
Merged
robot-clickhouse-ci-1 merged 5 commits intoAug 27, 2026
Merged
Conversation
The DataLake credential-bearing settings (catalog_credential, auth_header, aws_access_key_id, aws_secret_access_key and their legacy storage_* aliases) are declared in DataLakeStorageSettings.h, which is shared by the DataLakeCatalog database engine AND the Iceberg*/Paimon*/DeltaLake* table engines via registerStorageObjectStorage. ASTSetQuery::formatImpl only redacted them when create_engine_name equalled 'DataLakeCatalog', so SHOW CREATE TABLE, system.tables.engine_full and the formatForLogging path printed the secret values verbatim for the table engines. Any user with the relevant SELECT/SHOW grant could read them. hasSecretParts() already treats these settings as secret without an engine gate, so the format path was inconsistent with it. Redact DataLake::SETTINGS_TO_HIDE settings regardless of engine name, matching hasSecretParts(). Extend the regression test to cover the IcebergLocal table engine in addition to the DataLakeCatalog database engine. Also adds storage_catalog_credential and storage_auth_header to the redaction map (storage_aws_* were already added on master by #96910). Co-Authored-By: Claude Opus 4.8 <[email protected]>
…g-storage-credential-leak
…-credential-leak Hide legacy storage_* credential settings of DataLakeCatalog
…ypick/25.8/108470 # Conflicts: # src/Databases/DataLake/DataLakeConstants.h
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 #108470
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.
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