Aws S3 etag not matching md5 after KMS encryption

前端 未结 1 996
忘掉有多难
忘掉有多难 2021-01-16 04:21

All- We are working on migrating some confidential & regulatory information from Local UNIX file system to S3.

The files are copied using AWS EC2 instance into S

相关标签:
1条回答
  • 2021-01-16 04:53

    In AWS S3 the etag is not an MD5 checksum. If just happens that this is the case in the past but AWS warns not to rely on this method for integrity checks.

    In the following link is the text that I am referring to:

    The ETag may or may not be an MD5 digest of the object data.

    The entity tag is a hash of the object. The ETag reflects changes only to the contents of an object, not its metadata. The ETag may or may not be an MD5 digest of the object data. Whether or not it is depends on how the object was created and how it is encrypted as described below:

    • Objects created by the PUT Object, POST Object, or Copy operation, or through the AWS Management Console, and are encrypted by SSE-S3 or plaintext, have ETags that are an MD5 digest of their object data.

    • Objects created by the PUT Object, POST Object, or Copy operation, or through the AWS Management Console, and are encrypted by SSE-C or SSE-KMS, have ETags that are not an MD5 digest of their object data.

    • If an object is created by either the Multipart Upload or Part Copy operation, the ETag is not an MD5 digest, regardless of the method of encryption.

    Common Response Headers

    0 讨论(0)
提交回复
热议问题