core icon indicating copy to clipboard operation
core copied to clipboard

Config.sample.php - SWIFT - How does encryption work?

Open MTRichards opened this issue 12 years ago • 7 comments

In Config.sample.php, there is info about SWIFT and how to make it work.

But this part is really confusing:

WARNING: The current implementation is incompatible with any app that uses direct file IO and circumvents our virtual filesystem. That includes Encryption and Gallery. Gallery will store thumbnails directly in the filesystem and encryption will cause severe overhead because key files need to be fetched in addition to any requested file.

Where are the keys stored? In the object store? Are the incompatible, or is performance terrible?

MTRichards avatar Sep 05 '14 17:09 MTRichards

@butonic Can you comment?

karlitschek avatar Sep 05 '14 19:09 karlitschek

@MTRichards Yes, keys are stored in the objectstore. Performance is abysmal.

butonic avatar Sep 06 '14 19:09 butonic

thanks @butonic

MTRichards avatar Sep 07 '14 12:09 MTRichards

What are the ideas to bring performances to an acceptable level ? I am interrested in combination of object store and encryption.

enorniel avatar Sep 09 '14 11:09 enorniel

@enorniel Currently none. The idea of the objectstorage implementation is that no user files reside on the webserver, no cached thumbnails, no lucene indexes, no nothing. That especially includes encryption keys. As a result accessing files takes two http requests to the objectstore instead of one. The more than doubled latency (there might also be some temp file creation for larger files) feels sluggish to a point where it does not make sense to use a combination of objectstore and encryption. Furthermore, you loose a lot of the protection when storing the keys in the same objectstore as your files. Remember, the idea of the encryption app is to encrypt files stored in external mount points: encrypted data in amazon s3, google drive et al., keys in your infrastructure.

If you can describe your motivation in more detail it might go a long way in recommending a solution for you.

butonic avatar Sep 09 '14 12:09 butonic

added to release notes.

carlaschroder avatar Jan 29 '15 18:01 carlaschroder

Looks like we've done what we reasonably can do

RobinMcCorkell avatar Aug 29 '15 21:08 RobinMcCorkell