github-actions[bot] commented on code in PR #62193:
URL: https://github.com/apache/doris/pull/62193#discussion_r3049571477


##########
fe/fe-core/src/main/java/org/apache/doris/job/extensions/insert/streaming/StreamingJobProperties.java:
##########
@@ -69,6 +70,12 @@ public StreamingJobProperties(Map<String, String> 
jobProperties) {
     public void validate() throws AnalysisException {
         List<String> invalidProps = new ArrayList<>();
         for (String key : properties.keySet()) {
+            // Keys starting with "__" are internal pass-through properties
+            // that are stored as-is without validation, allowing users
+            // to attach custom metadata.

Review Comment:
   Allowing every `__*` key through here also makes those keys persist into 
`StreamingInsertJob.properties`, and `StreamingInsertJob.getTvfInfo()` later 
serializes that map verbatim into the jobs metadata / SHOW output. Because this 
feature is explicitly framed as "internal pass-through properties", that 
becomes an unintended disclosure path for any opaque metadata callers attach 
here. Please either filter/redact `__*` keys on the display path or explicitly 
treat them as user-visible metadata instead of internal-only values.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to