Repository navigation
Mask the connection string in ODBC/JDBC bridge request URLs - #130576
Conversation
A request to the ODBC/JDBC bridge carries the connection string, password included, in its `connection_string` query parameter. `maskPresignedURLParameters` now treats that parameter as secret, so the URL quoted in errors, `system.query_log`, the server log and `system.schema_inference_cache` shows it as `[HIDDEN]`, as the query text already does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: 0 blocker, 0 major, 2 nits (click to expand)
|
|
Workflow [PR], commit [7921cf1] Summary: ✅
AI ReviewSummaryThe PR hides the Missing context / blind spots
Final VerdictStatus: ✅ Approve. No code changes requested; runtime validation remains subject to the pending CI results. |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Slowest function optimization changes (ThinLTO)Median per-function time ratio to the master baseline:
Compile time of recompiled translation units27 translation units recompiled, 129 s compile time in total, 27 of them have a recent master baseline. Median compile-time ratio to the baselines is ×1.07 (machine-speed difference or a change affecting every TU); per-TU deltas below are relative to that ratio. |
6f16625
Related: #126223
Related: #106442
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
The password in the connection string of the
odbcandjdbctable functions and of theODBCandJDBCtable engines is no longer shown in cleartext in the bridge request URL quoted by errors,system.query_log, the server log andsystem.schema_inference_cache. The query itself already showed it as[HIDDEN].Description
On 26.8.28.14-lts,
SELECT * FROM odbc('DSN=...;PWD=<password>', 'db', 't')against a bridge that cannot connect returns an error, and writessystem.query_log.exception, with the password in cleartext, while the logged query showsodbc('[HIDDEN]', 'db', 't'):The same URL reaches the server log and, after a successful read,
system.schema_inference_cache.source. With a named collection, a user who cannot readsystem.named_collectionsgets its password this way.The server sends the connection string to the bridge in the
connection_stringquery parameter, andmaskPresignedURLParameters, which these URL renders call, does not treat it as secret. As asked in #126223, the change is one more name in itsis_secret_parameter. Aurl()URL with aconnection_stringparameter is now also shown with that value as[HIDDEN]; requests are unchanged.05617_xdbc_connection_string_maskedchecks the client error,system.query_logand anODBCengine insert, and fails on master. It uses a DSN that does not exist, so the external bridge never loads the driver.Workflow [PR]
Sync PR [sync-upstream/pr/130576]
Version info
26.11.1.1913-master(included in26.11and later)