Repository navigation
Fix: fix Credential leak in query_log for paimon*Cluster and deltaLakeS3 t… - #100529
Conversation
|
Workflow [PR], commit [3179c97] Summary: ✅ AI ReviewSummaryThis PR extends query-log secret masking to include Findings
Tests
ClickHouse Rules
Final Verdict
|
| (function ->name() == "icebergS3Cluster") || (function ->name() == "icebergCluster")) | ||
| (function ->name() == "icebergS3Cluster") || (function ->name() == "icebergCluster") || | ||
| (function ->name() == "paimonCluster") || (function ->name() == "paimonS3Cluster") || | ||
| (function ->name() == "paimonHDFSCluster")) |
There was a problem hiding this comment.
paimonHDFSCluster has HDFS-style arguments (cluster, uri, [format], [structure], [compression_method]), but this branch routes it through findS3FunctionSecretArguments. That parser assumes S3 signatures and may mask non-secret positional args (for example structure/compression) in query_log, which is a behavioral regression for observability.
Please remove paimonHDFSCluster from the S3 branch and handle it with an HDFS-specific rule (or no positional masking if there is no secret argument for this function).
| def test_table_functions(): | ||
| password = new_password() | ||
| has_delta_lake = int(node.query("SELECT count() FROM system.table_functions WHERE name = 'deltaLake'").strip()) > 0 | ||
| has_paimon = int(node.query("SELECT count() FROM system.table_functions WHERE name = 'paimonS3'").strip()) > 0 |
There was a problem hiding this comment.
This gate ties all paimon* coverage to paimonS3 availability. paimonAzure can be available without paimonS3 (e.g. Azure-enabled build without S3), so this skips the new masking checks for paimonAzure and can hide regressions.
Please gate each family independently (paimonS3-based cases by paimonS3, paimonAzure-based cases by paimonAzure) to keep coverage valid across build feature matrices. The same pattern appears in test_table_functions_object_storage_cluster.
tiandiwonder
left a comment
There was a problem hiding this comment.
changlog:
Fix credential leak in query_log for paimonCluster, paimonS3Cluster, paimonAzureCluster, and deltaLakeS3 table functions.
Done |
|
The Stress test (arm_msan) failure is fixed by #101239, which should be merged first. After it is merged, please update the branch to include the fix. |
LLVM Coverage Report
Changed lines: 100.00% (15/15) · Uncovered code |
Backport #100529 to 26.4: Fix: fix Credential leak in query_log for paimon*Cluster and deltaLakeS3 t…
Backport #100529 to 26.3: Fix: fix Credential leak in query_log for paimon*Cluster and deltaLakeS3 t…
Apply the credential-masking fix on top of the 25.8 release branch: - Add `deltaLakeS3` to the ordinary s3 secret-argument list (this table function exists in 25.8 and its credentials were previously leaked into query_log). - Add `paimonCluster`, `paimonS3Cluster`, and `paimonAzureCluster` to the cluster masking lists (forward-compatible; these functions do not exist in 25.8 yet, so the comparisons are harmless). - Add a `deltaLakeS3` test case to test_mask_sensitive_info. The `paimon`/`paimonS3` ordinary functions and `deltaLakeS3Cluster`/ `icebergCluster`/`deltaLakeAzureCluster` entries present on master are not introduced here, since they come from other changes that were not backported to 25.8. Original pull-request: #100529 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Cherry pick #100529 to 25.8: Fix: fix Credential leak in query_log for paimon*Cluster and deltaLakeS3 t…
…aimon*Cluster and deltaLakeS3 t…
Backport #100529 to 25.8: Fix: fix Credential leak in query_log for paimon*Cluster and deltaLakeS3 t…
…_log for paimon*Cluster and deltaLakeS3 t…
…_log for paimon*Cluster and deltaLakeS3 t…
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix credential leak in query_log for paimonCluster, paimonS3Cluster, paimonAzureCluster, and deltaLakeS3 table functions.
Documentation entry for user-facing changes
Version info
26.4.5.106,26.3.17.26,25.8.29.9