Skip to content

Hide a SAS-bearing storage account url in the Azure table functions - #128716

Merged
PedroTadim merged 1 commit into
26.9from
backport-azure-sas-table-function-26.9
Nov 3, 2026
Merged

PedroTadim merged 1 commit into
26.9from
backport-azure-sas-table-function-26.9

Conversation

@alesapin

@alesapin alesapin commented Nov 2, 2026

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

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

Fix some cases of query masking form azureBlobStorage table function.

Backport of d496566 from #123364,
which was not backported as a whole because it is a large refactoring.

`azureBlobStorage`, `azureBlobStorageCluster` and the Azure data lake table
functions masked only a connection string's `AccountKey`/`SharedAccessSignature`
and the `account_key` argument, so a storage account url carrying its own
credential (`?sig=...`, `user:key@`) was shown, positional or as a
named-collection override. A user granted only `SELECT` on a view over such a
table function, which implies `SHOW COLUMNS`, could read the SAS through
`SHOW CREATE TABLE`, `system.tables` and `EXPLAIN AST`. Such a value, or one
that is not a plain string literal, is now hidden whole, as the
`AzureBlobStorage` engine and the backup destination already do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [81f56aa]

Summary: ❌

job_name test_name status info comment
Stateless tests (amd_asan_ubsan, distributed plan, parallel) FAIL
04653_packed_part_size_accounting_no_read_in_commit FAIL cidb

@clickhouse-gh clickhouse-gh Bot added the comp-sql-syntax SQL/grammar parsing, AST nodes, syntax-level features. label Nov 2, 2026
@PedroTadim

Copy link
Copy Markdown
Member

The CI failure is unrelated

@PedroTadim
PedroTadim merged commit 5dbe35d into 26.9 Nov 3, 2026
39 of 42 checks passed
@PedroTadim
PedroTadim deleted the backport-azure-sas-table-function-26.9 branch November 3, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-sql-syntax SQL/grammar parsing, AST nodes, syntax-level features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants