server icon indicating copy to clipboard operation
server copied to clipboard

Encrypt Filenames SSE

Open Toorero opened this issue 1 year ago • 5 comments

Currently, if you enable server-side encryption (SSE) and I suspect by extend end-to-end encryption (E2EE) names of files are not encrypted. I think this is a major oversight and should be fixed because filenames can give a lot of information about the content stored in a file. File names (and even folder names) can contain private and/or personal information, like names of persons, places bank accounts present, etc. Even highly sensitive data like gender or sexual orientation can be exposed via unencrypted filenames

This fact is also stated in the official manual, so this is obviously "intended behaviour" but severely limits the application of SSE impov.

Toorero avatar Sep 29 '25 01:09 Toorero

Related to #5553

Toorero avatar Sep 29 '25 01:09 Toorero

Server-side-encryption in the current state fails the purpose to "protect users’ files on remote storage" because crucial information is exposed via the non-encrypted paths. As long as the feature is not implemented, this critical issue with SSE should be highlighted as a red warning banner at the top of the official documentation here I think.

Toorero avatar Sep 29 '25 01:09 Toorero

It's hard to believe that this serious issue has not been fixed by the developers after EIGHT years. While an unencrypted directory structure isn't perfect, it's an acceptable compromise. However, unencrypted filenames shouldn't be considered an acceptable or expected behavior; it's a bug.

The necessity for this feature has been clearly articulated by others. Furthermore, there are mature, open-source implementations for filename encryption available, so performance and development difficulty shouldn't be an issue.

As Nextcloud is the leading open-source cloud storage solution, I hope the day when filename encryption is implemented comes sooner rather than later.

Juusttiinn avatar Oct 05 '25 18:10 Juusttiinn

For external storage, I'd even be happy with something like UUID (or otherwise tokenized) filenames on the external filesystem, with the actual filename/path stored in nextcloud's database. I just can't have filenames/directories with potential PII in them on external systems.

hendricksond avatar Oct 06 '25 02:10 hendricksond

and I suspect by extend end-to-end encryption (E2EE) names of files are not encrypted.

For the record, this is inaccurate. E2EE filenames are encrypted.

joshtrichards avatar Feb 26 '26 17:02 joshtrichards