JingsongLi commented on code in PR #8001:
URL: https://github.com/apache/paimon/pull/8001#discussion_r3446157708
##########
paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/lineage/LineageUtils.java:
##########
@@ -73,19 +77,16 @@ private static CatalogContext catalogContext(Table table) {
}
/**
- * Builds the config map for a dataset facet. Includes filtered Paimon
{@link CoreOptions},
- * partition keys, primary keys, and a safe subset of catalog-level
options (warehouse,
- * metastore) prefixed with {@code "catalog."}.
+ * Builds the config map for a dataset facet from a {@link Table}.
Includes all table options,
+ * partition keys, and primary keys.
*/
private static Map<String, String> buildConfigMap(
Table table, @Nullable CatalogContext catalogContext) {
Map<String, String> config = new HashMap<>();
config.put("partition-keys", String.join(",", table.partitionKeys()));
config.put("primary-keys", String.join(",", table.primaryKeys()));
- table.options().entrySet().stream()
- .filter(e -> PAIMON_OPTION_KEYS.contains(e.getKey()))
- .forEach(e -> config.put(e.getKey(), e.getValue()));
+ config.putAll(table.options());
Review Comment:
This now publishes every table option into the lineage config facet. Unlike
the previous CoreOptions whitelist, table.options() can include
arbitrary/dynamic options supplied by users, including credential-like keys
such as tokens, passwords, keytabs, or filesystem secrets. Since lineage facets
may be consumed outside the job, please keep this filtered to known-safe
options (or explicitly redact secret-like keys) instead of exposing the full
table option map.
--
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]