Config.sample.php - SWIFT - How does encryption work?
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?
@butonic Can you comment?
@MTRichards Yes, keys are stored in the objectstore. Performance is abysmal.
thanks @butonic
What are the ideas to bring performances to an acceptable level ? I am interrested in combination of object store and encryption.
@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.
added to release notes.
Looks like we've done what we reasonably can do