Skip to content

Commit 1e5e01f

Browse files
authored
Merge pull request #9414 from nextcloud/enh/sse-c
Add documentation for using SSE-C on S3 primary storage
2 parents 0a01283 + 43aecff commit 1e5e01f

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

admin_manual/configuration_files/primary_storage.rst

+36
Original file line numberDiff line numberDiff line change
@@ -203,3 +203,39 @@ all files for that user in their corresponding bucket.
203203

204204
You can find out more information about upscaling with object storage and Nextcloud in the
205205
`Nextcloud customer portal <https://portal.nextcloud.com/article/object-store-as-primary-storage-16.html>`_.
206+
207+
208+
------------------------
209+
SSE-C encryption support
210+
------------------------
211+
212+
Nextcloud supports server side encryption, also known as `SSE-C <http://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html>`, with compatible S3 bucket provider. The encryption and decryption happens on the S3 bucket side with a key provided by the Nextcloud server.
213+
214+
The key can be specified with the :code:`sse_c_key` parameter which needs to be provided as a base64 encoded string with a maximum length of 32 bytes. A random key could be generated using the the following command:
215+
216+
::
217+
openssl rand 32 | base64
218+
219+
220+
The following example shows how to configure the S3 object store with SSE-C encryption support in the objectstore section of the Nextcloud config.php file:
221+
222+
::
223+
224+
'objectstore' => [
225+
array (
226+
'class' => 'OC\\Files\\ObjectStore\\S3',
227+
'arguments' =>
228+
array (
229+
'bucket' => 'nextcloud',
230+
'key' => 'nextcloud',
231+
'secret' => 'nextcloud',
232+
'hostname' => 's3',
233+
'port' => '443',
234+
'use_ssl' => true,
235+
'use_path_style' => true,
236+
'autocreate' => true,
237+
'verify_bucket_exists' => true,
238+
'sse_c_key' => 'o9d3Q9tHcPMv6TIpH53MSXaUmY91YheZRwuIhwCFRSs=',
239+
),
240+
);
241+
],

0 commit comments

Comments
 (0)