You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can successfully save a file to S3 (Minio) but when we try to retrieve it, we get a generic error.
The file however is normally accessible using the aws-cli when supplied with the correct encryption keys.
Meaning django-storages handles saving files using encryption just fine, but doesn't read them correctly.
I dived into the code and found 2 issues when reading files from S3.
If you encrypt an object by using server-side encryption with customer-provided encryption keys (SSE-C) when you store the object in Amazon S3, then when you retrieve the metadata from the object, you must use the following headers:
When we enable SSE-C for the S3 provider using the following settings:
We can successfully save a file to S3 (Minio) but when we try to retrieve it, we get a generic error.
The file however is normally accessible using the aws-cli when supplied with the correct encryption keys.
Meaning django-storages handles saving files using encryption just fine, but doesn't read them correctly.
I dived into the code and found 2 issues when reading files from S3.
AWS_S3_OBJECT_PARAMETERS
that contain the necessary headers).Adding the encryption keys to the HEAD request is required as per AWS S3 documentation:
AWS_S3_OBJECT_PARAMETERS
) to boto3The text was updated successfully, but these errors were encountered: