Skip to content

Backport #133828 to 26.8: Mask the key of keyed SipHash functions in logged queries - #133881

Merged
clickhouse-gh[bot] merged 2 commits into
26.8from
backport/26.8/133828
Nov 24, 2026
Merged

clickhouse-gh[bot] merged 2 commits into
26.8from
backport/26.8/133828

Conversation

@robot-clickhouse

@robot-clickhouse robot-clickhouse commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Original pull-request #133828

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

@robot-clickhouse robot-clickhouse 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 Nov 23, 2026
@clickhouse-gh

clickhouse-gh Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [c2d75aa]

Summary: ✅

@groeneai

Copy link
Copy Markdown
Collaborator

I can't push to backport/26.8/133828 (my account has read-only access to this repository), so the fix is on my fork as one commit on top of this PR's head. Applying it is a fast-forward:

git fetch https://github.com/groeneai/ClickHouse groeneai/resolve-26.8-backport-133828
git push origin FETCH_HEAD:backport/26.8/133828

(head 9b46525dc4149b778f4bf0aafa3abe21676634ca)

Same change as for 26.9 in #133883: SecretArgumentsSpec comes from #123364, which is not on 26.8. The commit keeps the 26.8 registrations in FunctionsHashingMisc.cpp and marks the first argument of sipHash64Keyed, sipHash128Keyed and sipHash128ReferenceKeyed as secret in FunctionSecretArgumentsFinder::findOrdinaryFunctionSecretArguments, next to HMAC. The test is unchanged.

Validated on this tree with clang-22, debug build: 05871_keyed_siphash_key_masking passes 50 of 50 runs with randomized settings, 13 existing secret-masking tests pass, and EXPLAIN AST, EXPLAIN QUERY TREE and EXPLAIN PLAN actions = 1 show [HIDDEN] instead of the key. The official 26.8.37.168 binary prints the key in EXPLAIN SYNTAX.

@clickhouse-gh
clickhouse-gh Bot merged commit a045933 into 26.8 Nov 24, 2026
43 of 44 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.8/133828 branch November 24, 2026 22:06
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.

3 participants