Repository navigation
Backport #117429 to 26.7: Mask secrets in SHOW CREATE DATABASE of a Backup database - #122674
Merged
Merged
Conversation
…ackup database
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]>
`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]>
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 #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
26.7.18.2