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


##########
fe/fe-connector/fe-connector-iceberg/src/main/java/org/apache/doris/connector/iceberg/IcebergConnectorProvider.java:
##########
@@ -94,6 +94,44 @@ public ConnectorSecuritySurface securitySurface() {
         // Keep secret masking and JDBC restrictions when REST decryption adds 
a KMS endpoint check.
         return 
ConnectorSecuritySurface.ofJdbcDriverUrls("iceberg.catalog.type", 
"iceberg.jdbc.driver_url")
                 .withSensitiveKeys(MetaStoreProviders.sensitivePropertyKeys())
-                .withSsrfEndpoints("kms.endpoint");
+                .withSsrfEndpoints("kms.endpoint", "iceberg.rest.uri", "uri", 
"iceberg.rest.oauth2.server-uri",
+                        "hive.metastore.uris", "metastore.thrift.uris", 
"s3tables.endpoint", "iceberg.jdbc.uri",
+                        "oauth2-server-uri", 
"client.refresh-credentials-endpoint", "dynamodb.endpoint",

Review Comment:
   Fixed in `541875629663`.
   
   Iceberg credential-refresh and OAuth options now follow the pinned SDK 
base/path contract: only original lowercase absolute HTTP(S) values select 
independent destinations. Relative refresh, canonical/raw OAuth and the 
provider-prefixed OAuth alias retain their checked catalog/provider bases. 
Known paths are filtered before prefix inference, and the inferred keys are 
materialized so the original map cannot rediscover them. Opaque credentials and 
authorization headers remain excluded.
   
   Local self-review also found that stock vended-credential proxy overrides 
can inherit a host/port or select a second port for the same hostname. The 
provider now emits every active complete destination. Shared admission 
validates derived values even without a raw property; immutable SPI metadata 
and the plugin API42 gate preserve this contract.
   
   Validation: FE Checkstyle; 110 selected classes / 1489 tests (including all 
38 SPI classes and 341 endpoint cases), zero failures/errors/skips; forced FE 
build; all 37 manifests/shipped SPI at API42.0; six shipped class matches; 
standard SQL suite with 72 CREATE + 38 ALTER rejections, seven positive CREATE 
admissions and one successful relative-path ALTER. HTTP authentication remained 
enabled. Positive SQL coverage includes relative-path CREATE/ALTER and both 
allowed proxy ports; negative coverage includes absolute OAuth/refresh 
destinations, inherited provider proxy fields and ALTER activation. The 
optional proprietary SDK and full external/native-worker integration were not 
available locally; no such validation is claimed.



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