aarslanargin commented on issue #2329: URL: https://github.com/apache/iceberg-python/issues/2329#issuecomment-3457012019
Hi, I’m running into a similar but slightly different problem when writing to an S3 bucket with PyIceberg using SSE-KMS. Environment: - PyIceberg version: latest - Catalog: GlueCatalog - Bucket encryption: aws:kms with enforced KMS key - Context: ECS task in a VPC Error: ``` AWS Error ACCESS_DENIED during CreateMultipartUpload operation: User: arn:aws:sts::<account_id>:assumed-role/<ecs-role> is not authorized to perform: s3:PutObject on resource: "arn:aws:s3:::<bucket>/iceberg/.../metadata/00000-<uuid>.metadata.json" with an explicit deny in a resource-based policy ``` Observations: Removing all KMS references (bucket policy) allows the write to succeed. Using S3FileSystem / s3fs in Python works correctly with the same KMS key. It seems PyIceberg does not send the required SSE-KMS headers during multipart upload, causing the access denial. I’m sharing this in case it helps identify whether multipart uploads with KMS are fully supported or if this is a gap in the current implementation. -- 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]
