hello-stephen commented on code in PR #71205:
URL: https://github.com/apache/doris/pull/71205#discussion_r4772471215
##########
fe/fe-connector/fe-connector-fluss/src/main/java/org/apache/doris/connector/fluss/FlussConnectorProvider.java:
##########
@@ -60,6 +60,8 @@ public Connector create(Map<String, String> properties,
ConnectorContext context
public ConnectorSecuritySurface securitySurface() {
return
ConnectorSecuritySurface.ofSensitiveKeys("fluss.client.security.sasl.username",
"fluss.client.security.sasl.password",
"fluss.client.security.sasl.jaas.config")
+ .withSsrfEndpoints(FlussCatalogProperties.BOOTSTRAP_SERVERS)
+
.withSsrfEndpointPrefixes(FlussCatalogProperties.LAKE_OPTION_PREFIX)
Review Comment:
[P2] Admit Fluss lake storage through its effective property names
With checking enabled and an allowed bootstrap,
`fluss.lake.paimon.warehouse=/warehouse` plus
`fluss.lake.paimon.fs.defaultFS=hdfs://127.0.0.1:8020` passes CREATE with
`test_connection=false` and ALTER without checking that HDFS peer. The prefix
heuristic selects only endpoint-named or HTTP(S)-valued options, while shared
storage parsing sees no top-level `fs.defaultFS`.
`FlussConnector.deriveStorageProperties` later strips the namespace, and
sibling admission rejects the canonical value before Paimon IO. A bad ALTER
therefore succeeds and breaks subsequent lake access instead of being rejected
before changing the catalog. Expose the effective nested storage routes to
statement admission, retaining the shared HDFS/HA and proxy rules, and cover
nested CREATE/ALTER rejection. This is delayed validation, not a demonstrated
runtime bypass.
--
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]