Repository navigation
Do not echo dictionary source file content in YAMLRegExpTree error - #128978
Conversation
When the YAML document of a `YAMLRegExpTree` dictionary source is not a list of match rules, loading failed with a message that interpolated `node.as<String>()` - the parsed file content - back into the exception shown to the querying user. For a source file in `user_files`, this echoed file bytes to any user able to load the dictionary, an information disclosure. Drop the file content from the message. The error now states only that the configuration must be a yaml list of match rules. Add a stateless test that points a source at a file whose content is a scalar holding a marker and asserts the marker never reaches the client. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Workflow [PR], commit [5108f37] Summary: ✅
AI ReviewSummaryThis PR removes source-file contents from the exception raised when a Missing context / blind spots
Findings
Tests
Final VerdictStatus: |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units7 translation units recompiled, 8 s compile time in total, 7 of them have a recent master baseline. |
With eager dictionary loading (`dictionaries_lazy_load=0`, as in CI), the `YAMLRegExpTree` parse error fires at `CREATE DICTIONARY`, not at the first `dictGet`. The previous test only inspected the `dictGet` output, which in that case was only `Dictionary ... not found`, so the expected error was reported missing. Run `CREATE`, `SYSTEM RELOAD DICTIONARY` and `dictGet`, and inspect their combined output, so the assertions hold under both lazy and eager loading. Verified locally against a server in each mode. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Backport #128978 to 26.8: Do not echo dictionary source file content in YAMLRegExpTree error
Backport #128978 to 26.10: Do not echo dictionary source file content in YAMLRegExpTree error
Backport #128978 to 26.9: Do not echo dictionary source file content in YAMLRegExpTree error
Backport #128978 to 26.3: Do not echo dictionary source file content in YAMLRegExpTree error
…e content in YAMLRegExpTree error
…e content in YAMLRegExpTree error
…le content in YAMLRegExpTree error
When the YAML document of a
YAMLRegExpTreedictionary source is not a list of match rules, loading failed with a message that interpolatednode.as<String>()- the parsed file content - back into the exception shown to the querying user. For a source file inuser_files, this echoed file bytes to any user able to load the dictionary, an information disclosure.Drop the file content from the message. The error now states only that the configuration must be a yaml list of match rules.
Close https://github.com/ClickHouse/clickhouse-private/issues/69082
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Do not echo dictionary source file content in YAMLRegExpTree error
Workflow [PR]
Sync PR [sync-upstream/pr/128978]
Version info
26.11.1.1446-master(included in26.11and later)