cooperspencer / gickup

https://cooperspencer.github.io/gickup-documentation/
Apache License 2.0
996 stars 38 forks source link

Feature Request: Support Keybase Git Repo #241

Open ImSingee opened 5 months ago

ImSingee commented 5 months ago

Hope if gickup can be used to backup from/to keybase git

https://book.keybase.io/git

cooperspencer commented 5 months ago

I'll have to check if keybase has an API I can work with.

I'll let you know as soon as I figured it out.

ImSingee commented 5 months ago

@cooperspencer Thanks for your interest in implementing this! But sadly, Keybase Git seems does not have an easy-to-use API since it's E2EE.

I think "the API" can be used with libkb like https://github.com/keybase/client/blob/1dabf620ff94cac9eaabf8309b8b7611c5708bf5/go/git/put.go#L45

cooperspencer commented 5 months ago

It also seems that go-git doesn't support keybase. At least my first test failed.

ImSingee commented 5 months ago

Yes... it's a little hack as it requires encrypting before sending to keybase server

https://arc.net/l/quote/ywozbsof

Aetherinox commented 5 months ago

I don't know why, but this never even came into my head. I use Keybase all the time, and it would have been awesome to get Keybase support.

cooperspencer commented 5 months ago

I think I have an idea to get it done. If Keybase is installed on the system, I could just do a keybase git list to get the repositories, parse the output and then use the systems' git instead of go-git.