Skip to content

Commit

Permalink
Add s3boto3 multipart encryption to catch up with jschneier#94
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarrien committed Jan 13, 2016
1 parent 404d01f commit 5e50859
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions storages/backends/s3boto3.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ def write(self, content, *args, **kwargs):
self._storage.default_content_type)
if self._storage.reduced_redundancy:
parameters['StorageClass'] = 'REDUCED_REDUNDANCY'
if self._storage.encryption:
parameters['ServerSideEncryption'] = 'AES256'
self._multipart = self.obj.initiate_multipart_upload(**parameters)
if self.buffer_size <= self._buffer_file_size:
self._flush_write_buffer()
Expand Down

0 comments on commit 5e50859

Please sign in to comment.