7 min read #OpenCloud#Sovereignty#Tech

OpenCloud · Vaults

Exit-first E2EE vaults in OpenCloud with rclone crypt

If you store files on a server, you also expose their contents to the operator, the administrator and anyone who gets hold of the backups. Since OpenCloud 7.5.0, you can create folders and entire spaces as vaults whose contents and file names the browser encrypts before uploading. The format is rclone crypt, an open standard that lets you open a vault and mount it as a drive without OpenCloud. The price: the server can no longer do anything with the files, so thumbnails, search and Collabora are gone. If you lose the passphrase, you lose the files.

A self-hosted cloud solves one problem, but not every problem. If you run OpenCloud in-house, you know where the data lives and who maintains the servers. For the people using the cloud, that changes little: they still have to trust that nobody with access to the server, the storage or the backups opens their files. For most documents, that trust is appropriate. For research material and sources, health data, personnel files or client records, it often isn't enough. Anyone who wanted to store such files in the cloud anyway had to pack them into an encrypted archive and download, extract and re-upload it for every change.

E2EE in the browser

OpenCloud 7.5.0 adds vaults for this. A vault is a folder or an entire space in which all files are stored encrypted. You create one via “New” and “Folder”: the dialog has an “End-to-end encrypt this folder” toggle, after which you set a passphrase. The folder gets the extension .vault and a lock in the file list. Spaces have the same toggle when you create them.

  1. Open “New” menu with Folder, Files Upload, Folder Upload, Note, Markdown file and Shortcut.
    Choose “New”, then “Folder”.
  2. “Create a new folder” dialog with the name Personnel-Files.vault and the “End-to-end encrypt this folder” toggle switched on, below it a note that the files are lost without the password.
    Switch on the “End-to-end encrypt this folder” toggle. The name gets the extension .vault.
  3. Second step of the dialog: “Personnel-Files.vault is end-to-end encrypted”, a note about the password manager and a filled-in “Password” field.
    Set the password. The dialog points out that OpenCloud cannot recover it and recommends a password manager.
  4. File list: Personnel-Files.vault with a lock in the folder icon, below it the regular folder Vacation 2025.
    In the file list, the vault shows a lock (OpenCloud 7.5.0).
“Create a new space” dialog with the name HR Confidential and the “End-to-end encrypt this space” toggle switched on.

When you create a space, the toggle is called “End-to-end encrypt this space” (OpenCloud 7.5.0).

Encryption happens in the browser. The browser derives a key from the passphrase using scrypt, encrypts contents and file names with it, and only then uploads. The server holds only blocks encrypted with XSalsa20 and Poly1305, under names that reveal nothing; subfolder names are encrypted too. The passphrase is not stored anywhere, neither on the server nor in the browser. The web interface keeps the derived key in memory only and asks for the passphrase again after a page reload. To detect a wrong passphrase without knowing it, OpenCloud stores a random ID, encrypted with the vault's key, as a property on the vault when the vault is created. If it can be decrypted, the passphrase is correct.

Web interface inside the vault Personnel-Files.vault with readable file names such as Employment-contract-template.docx, Onboarding.md, Salary-list-2026.xlsx and three photos.

In the web interface: the unlocked vault with readable names.

Terminal with ls -1 Personnel-Files.vault: six entries with random-looking names such as 6n1if3gphohtg31cmsme7b6if4.

The same folder in the server's storage: six files, none of the names gives anything away (OpenCloud 7.5.0, test data).

“Unlock folder” page for Personnel-Files.vault with a note that the folder is end-to-end encrypted, a “Password” field and the buttons “Cancel” and “Unlock”.

After a reload, the web interface asks for the password again.

The same page with the error message “Incorrect password.” below the password field.

It recognizes a wrong password immediately: “Incorrect password.” (OpenCloud 7.5.0).

This leads to the most important limitation: there is no recovery, and admins can't get to the contents either. If you lose the passphrase, the encrypted files stay on the server, but you can never read them again. OpenCloud points this out when you create a vault and recommends a password manager. In 8.1.0 the dialog accepts any non-empty passphrase, so its strength is up to the users.

