Skip to content
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

Do not display encrypted files #249

Open
camilasan opened this issue Jul 11, 2020 · 7 comments
Open

Do not display encrypted files #249

camilasan opened this issue Jul 11, 2020 · 7 comments
Labels
design enhancement New feature or request

Comments

@camilasan
Copy link
Member

That is how it looks like when the app displays encrypted folders/files:
encryptedfiles

I think it is safe to say it is useless to display them like that :)

What do you think?

@camilasan camilasan added design enhancement New feature or request labels Jul 11, 2020
@ChristophWurst
Copy link
Member

Makes sense!

It has to be solved in server, possibly, because we use its API for the most recent files. Filtering those results is problematic, e.g. if the first ordinary file is hidden behind 200 encrypted ones. We might just do the filtering there 🤷

@camilasan
Copy link
Member Author

OK, should I open an issue there?

@ChristophWurst
Copy link
Member

I think we can leave it here. @icewind1991 would it make sense to filter out these entries from

}, $userFolder->getRecent($max));
?

@blkqi
Copy link

blkqi commented Jan 12, 2021

@camilasan Are you talking about files encrypted with the built-in encryption app or files that were encrypted in some other way (i.e. external to Nextcloud)? The former should be straight-forward, but the latter not so much.

One possibility would be to implement exclusion of files by tag or by hidden status. In either case it would fall upon the user to assign the appropriate tag or hidden status (such as by organizing the files within a hidden directory). Issue #353 deals with the exclusion of hidden files.

@camilasan
Copy link
Member Author

@blkqi In my case I was testing the end to end encryption on the desktop client. I would encrypt on my desktop and then the client would sync it with the server. These were the files on the screenshot in the issue description.

@blkqi
Copy link

blkqi commented Jan 13, 2021

@camilasan I think that case is going to be difficult to handle directly. While certain encryption schemes are easy to identify, there are many that aren't. And in any case, your issue deals not with encryption of the file data, but the file name.

To resolve this issue, I would stick to my previous suggestion of allowing users to exclude files by placing them under a hidden folder (.e.g .Secure/) or uploading them with a specific tag (e.g. no-recommendations). Either of these features would additionally support use cases beyond the one in discussion.

@blkqi
Copy link

blkqi commented Jan 13, 2021

I missed that you were using the official desktop client. If the desktop client sets the encrypted flag in the file cache then they should be easy to filter using !$node->isEncrypted().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants