MultipartUpload doesn't seem to work with KMS Encryption
See original GitHub issueProblem description
Trying to do a MultipartUpload doesn’t seem to work when using a KMS key.
“errorMessage”: “the bucket ‘BUCKET’ does not exist, or is forbidden for access (ClientError(‘An error occurred (KMS.NotFoundException) when calling the CreateMultipartUpload operation: Invalid keyId [’))”,
Steps/code to reproduce the problem
The code used was this:
config = boto3.session.Config(signature_version='s3v4')
with smart_open.open(url, 'r', transport_params={
'session': SESSION,
'resource_kwargs': {
'config': config
},
'multipart_upload_kwargs': {
'ServerSideEncryption': 'aws:kms',
'SSEKMSKeyId': KEY_id
}
})
works for a normal upload only.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8
Top Results From Across the Web
Multipart upload to AWS S3 does not seem to work · Issue #1025
program produces the following error: x-amz-server-side-encryption header is not supported for this operation; file is not uploaded. Repro steps ...
Read more >Access Denied when performing S3 Multipart Upload ...
Access for KMS is granted properly ( kms:Decrypt , kms:Encrypt and kms:GenerateDataKey* ) and it worked previously! This issues appears for both ...
Read more >CreateMultipartUpload - Amazon Simple Storage Service
To perform a multipart upload with encryption using an AWS KMS key, the requester must have permission to the kms:Decrypt and kms:GenerateDataKey actions...
Read more >Upload large files to S3 with encryption using an AWS KMS key
To perform a multipart upload with encryption using an AWS KMS key, the requester must have kms:GenerateDataKey and kms:Decrypt permissions.
Read more >Amazon S3 Storage Providers - Rclone
Key Management System (KMS). If you are using server-side encryption with KMS then you must make sure rclone is configured with server_side_encryption =...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@mpenkov Everything works after the update. Sorry about wasting your time.
I did a new test project with smart_open 3.0 and it seems to work. I’ll get back to you after testing it on the actual project: