Gabriel39 commented on code in PR #71089:
URL: https://github.com/apache/doris/pull/71089#discussion_r4734493023


##########
fe/fe-connector/fe-connector-hive/src/main/java/org/apache/doris/connector/hive/HiveConnectorProvider.java:
##########
@@ -85,12 +85,13 @@ public void validatePropertiesForUpdate(
 
     @Override
     public ConnectorSecuritySurface securitySurface() {
-        // Every key the HMS client may take its thrift endpoint from: 
hive.metastore.uris, its documented alias
+        // Every key the HMS client may take its endpoint from: 
hive.metastore.uris, its documented alias
         // uri, and Hive 3's metastore.thrift.uris, which the client reads 
first. The engine's SSRF gate rejects
-        // an intranet target there at CREATE / ALTER CATALOG. The secrets are 
the metastore's sensitive
-        // properties (none today: a keytab is named by its path).
+        // an intranet target there at CREATE / ALTER CATALOG, including both 
DLF endpoint spellings.
+        // Credential aliases come from the metastore binder; keytab paths are 
not secret values.
         return 
ConnectorSecuritySurface.ofSsrfEndpoints(HiveCatalogProperties.HIVE_METASTORE_URIS,
-                HiveCatalogProperties.URI, 
HiveCatalogProperties.METASTORE_THRIFT_URIS)
+                HiveCatalogProperties.URI, 
HiveCatalogProperties.METASTORE_THRIFT_URIS,
+                "dlf.endpoint", "dlf.catalog.endpoint")

Review Comment:
   Fixed in f476f12c05. Both DLF aliases now declare HTTPS port 443 through the 
provider security surface, so the generic CREATE/ALTER gate probes bare hosts 
while preserving explicit schemes and ports. Added independent CREATE and ALTER 
tests using the real Hive provider; both bare-host cases fail on the baseline 
and pass with the fix. The SPI extension is versioned as 38.0.



##########
fe/fe-connector/fe-connector-metastore-spi/src/main/java/org/apache/doris/connector/metastore/spi/AbstractDlfMetaStoreProperties.java:
##########
@@ -45,7 +45,7 @@ public abstract class AbstractDlfMetaStoreProperties extends 
AbstractMetaStorePr
             description = "DLF session/security token.")
     private String sessionToken = "";
 
-    @ConnectorProperty(names = {"dlf.region"}, required = false,
+    @ConnectorProperty(names = {"dlf.region", "dlf.catalog.region"}, required 
= false,

Review Comment:
   Fixed in f476f12c05. Both OSS and OSS-HDFS bind dlf.catalog.region, keeping 
its precedence aligned with the metastore holder. Tests now register the 
production filesystem manager and exercise full catalog CREATE/ALTER validation 
without explicit storage settings. Added a region-only SQL CREATE/ALTER case; 
both HMS DLF and native DLF regression suites pass on the packaged FE.



##########
fe/fe-connector/fe-connector-hive/src/main/java/org/apache/doris/connector/hive/HiveConnector.java:
##########
@@ -706,6 +709,10 @@ static HadoopAuthenticator 
buildPluginAuthenticator(Map<String, String> properti
         ClassLoader previous = Thread.currentThread().getContextClassLoader();
         try {
             
Thread.currentThread().setContextClassLoader(HiveConnector.class.getClassLoader());
+            // DLF signs its metadata API requests; storage Kerberos 
credentials must not trigger an HMS login.
+            if (HmsClientConfig.isDlfMetastore(properties)) {

Review Comment:
   Fixed in f476f12c05. Only DLF_ONLY bypasses HMS authentication; 
METASTORE_ONLY and all four hybrid modes retain the existing HMS login path in 
both Hive and Hudi. Canonical proxy-mode precedence and blank handling match 
the binder. Added tests for all five modes in each connector and retained the 
DLF-only storage-identity isolation tests. Verified the proxy behavior against 
the packaged SDK 0.2.14 bytecode. Live KDC login was not tested.



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