Skip to content

Backport #117429 to 26.7: Mask secrets in SHOW CREATE DATABASE of a Backup database - #122674

Merged
clickhouse-gh[bot] merged 4 commits into
26.7from
backport/26.7/117429
Sep 29, 2026
Merged

clickhouse-gh[bot] merged 4 commits into
26.7from
backport/26.7/117429

Conversation

@robot-ch-test-poll3

@robot-ch-test-poll3 robot-ch-test-poll3 commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #117429
Cherry-pick pull-request #121966

This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.

The PR source

The PR is created in the CI job

Version info

  • Merged into: 26.7.18.2

@robot-ch-test-poll3 robot-ch-test-poll3 added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default labels Sep 28, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [06466cb]

Summary: ✅

The cherry-picked `FunctionSecretArgumentsFinder.cpp` calls `isAlphaASCII`,
`isAlphaNumericASCII` and `equalsCaseInsensitive` but 26.7's copy does not include
`<Common/StringUtils.h>`, and 26.7's `StringUtils.h` has no `string_view` overload of
`equalsCaseInsensitive`. Both come from master, so take them from there.

`parseAccessEntityName.cpp` passed `equalsCaseInsensitive` to `std::ranges::equal` as a
bare overload set, which no longer resolves once a second overload exists; master already
calls the `string_view` overload directly there.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=122674&sha=0b17ecdfe88ba18bdbacaa85f6b54b8bb8b4b34d&name_0=BackportPR

Related: #122674

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
PedroTadim and others added 2 commits September 29, 2026 11:11
`04510_s3_explicit_url_named_secret_mask` asserts `BAD_ARGUMENTS` for
`AzureBlobStorage('DefaultEndpointsProtocol=...;AccountKey=...;', 'cont',
'blob', 'acct', 'key')`, a connection string written where the five-argument
shape requires a plain storage account URL. On master that arm never reaches
the SDK: `validatePlainStorageAccountURL` rejects it first. Without that
validator the SDK base64-decodes the account key instead and throws
`std::runtime_error`, which surfaces as `STD_EXCEPTION` (Code 1001).

`translateAzureSdkParseError` does not cover this: it catches
`std::logic_error`, and the base64 failure is a `std::runtime_error`. 26.7
already has that guard and still fails this arm, so the validator is a
separate, additional backport.

The helper is transplanted verbatim from master and is called from the same
two sites: the five-argument form, and a named collection carrying explicit
credentials. The three-argument form is left unvalidated, as on master.

The failures this fixes:
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=122674&sha=f287da9ce8b0c957579b67372272c437d1f35045&name_0=BackportPR

Related: #117429

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@clickhouse-gh
clickhouse-gh Bot merged commit 20f346f into 26.7 Sep 29, 2026
41 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.7/117429 branch September 29, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants