Content
View differences
Updated by Sagar Gurung over 1 year ago
### Prerequisites
1. A running Nextcloud instance with server side encryption enabled.
Here is the documentation on how to enable it:
1. [https://docs.nextcloud.com/server/latest/admin\_manual/configuration\_files/encryption\_configuration.html](https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/encryption_configuration.html)
2. <figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="https://docs.nextcloud.com/server/latest/admin_manual/_images/encryption15.png" alt="../_images/encryption15.png"></div></figure>
2. The Nextcloud storage is setup in OpenProject and activated on a project
### Steps to reproduce
1. Login as a user to OpenProject
2. Enter a project with a set up Nextcloud storage that has encryption enabled
3. Go to a work package and open the FILES tab
4. Upload a file to the Nextcloud instance
1. Best is to upload a simple text file, that makes it later easier to validate if a file is encrypted or not.
### What is the buggy behavior?
* The file is not server side encrypted
* It's possible to confirming that by logging into the shell of the Nextcloud instance and navigating to the uploaded file.
* The files can be found in `data/<USER>/files`
* More infos here: [https://docs.nextcloud.com/server/latest/admin\_manual/configuration\_files/encryption\_configuration.html#files-not-encrypted](https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/encryption_configuration.html#files-not-encrypted)
* Inspect the file to see if it is encrypted
### What is the expected behavior?
1. The file should be encrypted
### Additional Infos
* When files are uploaded via Nextcloud UI the files are encrypted only via OpenProject files end up being not encrypted
<br>
### For QA-Testing:
Update: This problem can be solved by activating encryption on GroupFolders with
`occ config:app:set groupfolders enable_encryption --value="true"`
But we decided to show some additional information simple a warning in the UI of our app when the server side encryption is enabled but the `groupfolder` encryption is not enabled.
To reproduce the UI changes:
#### Steps to Reproduce the UI changes:
<br>
1. Assuming that the `Prerequisites` section is fulfilled (i.e encryption app is enabled, server side encryption is enabled and also the the home storage encryption is enabled)
2. The groupfolder encryption by default is disabled initially
1. Configure the integration setup in nextcloud (with project folder setup)
#### What is the expected behavior?
1. A warning UI in the project folder setup should be shown.<img class="op-uc-image op-uc-image_inline" src="/attachments/201894/gf-warning.png">
2. After that enable the `groupfolder` encryption explicitly with nextcloud's `occ cli command` as:
`occ config:app:set groupfolders enable_encryption --value="true"`
The warning should not be there anymore.
3. Also the warning should appear only when server side encryption criteria is fulfilled means (encryption app is enabled, server side encryption is enabled and also the the home storage encryption is enabled). If any of the above criteria is not fulfilled then the warning should not appear even though the encryption for the `groupfolders` is set to true.
For testing we can try either one of them by disabling encryption app or disabled encryption with command `occ encryption:disable` or also by unchecking `Encrypt the home storage` option (located at `Administration > Security`) in the UI and then see if the warning appears or not in our app UI. And the expected would be that it should not occur.
1. A running Nextcloud instance with server side encryption enabled.
Here is the documentation on how to enable it:
1. [https://docs.nextcloud.com/server/latest/admin\_manual/configuration\_files/encryption\_configuration.html](https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/encryption_configuration.html)
2. <figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="https://docs.nextcloud.com/server/latest/admin_manual/_images/encryption15.png" alt="../_images/encryption15.png"></div></figure>
2. The Nextcloud storage is setup in OpenProject and activated on a project
### Steps to reproduce
1. Login as a user to OpenProject
2. Enter a project with a set up Nextcloud storage that has encryption enabled
3. Go to a work package and open the FILES tab
4. Upload a file to the Nextcloud instance
1. Best is to upload a simple text file, that makes it later easier to validate if a file is encrypted or not.
### What is the buggy behavior?
* The file is not server side encrypted
* It's possible to confirming that by logging into the shell of the Nextcloud instance and navigating to the uploaded file.
* The files can be found in `data/<USER>/files`
* More infos here: [https://docs.nextcloud.com/server/latest/admin\_manual/configuration\_files/encryption\_configuration.html#files-not-encrypted](https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/encryption_configuration.html#files-not-encrypted)
* Inspect the file to see if it is encrypted
### What is the expected behavior?
1. The file should be encrypted
### Additional Infos
* When files are uploaded via Nextcloud UI the files are encrypted only via OpenProject files end up being not encrypted
<br>
### For QA-Testing:
Update: This problem can be solved by activating encryption on GroupFolders with
`occ config:app:set groupfolders enable_encryption --value="true"`
But we decided to show some additional information simple a warning in the UI of our app when the server side encryption is enabled but the `groupfolder` encryption is not enabled.
To reproduce the UI changes:
#### Steps to Reproduce the UI changes:
<br>
1. Assuming that the `Prerequisites` section is fulfilled (i.e encryption app is enabled, server side encryption is enabled and also the the home storage encryption is enabled)
2. The groupfolder encryption by default is disabled initially
1. Configure the integration setup in nextcloud (with project folder setup)
#### What is the expected behavior?
1. A warning UI in the project folder setup should be shown.<img class="op-uc-image op-uc-image_inline" src="/attachments/201894/gf-warning.png">
2. After that enable the `groupfolder` encryption explicitly with nextcloud's `occ cli command` as:
`occ config:app:set groupfolders enable_encryption --value="true"`
The warning should not be there anymore.
3. Also the warning should appear only when server side encryption criteria is fulfilled means (encryption app is enabled, server side encryption is enabled and also the the home storage encryption is enabled). If any of the above criteria is not fulfilled then the warning should not appear even though the encryption for the `groupfolders` is set to true.
For testing we can try either one of them by disabling encryption app or disabled encryption with command `occ encryption:disable` or also by unchecking `Encrypt the home storage` option (located at `Administration > Security`) in the UI and then see if the warning appears or not in our app UI. And the expected would be that it should not occur.