Skip to content

Cherry pick #108470 to 26.5: Hide legacy storage_* credential settings of DataLakeCatalog - #116273

Merged
robot-clickhouse-ci-1 merged 5 commits into
backport/26.5/108470from
cherrypick/26.5/108470
Aug 27, 2026
Merged

robot-clickhouse-ci-1 merged 5 commits into
backport/26.5/108470from
cherrypick/26.5/108470

Conversation

@robot-ch-test-poll3

Copy link
Copy Markdown
Contributor

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-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.

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

groeneai and others added 4 commits July 6, 2026 15:33
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]>
…-credential-leak

Hide legacy storage_* credential settings of DataLakeCatalog
@robot-ch-test-poll3 robot-ch-test-poll3 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-bugfix Pull request with bugfix, not backported by default labels Aug 25, 2026
…ypick/26.5/108470

# Conflicts:
#	src/Databases/DataLake/DataLakeConstants.h
@robot-clickhouse-ci-1
robot-clickhouse-ci-1 merged commit ca1b76f into backport/26.5/108470 Aug 27, 2026
1 check passed
@robot-clickhouse-ci-1
robot-clickhouse-ci-1 deleted the cherrypick/26.5/108470 branch August 27, 2026 13:47
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-bugfix Pull request with bugfix, not backported by default pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants