tuantran0910 opened a new pull request, #62988:
URL: https://github.com/apache/doris/pull/62988

   ### What problem does this PR solve?
   
   Issue Number: close #62987
   
   Currently, Doris's Iceberg REST catalog only supports `none` and `oauth2` 
security types. Users running Google Cloud Lakehouse with Iceberg REST catalogs 
need a way to authenticate using Google's native `GoogleAuthManager` via 
Application Default Credentials (ADC).
   
   ### Solution
   
   This PR adds a new `google` security type to `IcebergRestProperties` that 
configures the Iceberg REST client to use 
`org.apache.iceberg.gcp.auth.GoogleAuthManager` for authentication, following 
the official [Google Cloud Lakehouse 
documentation](https://docs.cloud.google.com/lakehouse/docs/lakehouse-iceberg-rest-catalog).
   
   Main changes:
   - Added `GOOGLE` to the `Security` enum in `IcebergRestProperties`
   - Added `addGoogleProperties()` method that sets `rest.auth.type` to the 
fully qualified `GoogleAuthManager` class name
   - Added new connector properties: `iceberg.rest.io-impl`, 
`iceberg.rest.google.user-project`, `iceberg.gcs.oauth2.token`
   - Added explicit `iceberg-gcp` and `google-cloud-storage` dependencies to 
`fe-core/pom.xml`
   - Added 5 new test cases covering Google auth configuration
   
   ### How to use
   
   ```sql
   CREATE CATALOG lakehouse PROPERTIES (
       "type" = "iceberg",
       "iceberg.catalog.type" = "rest",
       "iceberg.rest.uri" = 
"https://biglake.googleapis.com/iceberg/v1/restcatalog";,
       "iceberg.rest.security.type" = "google",
       "iceberg.rest.io-impl" = "org.apache.iceberg.gcp.gcs.GCSFileIO",
       "iceberg.rest.google.user-project" = "my-billing-project",
       "warehouse" = "gs://my-bucket/warehouse/"
   );
   ```
   
   ### Release note
   
   **Features**
   - [Iceberg] Support Google Authentication (GoogleAuthManager) for Iceberg 
REST catalog


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