xxubai opened a new pull request, #12271:
URL: https://github.com/apache/gravitino/pull/12271

   ### What changes were proposed in this pull request?
   
   Treat blank Glue AWS access and secret keys as absent so that Iceberg uses 
the AWS default credential chain.
   
   Validate that static access and secret keys are configured together, and add 
unit coverage for blank and partial credential values.
   
   ### Why are the changes needed?
   
   Optional Glue credential properties may be stored as empty strings. 
`GlueIcebergTableHelper` previously checked only for null values and installed 
`GravitinoGlueCredentialsProvider`, which then failed with `Access key ID is 
not set`.
   
   This prevented Iceberg metadata enrichment and caused Gravitino to fall back 
to Glue-derived metadata.
   
   Fix: #12270
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. Glue Iceberg catalogs with blank static credential properties now use 
the AWS default credential chain. A partially configured static credential pair 
fails fast.
   
   No API or property keys are changed.
   
   ### How was this patch tested?
   
   ```bash
   ./gradlew :catalogs:catalog-glue:test \
     --tests org.apache.gravitino.catalog.glue.TestGlueIcebergTableHelper \
     -PskipITs
   ```
   


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

Reply via email to