Skip to content

Hide the credentials in the url of an HTTP dictionary source (26.9) - #133043

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

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

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: #133044
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.9.34.12

george-larionov and others added 2 commits November 18, 2026 21:54
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 [edf9d0c]

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 b3cebdc into 26.9 Nov 19, 2026
43 of 44 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the fix-http-dict-url-secret-26.9 branch November 19, 2026 22:11
vincentbernat added a commit to akvorado/akvorado that referenced this pull request Nov 24, 2026
ClickHouse 26.3, 26.8 and 26.9 hide the dictionary URL to hide
credentials. This breaks our idempotency check. Handle this case and
"save" the URL as a comment (in a hash) to detect change. Also include
the password (if the password is weak, it can be brute forced, but this
looks OK).

Also handles password being hidden. Dictionary was recreated each time
because of that.

See:
- ClickHouse/ClickHouse#123364
- ClickHouse/ClickHouse#133043
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