Closed frubi closed 6 years ago
Was the repository created with the 1.x version of SparkleShare? In 2.x encrypted repositories are handled differently and need to be recreated.
Yes, the repository was created with version 1.5.0. So client-side encryption is incompatible between SparkleShare 1.x and 2.x?
Yes, sadly. This had to be done to fix some issues and make improvements... If you create an empty git repo (no need to name it "-crypto" anymore) and add it using 2.x, SparkleShare will ask if you want it encrypted.
I've just hit this issue, so I've added some upgrade instructions to the Client Side Encryption wiki page:
Upgrading from SparkleShare v1.x to v2.x
The encryption mechanism has changed in SparkleShare v2, so if you have created an encrypted repository with the
crypto
extension in v1.x you will no longer be able to decrypt it in v2.x.This means that to convert a v1.x repo you will need to have to have a decrypted version of your repository locally from v1.x and then create a new SparkleShare repo via the v2 interface (there is no longer a requirement for the
crypto
directory name postfix) and move all your decrypted files into the new repo.
That's my best guess of the only way that you can upgrade an existing repo.
Related issue #1831.
If I add an existing, client-side encrypted Git repository to a new SparkleShare installation (flatpak), the client doesn't asks for the encryption password. After fetching the files in the temporary directory, the client shows directly the final dialog of the setup wizard.
What happened:
Git repository on own server is added. Files in SparkleShare directory are encrypted.
What I expected to happen:
Git repository on own server is added. Files in SparkleShare directory are not encrypted.
flatpak list -d
Log file: