Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
ETag from S3 did not match computed MD5 - when using KMS encryption for upload #3750
When using KMS encryption for S3 upload, BotoClient errors with "BotoClientError: ETag from S3 did not match computed MD5."
The issue stems from the fact that with either KMS or S3's AES256 based encryption, the Content-MD5 value will not match the ETag from S3.
The following set of lines also need to check for the presence of 'x-amz-server-side-encryption' header and appropriately skip the etag check.