You share a vault with other people in OpenCloud just like a folder. You have to give them the passphrase through another channel; OpenCloud does not transmit it. Individual files from a vault can't be shared, and there are no public links for the vault or its contents.

Sharing panel of Personnel-Files.vault: at the top “Share with people” with a search field, below it “Public links” with “This folder has no public link.” and “You do not have permission to create public links.”

Sharing with people works, but you can't create public links for a vault (OpenCloud 7.5.0).

Compatible with rclone crypt

For vaults, OpenCloud uses the rclone crypt format. rclone is a free command-line tool that has been copying, syncing and mounting data between cloud storage services for years. To rclone, an OpenCloud vault is an ordinary crypt directory with default settings: filename_encryption = standard, directory_name_encryption = true and no second password (password2).

This keeps the data readable without OpenCloud. If you restore the encrypted folder from a backup or decommission a server, you open it with rclone and the passphrase. It also works day to day: with a WebDAV remote pointing at the .vault folder, signed in with an app token, and a crypt remote on top of it, you can mount the vault as a drive with rclone mount, or with rclone nfsmount on macOS. You then work with your usual programs, and rclone encrypts on your own machine and uploads. Whatever you create through the drive opens in the web interface, and vice versa. Through the same crypt remote, you can also use rclone sync or rclone copy to transfer existing files into a vault in encrypted form. The OpenCloud documentation describes the setup for Linux, macOS and Windows.

The OpenCloud desktop client and mobile apps can't handle vaults. They show encrypted files in encrypted form, and anything you put into a vault through them ends up there unencrypted. According to the documentation, they should not be used with vaults.

No search, no thumbnails

When the server can't read the files, everything the server does for users goes away. Thumbnails are missing from the file list, though the preview app still opens images, because the browser decrypts them itself for that. Search finds nothing inside a vault. Office documents can't be opened in Collabora, and since 8.0.0 collaborative editing in the editor is also switched off in vaults. The only files you can create directly in a vault are those for the built-in editor, such as Markdown; everything else goes in by upload. Moving, copying and pasting into or out of a vault is blocked, as are favorites and downloading parts of a vault as an archive. Image, description and README can't be set for encrypted spaces.

Tile view of the regular folder Vacation 2025 with thumbnails of the photos.

Regular folder: the tiles show thumbnails.

Tile view inside the vault: Employment-contract-template.docx, Onboarding.md, Salary-list-2026.xlsx and Vacation-011.jpg with only generic file icons and a lock.

In the vault: only generic icons, even for photos (OpenCloud 7.5.0).

Another limit is technical. In 8.1.0 the browser reads every file completely into memory before encrypting or decrypting it. The rclone format is split into 64 KiB blocks and allows processing piece by piece, but the web interface doesn't use that yet. For documents this doesn't matter; for video files of several gigabytes it does.

The fixes after 7.5.0 are mostly about everyday use: in 8.1.0 a disabled space is locked automatically, the separate unlock actions are gone because you unlock a vault simply by opening it, and the breadcrumb shows the lock in every subfolder.

Admins: enabled by default

Vaults live in the rclone-crypt web app. First parts were already included in 7.3.0, and it joined the default list of apps in 7.5.0. Since then, the toggle for encrypted folders is available to everyone allowed to create folders. You can switch it off for the whole instance by setting the list of core apps in WEB_UI_CORE_APPS without rclone-crypt, for example files,search,text-editor,pdf-viewer,external,admin-settings,epub-reader,preview,app-store. The variable replaces the whole list, so all other apps have to be included. This removes the feature from the web interface. It does not stop anyone who uploads files they encrypted themselves via WebDAV and rclone.

This has a consequence for operations you should be aware of: a virus scanner on the server, such as ClamAV, sees only encrypted data inside a vault and can't find anything in it. There is no control per space or per person yet. An open issue (opencloud#4099) asks for vaults to be off by default and for admins to be able to enable them selectively for individual spaces or people.

Sources