You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Backport #133828 to 26.9: Mask the key of keyed SipHash functions in logged queries - #133883
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.
I can't push to backport/26.9/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:
There is no textual conflict. The build fails because SecretArgumentsSpec and the registerFunction overload that takes it come from #123364, which is not on 26.9 (a large refactor without a backport label). The commit keeps the 26.9 registrations in FunctionsHashingMisc.cpp and marks the first argument of sipHash64Keyed, sipHash128Keyed and sipHash128ReferenceKeyed as secret in FunctionSecretArgumentsFinder::findOrdinaryFunctionSecretArguments, next to HMAC, which is how 26.9 masks function arguments. 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, and 11 existing secret-masking tests pass. The official 26.9.38.7 binary still prints the key in EXPLAIN SYNTAX.
The 26.3 and 26.8 backports (#133880, #133881) fail to build the same way; I can prepare the same change there if wanted.
Done: the fast-forward commits are in #133881 (26.8, same change as here) and #133880 (26.3, where the test reference also had to follow 26.3's EXPLAIN SYNTAX output format).
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
pr-backportChanges, backported to release branch. Do not use manually - automated use only!pr-bugfixPull request with bugfix, not backported by default
3 participants
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 #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
26.9.39.7