You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "luismacosta (via GitHub)" <gi...@apache.org> on 2025/03/04 00:59:48 UTC
[I] [iceberg] use AWS IAM role with serviceAccount instated of IAM user [iceberg]
luismacosta opened a new issue, #12448:
URL: https://github.com/apache/iceberg/issues/12448
### Feature Request / Improvement
Hello,
We use iceberg connector in flink jobs. In order to access s3, the connector uses an IAM user.
Our goal is to use IRSA, IAM role + serviceAccount. Tried to use to but got an "access denied error". It seems that the connector does not support IRSA.
I've raised this subject in slack channel: https://apache-iceberg.slack.com/archives/C025PH0G1D4/p1738068676985539
Best regards,
Luís Costa
### Query engine
None
### Willingness to contribute
- [ ] I can contribute this improvement/feature independently
- [ ] I would be willing to contribute this improvement/feature with guidance from the Iceberg community
- [ ] I cannot contribute this improvement/feature at this time
--
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: issues-unsubscribe@iceberg.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] [Feature Request ][iceberg] use AWS IAM role with serviceAccount instated of IAM user [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #12448: [Feature Request ][iceberg] use AWS IAM role with serviceAccount instated of IAM user
URL: https://github.com/apache/iceberg/issues/12448
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] [Feature Request ][iceberg] use AWS IAM role with serviceAccount instated of IAM user [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #12448:
URL: https://github.com/apache/iceberg/issues/12448#issuecomment-3694321406
This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] [Feature Request ][iceberg] use AWS IAM role with serviceAccount instated of IAM user [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #12448:
URL: https://github.com/apache/iceberg/issues/12448#issuecomment-3733742666
This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] [Feature Request ][iceberg] use AWS IAM role with serviceAccount instated of IAM user [iceberg]
Posted by "vbabenkoru (via GitHub)" <gi...@apache.org>.
vbabenkoru commented on issue #12448:
URL: https://github.com/apache/iceberg/issues/12448#issuecomment-2898834942
I specified `'client.credentials-provider'='software.amazon.awssdk.auth.credentials.WebIdentityTokenFileCredentialsProvider'` to force IRSA without falling back to the EC2 role. That helped surface the underlying issue with the IRSA role (I don't remember exactly but I think it was not actually using the correct role).
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] [Feature Request ][iceberg] use AWS IAM role with serviceAccount instated of IAM user [iceberg]
Posted by "vbabenkoru (via GitHub)" <gi...@apache.org>.
vbabenkoru commented on issue #12448:
URL: https://github.com/apache/iceberg/issues/12448#issuecomment-2790972524
I've tried specifying it like this, and it didn't work, still seeing the same error message:
```
// Register the catalog
tableEnv.executeSql(
s"""
|CREATE CATALOG iceberg_catalog WITH (
| 'type'='iceberg',
| 'catalog-impl'='org.apache.iceberg.rest.RESTCatalog',
| 'io-impl'='org.apache.iceberg.aws.s3.S3FileIO',
| 'uri'='$icebergUri',
| 'warehouse'='$icebergArn',
| 's3.use-ssl'='true',
| 'rest.signing-name'='s3tables',
| 'rest.region'='$region',
| 'rest.sigv4-enabled'='true',
| 'client.factory'='org.apache.iceberg.aws.AssumeRoleAwsClientFactory'
|)
|""".stripMargin)
```
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] [Feature Request ][iceberg] use AWS IAM role with serviceAccount instated of IAM user [iceberg]
Posted by "vbabenkoru (via GitHub)" <gi...@apache.org>.
vbabenkoru commented on issue #12448:
URL: https://github.com/apache/iceberg/issues/12448#issuecomment-2790953554
@luismacosta Have you been able to figure this out?
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] [Feature Request ][iceberg] use AWS IAM role with serviceAccount instated of IAM user [iceberg]
Posted by "luismacosta (via GitHub)" <gi...@apache.org>.
luismacosta commented on issue #12448:
URL: https://github.com/apache/iceberg/issues/12448#issuecomment-2747394892
> Have you followed the setup outlined [here](https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html)? Also, make sure to use [AssumeRoleAwsClientFactory](https://github.com/apache/iceberg/blob/1a94bc0346cb1cdc2cb60d1a666564693e83aed5/aws/src/main/java/org/apache/iceberg/aws/AssumeRoleAwsClientFactory.java).
Yes, IRSA setup in eks cluster is properly configured. We will look into [AssumeRoleAwsClientFactory](https://github.com/apache/iceberg/blob/1a94bc0346cb1cdc2cb60d1a666564693e83aed5/aws/src/main/java/org/apache/iceberg/aws/AssumeRoleAwsClientFactory.java). from flink app side. Thanks.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] [Feature Request ][iceberg] use AWS IAM role with serviceAccount instated of IAM user [iceberg]
Posted by "xiaoxuandev (via GitHub)" <gi...@apache.org>.
xiaoxuandev commented on issue #12448:
URL: https://github.com/apache/iceberg/issues/12448#issuecomment-2746972976
Have you followed the setup outlined [here](https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html)? Also, make sure to use [AssumeRoleAwsClientFactory](https://github.com/apache/iceberg/blob/1a94bc0346cb1cdc2cb60d1a666564693e83aed5/aws/src/main/java/org/apache/iceberg/aws/AssumeRoleAwsClientFactory.java).
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] [Feature Request ][iceberg] use AWS IAM role with serviceAccount instated of IAM user [iceberg]
Posted by "prabhuvenkatesanwb (via GitHub)" <gi...@apache.org>.
prabhuvenkatesanwb commented on issue #12448:
URL: https://github.com/apache/iceberg/issues/12448#issuecomment-3019339662
@vbabenkoru did this work for you?
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org