Skip to content

Hide the credentials in the url of an HTTP dictionary source (26.3) - #133045

Merged
george-larionov merged 3 commits into
26.3from
fix-http-dict-url-secret-26.3
Nov 20, 2026
Merged

george-larionov merged 3 commits into
26.3from
fix-http-dict-url-secret-26.3

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

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.3.68.5

george-larionov and others added 2 commits November 18, 2026 22:19
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 [ef750c3]

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. The copy
of `maskSensitiveQueryParameters` is no longer needed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clickhouse-gh clickhouse-gh Bot added the comp-dictionary Dictionaries (in-memory key-value, periodically refreshed from sources). label Nov 20, 2026
@george-larionov
george-larionov merged commit e595b9e into 26.3 Nov 20, 2026
39 checks passed
@george-larionov
george-larionov deleted the fix-http-dict-url-secret-26.3 branch November 20, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-dictionary Dictionaries (in-memory key-value, periodically refreshed from sources).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant