DanielCarter-stack commented on issue #10392:
URL: https://github.com/apache/seatunnel/issues/10392#issuecomment-3795845723
<!-- code-pr-reviewer -->
Thanks for proposing this. A built-in static credentials provider for Glue
Catalog (or compatible implementations like starburst-catalog) is reasonable.
The current Iceberg connector simply passes `iceberg.catalog.config` through
to Iceberg via `CatalogUtil.buildIcebergCatalog` (see
`IcebergCatalogLoader.java`). The docs only show `client.region` and do not
cover static AK/SK or `client.credentials-provider`. There is no existing
wrapper that constructs a static `AwsCredentialsProvider` from configuration
properties (contrast with S3File connector, which exposes
`access_key`/`secret_key` as first-class options).
A PR adding a provider like `StaticAwsCredentialsProvider` (implementing
`AwsCredentialsProvider` with a `static create(Map<String,String>)` factory)
under `connector-iceberg` would be a good addition, along with a docs example:
```hocon
iceberg.catalog.config = {
warehouse = "s3://your-bucket/warehouse/"
catalog-impl = "org.apache.iceberg.aws.glue.GlueCatalog"
io-impl = "org.apache.iceberg.aws.s3.S3FileIO"
client.region = "your-region"
client.credentials-provider =
"org.apache.seatunnel.connectors.seatunnel.iceberg.aws.StaticAwsCredentialsProvider"
client.credentials-provider.access-key-id = "YOUR_ACCESS_KEY"
client.credentials-provider.secret-access-key = "YOUR_SECRET_ACCESS_KEY"
}
```
A few clarifications for the PR scope:
1) Do you need session token support, or is AK/SK sufficient?
2) Should this be documented for both Sink and Source, or is Sink-only okay?
3) For non-AWS Glue-compatible endpoints, are there other required props
(e.g., `glue.id`) worth including in the docs example?
--
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]