-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Group sharing not working with encryption for newly added users #5143
Comments
So what you describe is not possible. As we can't decrypt the file without a user (that has access) password. So a cron job would not solve the issue. This should all work if you just have a master key. But @schiessle can probably tell more about the encryption app. |
Okay, I see. As I said, I do not insist on my proposals. My point is: the current workaround of sharing all group-shared objects individually with the newly added group member manually (and removing the user afterwards) is both extremely time-consuming, inconvenient and error-prone. It would be no problem if user A (the one sharing the files) needs to log in after a new user was added and could click on a button magically working through all his shares and doing the necessary "magic" to allow the newly added user B to be able to access the files. |
As said by @rullzer this can't be automated. Just think for a second what this would mean about the security of encryption if Nextcloud could magically give other people access to your files. As @rullzer I would recommend to use the master key, but this is only possible with a system which doesn't contain any encrypted files yet. Then you can enable server-side encryption, the default encryption module an then execute This will also be the default from Nextclodu 13 on: #5174 |
Thanks, decrypting and re-encrypting after enabling the master key also works. |
Steps to reproduce
Expected behaviour
Ideally, the user should be able to access the files right away after being added to the group. I am aware this is a known caveat of encryption with group sharing. I am also aware that I need to re-share the item with the specific user (and even after un-sharing it, the user can access the files correctly via the group share). However, we have a large directory structure with many group-dependent shares and are regularly adding (and removing) users. Thus, the proposed workaround is too cumbersome for our use case.
I don't know the encryption details of Nextcloud and I can imagine the proposed workaround is necessary to avoid making the encryption unsecure. Therefore, if it is intrinsically not possible to automatically make the files readable for the new group member, I propose the following solutions to make it easier:
occ
to let me do these steps myself without having to do it manually in the browser; i.e. add agroup-sharing-with-encryption-consistency-run
actionActual behaviour
The user cannot access the shared files, depending on file type gets weird and unhelpful error messages (ranging from PDF viewer giving 500 Server errors to image gallery giving another error and other types downloading as 500 Server error HTML file to my local machine).
Server configuration
Operating system: Ubuntu 16.04 LTS
Web server: Apache2 2.4.18
Database: MariaDB 10.0.29
PHP version: 7.0.18
Nextcloud version: 12.0.0
Updated from an older Nextcloud/ownCloud or fresh install: Fresh install
Where did you install Nextcloud from: Web
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
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: Safari, Chrome, Nextcloud App on iOS
Operating system: macOS, iOS
The text was updated successfully, but these errors were encountered: