0005-00000404
Updated at:
Problem description
The x-oss-meta-client-side-encryption-wrap-alg header is missing from the PutObject, InitiateMultipartUpload, or UploadPart request in client-side encryption scenarios.
Causes
Client-side encryption requires the x-oss-meta-client-side-encryption-wrap-alg header in PutObject, InitiateMultipartUpload, and UploadPart requests.
Examples
The following example shows an InitiateMultipartUpload request without the required header:
POST /multipart.data?uploads HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Wed, 22 Feb 2012 08:32:21 GMT
x-oss-storage-class: Archive
Authorization: OSS qn6q**************:77Dv****************
x-oss-meta-client-side-encryption-key: val0
x-oss-meta-client-side-encryption-start: val1
x-oss-meta-client-side-encryption-cek-alg: val2
x-oss-meta-client-side-encryption-magic-number-hmac: val4
x-oss-meta-client-side-encryption-data-size: val5
x-oss-meta-client-side-encryption-part-size: val6
This request returns an error because the x-oss-meta-client-side-encryption-wrap-alg header is not included.
Solutions
Add the x-oss-meta-client-side-encryption-wrap-alg header to PutObject, InitiateMultipartUpload, and UploadPart requests in client-side encryption scenarios.
References
Is this page helpful?