Skip to content

Mask secrets in query_views_log - #108214

Merged
alexey-milovidov merged 4 commits into
ClickHouse:masterfrom
Fidelaggio:mask-secrets-in-query-views-log
Jul 19, 2026
Merged

alexey-milovidov merged 4 commits into
ClickHouse:masterfrom
Fidelaggio:mask-secrets-in-query-views-log

Conversation

@Fidelaggio

@Fidelaggio Fidelaggio commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

Changelog category (leave one):

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

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

Hide sensitive info in system.query_views_log.view_query

Version info

  • Merged into: 26.7.1.1167 (included in 26.7 and later)
  • Backported to: 26.6.2.81, 26.5.6.53, 26.4.5.142, 26.3.17.56, 25.8.29.22

@scanhex12
scanhex12 requested a review from Copilot June 23, 2026 16:09
@scanhex12 scanhex12 self-assigned this Jun 23, 2026
@scanhex12 scanhex12 added the can be tested Allows running workflows for external contributors label Jun 23, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [9b0aa2d]

Summary: ✅


AI Review

Summary

This PR switches system.query_views_log.view_query to the same secret-aware formatting path that query_log already uses and adds a regression test for encrypt-based materialized views. I did not find a remaining correctness issue in the current code or test, but the PR metadata overstates the severity of the change.

PR Metadata
  • Changelog category is too severe. This change fixes secret redaction in system.query_views_log.view_query, but it is not a crash, data-loss, or RBAC fix, so Critical Bug Fix does not match the template guidance.
    Replacement: Bug Fix (user-visible misbehavior in an official stable release).
  • Changelog entry is specific enough and can stay as written.
Final Verdict

✅ Approve after changing the Changelog category to Bug Fix.

@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 Jun 23, 2026
@scanhex12

Copy link
Copy Markdown
Member

Please fix your test, but change seems good

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@Fidelaggio
Fidelaggio force-pushed the mask-secrets-in-query-views-log branch from 33bb511 to 3ebfbf2 Compare June 24, 2026 16:33
@Fidelaggio

Fidelaggio commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor Author

CI finished on 3ebfbf2. Failing tests are not from my changes, not introduced by this PR:

Stress test (amd_tsan / arm_release) "Hung check failed, possible deadlock found": chronic trunk-wide stress flake.
Functional checks and the new test 04365 are green; the AI review approved.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 85.60% 85.60% +0.00%
Functions 92.70% 92.70% +0.00%
Branches 77.70% 77.80% +0.10%

Changed lines: Changed C/C++ lines covered: 5/6 (83.33%) · Uncovered code

Full report · Diff report

@Fidelaggio

Copy link
Copy Markdown
Contributor Author

@scanhex12, tests have been fixed, and all checks are green

@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Jul 19, 2026
Merged via the queue into ClickHouse:master with commit d3b8bd2 Jul 19, 2026
175 checks passed
@robot-ch-test-poll robot-ch-test-poll added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Jul 19, 2026
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 19, 2026
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Jul 19, 2026
clickhouse-gh Bot added a commit that referenced this pull request Jul 19, 2026
Backport #108214 to 26.6: Mask secrets in query_views_log
alexey-milovidov added a commit that referenced this pull request Jul 19, 2026
Backport #108214 to 26.5: Mask secrets in query_views_log
alexey-milovidov added a commit that referenced this pull request Jul 19, 2026
Backport #108214 to 26.4: Mask secrets in query_views_log
alexey-milovidov added a commit that referenced this pull request Jul 19, 2026
Backport #108214 to 26.3: Mask secrets in query_views_log
alexey-milovidov added a commit that referenced this pull request Jul 19, 2026
Backport #108214 to 25.8: Mask secrets in query_views_log
joelynch pushed a commit to aiven/ClickHouse that referenced this pull request Aug 17, 2026
kewin-robetti pushed a commit to viasoftkorp/ClickHouse that referenced this pull request Aug 24, 2026
kewin-robetti pushed a commit to viasoftkorp/ClickHouse that referenced this pull request Aug 24, 2026
kewin-robetti pushed a commit to viasoftkorp/ClickHouse that referenced this pull request Aug 24, 2026
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…query-views-log

Mask secrets in query_views_log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors 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.

7 participants