JingsongLi commented on code in PR #8001:
URL: https://github.com/apache/paimon/pull/8001#discussion_r3458764692


##########
paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/lineage/LineageUtils.java:
##########
@@ -84,7 +92,10 @@ private static Map<String, String> buildConfigMap(
         config.put("primary-keys", String.join(",", table.primaryKeys()));
 
         table.options().entrySet().stream()
-                .filter(e -> PAIMON_OPTION_KEYS.contains(e.getKey()))
+                .filter(
+                        e ->
+                                PAIMON_OPTION_KEYS.contains(e.getKey())
+                                        || e.getKey().startsWith("metadata."))

Review Comment:
   This broad `metadata.*` pass-through can leak credentials into lineage 
events. Iceberg REST catalog options are passed through from 
`metadata.iceberg.rest.*` to Iceberg as arbitrary REST catalog properties, and 
deployments commonly use keys such as tokens or credentials there. Since this 
facet is emitted outside the job, we should not include the whole prefix 
unfiltered. Could we either whitelist the non-sensitive Iceberg metadata keys 
we actually want, or redact keys containing sensitive substrings such as 
token/password/secret/credential/key before adding them to the lineage config?



-- 
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]

Reply via email to