News for hackers. Stuff that matters.
Re:GitHub Is Down by rad_gruchalski on Thursday April 02, 2020 @04:55PM (#22763724)
Hopefully does not depend on github webhooks for replication!
Re:GitHub Is Down by gargarplex on Thursday April 02, 2020 @05:14PM (#22763942)
It does, but it would've mirrored your latest commit before it went down.

Anyway, here's how you connect Keybase to GitHub:

https://blog.codefor.cash/2019/08/30/free-automatic-github-b...

https://github.com/codeforcash/github-to-keybase-mirror

Note: this was a v1, and I'm sure there are more resilient ways to do this. Critical feedback strongly encouraged (ideally along with suggestions).

Re:GitHub Is Down by rad_gruchalski on Thursday April 02, 2020 @05:28PM (#22764073)
Hooks (https://git-scm.com/docs/githooks) together with templates (https://coderwall.com/p/jp7d5q/create-a-global-git-commit-ho...) sound like a good alternative.

Edit: I can see where your solution has an advantage. When one accepts contributions, all of that can be automated with web hooks via github. Still, having to run lambda/similar for this is a bit heavy weight.

Edit 2: Considering that for a release, I would opt in for release from a tag or explicit commit, that would be a non issue. Pull when needed, for redundancy, use another, self hosted bare repo. Push there in case of github down.

Re:GitHub Is Down by gargarplex on Thursday April 02, 2020 @05:48PM (#22764244)
Wouldn't replacing the github hook with a git-hooks script incrementally improve the solution as it currently exists?

Then, combine that with a git-hook script that designate all non-release branches push to team's Keybase repo as well? Maybe including a custom prefix in the branch name to avoid need for conflict resolution?

Re:GitHub Is Down by gargarplex on Friday April 03, 2020 @11:05AM (#22769916)
I'm also thinking that it would be easier to use git-hooks to push to AWS CodeCommit (in a random region that GitHub is unlikely to use) paired with CloudWatch events to invoke service backup to Keybase
Re:GitHub Is Down by gargarplex on Friday April 03, 2020 @11:42AM (#22770358)
Of course, ideally it would be a Terraform (or similar open source stack) script so it's not dependent on AWS as a vendor... I have experienced the real pains of vendor lock-in, even with cross-region there is opportunity to improve robustness