Skip to content

Remove skip permissions check from SQL security verification on ATTACH. - #94865

Merged
pufit merged 8 commits into
masterfrom
pufit/remove-skip-check-permissions
Feb 7, 2026
Merged

pufit merged 8 commits into
masterfrom
pufit/remove-skip-check-permissions

Conversation

@pufit

@pufit pufit commented Jan 22, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Critical Bug Fix (crash, data loss, RBAC) or LOGICAL_ERROR

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Remove unnecessary skip permissions check in ATTACH queries for a view with SQL Security. This prevents potential privilege escalation when a user attaches a view with a definer without validating required access.

Version info

  • Merged into: 26.2.1.370
  • Backported to: 26.1.3.23, 25.12.6.38, 25.11.10.16, 25.8.17.29

@clickhouse-gh

clickhouse-gh Bot commented Jan 22, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [0d976e4]

Summary: ❌

job_name test_name status info comment
Stress test (arm_asan, s3) failure
Logical error: Unexpected return type from A. Expected B. Got C. Action: (STID: 1611-3d19) FAIL cidb, issue ISSUE EXISTS
Stress test (amd_ubsan) failure
Logical error: Wrong key in block [A] at position B, expected keys: [C] (STID: 3867-3df4) FAIL cidb IGNORED
Stress test (amd_msan) failure
Logical error: Block structure mismatch in A stream: different number of columns: (STID: 0993-38e6) FAIL cidb, issue ISSUE EXISTS
Upgrade check (amd_msan) failure
Error message in clickhouse-server.log (see upgrade_error_messages.txt) FAIL cidb IGNORED
AST fuzzer (amd_debug) failure
Logical error: 'std::exception. Code: 1001, type: std::out_of_range, e.what() = vector (version 26.2.1.183), Stack trace: (STID: 2508-194e) FAIL cidb IGNORED

@clickhouse-gh clickhouse-gh Bot added pr-critical-bugfix pr-must-backport Pull request should be backported intentionally. Use this label with great care! labels Jan 22, 2026
@pufit
pufit force-pushed the pufit/remove-skip-check-permissions branch from 4280e71 to 74d7f41 Compare January 24, 2026 05:19
@jkartseva jkartseva self-assigned this Jan 31, 2026
@pufit
pufit requested a review from jkartseva February 3, 2026 03:20

@jkartseva jkartseva left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, please fix the changelog message – it looks truncated. Maybe highlight that the ALLOW_SQL_SECURITY_NONE access check is now unconditional.

@pufit pufit changed the title Remove skip_check_permissions from SQL security verification. Remove skip permissions check from SQL security verification on ATTACH. Feb 7, 2026
@pufit
pufit added this pull request to the merge queue Feb 7, 2026
Merged via the queue into master with commit 5fc86e3 Feb 7, 2026
125 of 130 checks passed
@pufit
pufit deleted the pufit/remove-skip-check-permissions branch February 7, 2026 06:04
@robot-ch-test-poll3 robot-ch-test-poll3 added pr-synced-to-cloud The PR is synced to the cloud repo pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR labels Feb 7, 2026
robot-clickhouse added a commit that referenced this pull request Feb 7, 2026
clickhouse-gh Bot added a commit that referenced this pull request Feb 7, 2026
Backport #94865 to 26.1: Remove skip permissions check from SQL security verification on ATTACH.
robot-clickhouse added a commit that referenced this pull request Feb 19, 2026
robot-clickhouse added a commit that referenced this pull request Feb 19, 2026
robot-clickhouse added a commit that referenced this pull request Feb 19, 2026
robot-clickhouse added a commit that referenced this pull request Feb 19, 2026
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Feb 19, 2026
clickhouse-gh Bot added a commit that referenced this pull request Feb 19, 2026
Backport #94865 to 25.12: Remove skip permissions check from SQL security verification on ATTACH.
pufit added a commit that referenced this pull request Feb 23, 2026
Backport #94865 to 25.11: Remove skip permissions check from SQL security verification on ATTACH.
pufit added a commit that referenced this pull request Feb 23, 2026
Backport #94865 to 25.8: Remove skip permissions check from SQL security verification on ATTACH.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-critical-bugfix pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants