Skip to content

Hide the credentials in the url of an HTTP dictionary source (26.8) - #133044

Merged
clickhouse-gh[bot] merged 3 commits into
26.8from
fix-http-dict-url-secret-26.8
Nov 19, 2026
Merged

clickhouse-gh[bot] merged 3 commits into
26.8from
fix-http-dict-url-secret-26.8

Conversation

@george-larionov

@george-larionov george-larionov commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Users without displaySecretsInShowAndSelect could read credentials embedded in the url/endpoint of an HTTP dictionary source via system.tables.create_table_query, SHOW CREATE and system.query_log. The url and endpoint are now hidden whole there, like the password. system.dictionaries.source and the trace logs hide the userinfo of the url. The MongoDB source uri password is also masked in system.dictionaries and the query log.

Master fixed this differently, through a larger refactor that is not backported.

Related: #123364
Related: #133043
Related: #133045

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):

The url of an HTTP dictionary source is hidden in SHOW CREATE, system.tables and the query log, and its userinfo in system.dictionaries.

🤖 Generated with Claude Code

Version info

  • Merged into: 26.8.42.9

george-larionov and others added 2 commits November 18, 2026 21:56
The password and the sensitive query parameters of `url` and `endpoint`
are hidden in `SHOW CREATE`, `system.tables`, the query log,
`system.dictionaries.source` and the trace logs. The `MongoDB` source
`uri` is also masked in `system.dictionaries` and the query log. Master
has this through #123364.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add a test for the `uri` password of a `MongoDB` source in the query log.

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

clickhouse-gh Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [fa96390]

Summary: ✅

They are hidden like the password in `SHOW CREATE`, `system.tables` and
the query log. `system.dictionaries.source` and the trace logs mask the
url with `maskURICredentials`, which hides the whole userinfo.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clickhouse-gh
clickhouse-gh Bot merged commit 55a285d into 26.8 Nov 19, 2026
43 of 44 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the fix-http-dict-url-secret-26.8 branch November 19, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant