hello-stephen commented on code in PR #71205:
URL: https://github.com/apache/doris/pull/71205#discussion_r4794145452
##########
fe/fe-connector/fe-connector-fluss/src/main/java/org/apache/doris/connector/fluss/FlussConnectorProvider.java:
##########
@@ -51,16 +60,149 @@ public Connector create(Map<String, String> properties,
ConnectorContext context
}
/**
- * The fluss client's SASL credentials, a small and stable set of keys,
and the lake options under
- * {@link FlussCatalogProperties#LAKE_OPTION_PREFIX}: those are open-ended
(new paimon / filesystem
+ * The fluss client's SASL and direct gateway REST credentials use stable
keys. Lake options under
+ * {@link FlussCatalogProperties#LAKE_OPTION_PREFIX} are open-ended (new
paimon / filesystem
* credential names may arrive without a Doris release), so a lake option
is a secret when its name
* carries a credential-like word, and endpoints and other operational
settings stay visible.
*/
@Override
public ConnectorSecuritySurface securitySurface() {
+ return
baseSecuritySurface().withSsrfEndpointPrefixes(FlussCatalogProperties.LAKE_OPTION_PREFIX);
+ }
+
+ private static ConnectorSecuritySurface baseSecuritySurface() {
return
ConnectorSecuritySurface.ofSensitiveKeys("fluss.client.security.sasl.username",
"fluss.client.security.sasl.password",
"fluss.client.security.sasl.jaas.config")
+ // Direct gateway REST options reach the sibling through a
separate namespace on first lake access.
+ .withSsrfEndpointPrefixes("paimon.rest.")
+ .withSensitiveKeys("paimon.rest.token",
"paimon.rest.dlf.access-key-id",
+ "paimon.rest.dlf.access-key-secret")
+
.withCommaSeparatedSsrfEndpoints(FlussCatalogProperties.BOOTSTRAP_SERVERS)
+
.withCommaSeparatedSsrfEndpoints(FlussCatalogProperties.LAKE_OPTION_PREFIX +
"hive.metastore.uris",
Review Comment:
[P2] Keep saved HMS settings dormant for a non-Hive Fluss lake
These explicit nested HMS declarations remain active in the property-aware
surface even when the lake is pinned to filesystem or REST.
catalogHmsOptionKeys returns no HMS options for those flavors, but neither that
helper nor REST-alias retirement removes the two declarations.
PaimonSiblingProperties.synthesize selects the pinned flavor, and
PaimonConnectorProvider already retires HMS metadata options for non-HMS
catalogs. An obsolete saved HMS address can therefore block CREATE or an
unrelated ALTER even though the selected client does not use it. Match the
sibling's flavor selection for both aliases, preserving independent storage
interpretations and conservative checking when the cluster selects the flavor.
Add an enabled-policy compatibility control for the dormant aliases.
--
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]