Repository navigation
Primary S3 Storage Backend + Encryption problem with file size, mimetype and first download failed #3748
Description
Activity
Facing same issue in 11.0.2.
I think this is related to #3294.
Does this use KMS or HSM for the encryption? Or does Nextcloud handle the encryption itself and just shove ciphertext into S3?
We "shove" the encrypyted content to S3
@hungnvz can you reproduce the same problem when not using external storage?
Do you have to bring the object back to the nextcloud server then to decrypt into cleartext in order to serve it to the user? If so, doesn't that kind of make the whole point of using AWS a little silly?
Well, no... I guess you could store a copy of your key used to encrypt it in AWS, which is in turn encrypted by a second key that you can use in a Lambda function to decrypt it on demand, I guess.
I'm using Openstack Swift as primary storage on a fresh install of Nexcloud 12.0.0 and I'm experiencing the following problems as well:
-
First download failed.
-
Mimetype icon show incorrect
-
Second download success
-
I have to correct myself. I have the problems listed above with Nextcloud version 11.0.3. With Nextcloud version 12.0.0 I don't get Swift storage working at all as discussed here:
The issue still exists with Nextcloud 12.0.3, but it's a bit different. I still have no preview and the wrong icon and file size listed after upload. But the first download does not fail and downloads the correct file content. After this the file size is shown correctly, but still the wrong icon and no preview.
- addedstaleTicket or PR with no recent activityTicket or PR with no recent activity
on Jun 20, 2018 - added0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmap
on Jun 12, 2019 - ghost removedstaleTicket or PR with no recent activityTicket or PR with no recent activity
on Jun 12, 2019 - added1. to developAccepted and waiting to be taken care ofAccepted and waiting to be taken care ofand removed0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmap
on Aug 20, 2020 This was improved recently
Steps to reproduce
Expected behaviour
Actual behaviour
Image
File prepare upload

File uploaded show incorrect

Download failed at first

Download again success and file size correct

Server configuration
Operating system: Debian 8.7
Web server: Apache 2.4.10
Database: MariaDB 10.1.21
PHP version: 7.0.15
Nextcloud version: 11.0.2
Updated from an older Nextcloud/ownCloud or fresh install: fresh install
Where did you install Nextcloud from: git
List of activated apps:
App list
The content of config/config.php:
Config report
Are you using external storage, if yes which one: no
Are you using encryption: yes
Are you using an external user-backend, if yes which one: no
Client configuration
Browser: Firefox 51.0.1 64 bit
Operating system:
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log