Update golgi init functions with keystore selector #107

Merged
glyph merged 8 commits from keystore_selector into main 2022-05-16 13:12:01 +00:00
Owner

This PR introduces the keystore selector which was just added to golgi in PR #39.

The update effects peach-web and peach-lib. I have also updated the dependencies (as represented by the changed lockfile).

CC: @notplants


Update:

This ended up getting a bit complicated. I had to update peach-network because the public API of one of our dependencies changed (wpa-ctrl-rs). Everything is now compiling.

This PR introduces the keystore selector which was just added to golgi in [PR #39](https://git.coopcloud.tech/golgi-ssb/golgi/pulls/39). The update effects `peach-web` and `peach-lib`. I have also updated the dependencies (as represented by the changed lockfile). CC: @notplants ----- Update: This ended up getting a bit complicated. I had to update `peach-network` because the public API of one of our dependencies changed (`wpa-ctrl-rs`). Everything is now compiling.
glyph added the
maintenance
label 2022-05-11 14:45:31 +00:00
glyph added 2 commits 2022-05-11 14:45:31 +00:00
glyph requested review from notplants 2022-05-11 14:45:40 +00:00
glyph added 1 commit 2022-05-13 10:35:53 +00:00
continuous-integration/drone/pr Build is failing Details
98497fa5ae
merge latest changes from main
glyph added 1 commit 2022-05-13 10:45:13 +00:00
continuous-integration/drone/pr Build is failing Details
b0b79fef24
fix probes:0.3.0 lockfile error
glyph added 4 commits 2022-05-13 11:15:28 +00:00
Author
Owner

@notplants

Could you take a peek at this and make sure it all looks good to you? I ended up having to make some small updates to peach-network.

@notplants Could you take a peek at this and make sure it all looks good to you? I ended up having to make some small updates to `peach-network`.
notplants approved these changes 2022-05-16 12:50:49 +00:00
notplants left a comment
Owner

nice ~ new golgi code coming in

nice ~ new golgi code coming in
Author
Owner

Regarding your question about hardcoding:

i haven't looked into how kuska-ssb handles the keystore selection, but I wonder if they hard-code the ssb-go folder location

They hardcode the location: https://github.com/Kuska-ssb/ssb/blob/master/src/keystore/patchwork.rs#L13

I think that's nice to have as a convenience but we would still want to allow for a unique path to be supplied. I'd suggest we do that with an additional enum variant:

enum Keystore {
    Patchwork,
    GoSbot,
    Custom(Path)
}

Usage would be something like this:

let path = Path::new("./unique/secret");

let mut sbot_client = Sbot::init(Keystore::Custom(path), None, None).await?;

Then we could still use the read_patchwork_config() function from kuska to parse the file content into an instance of OwnedIdentity.

Regarding your question about hardcoding: > i haven't looked into how kuska-ssb handles the keystore selection, but I wonder if they hard-code the ssb-go folder location They hardcode the location: https://github.com/Kuska-ssb/ssb/blob/master/src/keystore/patchwork.rs#L13 I think that's nice to have as a convenience but we would still want to allow for a unique path to be supplied. I'd suggest we do that with an additional enum variant: ```rust enum Keystore { Patchwork, GoSbot, Custom(Path) } ``` Usage would be something like this: ```rust let path = Path::new("./unique/secret"); let mut sbot_client = Sbot::init(Keystore::Custom(path), None, None).await?; ``` Then we could still use the `read_patchwork_config()` function from kuska to parse the file content into an instance of `OwnedIdentity`.
glyph merged commit bf7f2c8e31 into main 2022-05-16 13:12:01 +00:00
glyph deleted branch keystore_selector 2022-05-16 13:12:01 +00:00
Owner

I'm working on this right now

I'm working on this right now
Sign in to join this conversation.
No description provided.