Closed LeoColman closed 2 years ago
Hmm, weird. We do support using KMS keys when uploading and there are tests for that using the AWS S3 Java SDK in this repo.
Can you check if you can create a breaking test case in this repository?
I think the issue is by using the new version. I'll create a breaking case.
@Kerooker There is a bug in AWS Java SDK V2 which is causing this issue. I've opened a PR https://github.com/aws/aws-sdk-java-v2/pull/1535 on SDK V2 to fix it.
I see. Thanks, @ChaithanyaGK
https://github.com/aws/aws-sdk-java-v2/pull/1535 has been fixed long ago, closing.
S3 supports putting objects with KMS serverside encryption. I believe this is unsupported by S3Mock due to the following:
Given a file sender
The following piece of code fails:
With the stacktrace:
This is due to a checksum validation based on some headers that S3Mock doesn't return when using the encrypted endpoint, apparently.