github-actions[bot] commented on code in PR #70966:
URL: https://github.com/apache/doris/pull/70966#discussion_r4682442103
##########
fe/fe-core/src/main/java/org/apache/doris/datasource/property/metastore/AbstractIcebergProperties.java:
##########
@@ -256,6 +257,13 @@ public void toFileIOProperties(List<StorageProperties>
storagePropertiesList,
fileIOProperties.put(AwsClientProperties.CLIENT_REGION,
region);
}
}
+ if (IcebergExternalCatalog.ICEBERG_REST.equals(getIcebergCatalogType())
+ &&
!Boolean.parseBoolean(origProps.get("iceberg.rest.vended-credentials-enabled"))
+ && (s3Target instanceof GCSProperties
+ || origProps.keySet().stream().anyMatch(key ->
key.startsWith("fs.gs.")))) {
+ // Adding iceberg-gcp must not route HMAC-backed gs:// files to
GCSFileIO's ADC identity.
Review Comment:
[P2] Preserve HMAC routing when io-impl explicitly names ResolvingFileIO.
With iceberg-gcp now on the FE classpath, Iceberg 1.11 resolves gs:// to
GCSFileIO; because this putIfAbsent sees the explicit
org.apache.iceberg.io.ResolvingFileIO value, it does not replace it with
NativeGcsResolvingFileIO, and GCSFileIO ignores Doris's
gs.access_key/gs.secret_key HMAC settings. A REST catalog using
warehouse=gs://..., vended=false, HMAC keys, and that existing generic io-impl
therefore starts using ADC/unauthorized access after this dependency change.
Detect this generic resolver for HMAC-backed GCS (while preserving explicit
native GCSFileIO and vended credentials), or document/reject the incompatible
combination.
--
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]