Skip to content

Backport #120080 to 26.9: Fix privilege check bypass in text index transform expressions - #130481

Merged
clickhouse-gh[bot] merged 2 commits into
26.9from
backport/26.9/120080
Nov 10, 2026
Merged

clickhouse-gh[bot] merged 2 commits into
26.9from
backport/26.9/120080

Conversation

@robot-ch-test-poll

Copy link
Copy Markdown
Contributor

Original pull-request #120080
Cherry-pick pull-request #130394

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

@robot-ch-test-poll robot-ch-test-poll added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-critical-bugfix labels Nov 10, 2026
@clickhouse-gh

clickhouse-gh Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [6b2e9ee]

Summary: ✅

…ackport

The cherry-pick of #120080 to 26.9 calls `distributedDDLWorkersUseInitiatorUser`
in `InterpreterCreateQuery` and `InterpreterAlterQuery`, but the function does
not exist on 26.9 (master decides this via the `throw_if_unresolved` argument of
`additional_access_check`, which 26.9 lacks), so every build failed.

Define it next to `executeDDLQueryOnCluster`: the hosts run an `ON CLUSTER`
query as the initiating user only when the server setting
`distributed_ddl_use_initial_user_and_roles` is on and
`distributed_ddl_entry_format_version` is at least `INITIATOR_USER_VERSION`,
the same condition master uses.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=130481&sha=b1b5d6ba25f997a4ac9f926d4a8f1c677255ca3a&name_0=BackportPR&name_1=Build%20%28amd_release%29
PR: #130481

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clickhouse-gh
clickhouse-gh Bot merged commit 6d0fd0d into 26.9 Nov 10, 2026
43 of 44 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.9/120080 branch November 10, 2026 15:07
leshikus pushed a commit that referenced this pull request Nov 13, 2026
…ackport

The cherry-pick of #120080 to 26.9 calls `distributedDDLWorkersUseInitiatorUser`
in `InterpreterCreateQuery` and `InterpreterAlterQuery`, but the function does
not exist on 26.9 (master decides this via the `throw_if_unresolved` argument of
`additional_access_check`, which 26.9 lacks), so every build failed.

Define it next to `executeDDLQueryOnCluster`: the hosts run an `ON CLUSTER`
query as the initiating user only when the server setting
`distributed_ddl_use_initial_user_and_roles` is on and
`distributed_ddl_entry_format_version` is at least `INITIATOR_USER_VERSION`,
the same condition master uses.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=130481&sha=b1b5d6ba25f997a4ac9f926d4a8f1c677255ca3a&name_0=BackportPR&name_1=Build%20%28amd_release%29
PR: #130481

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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-critical-bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants