holochain / lair

secret lair private keystore
Apache License 2.0
42 stars 11 forks source link

Automatically migrate unencrypted databases on request #121

Closed ThetaSinner closed 10 months ago

ThetaSinner commented 10 months ago

This is similar to the change I made here.

I know that Lair databases are meant to be encrypted but the lair_keystore crate exposes the option to disable database encryption by not using default features, so it would be good if there was a way to migrate if you end up being forcibly switched by something that has embedded Lair and changed it's defaults. Looking at you Holochain :)

ThetaSinner commented 10 months ago

Waiting for a new version of sodoken https://github.com/holochain/sodoken/pull/22

ThetaSinner commented 10 months ago

That would be more streamlined!

I've got the build for windows working by fetching the libsodium lib from vcpkg instead of the libsodium website. That should be a more reliable source. This only fixes our CI and anybody else building on Windows might run into the same issue but I suspect it's repeated downloads that get blocked rather than individuals. I didn't see this problem locally until I rebuilt a bunch of times