Repository navigation
Hide the credentials in the url of an HTTP dictionary source (26.3) - #133045
Merged
Merged
Conversation
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]>
This was referenced Nov 19, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Users without
displaySecretsInShowAndSelectcould read credentials embedded in theurl/endpointof anHTTPdictionary source viasystem.tables.create_table_query,SHOW CREATEandsystem.query_log. Theurlandendpointare now hidden whole there, like the password.system.dictionaries.sourceand the trace logs hide the userinfo of the url. TheMongoDBsourceuripassword is also masked insystem.dictionariesand 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):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
The
urlof anHTTPdictionary source is hidden inSHOW CREATE,system.tablesand the query log, and its userinfo insystem.dictionaries.🤖 Generated with Claude Code
Version info
26.3.68.5