StackExchange / blackbox

Safely store secrets in Git/Mercurial/Subversion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rewrite blackbox in Go (golang)

TomOnTime opened this issue · comments

This is the issue to track the development of a Go version.

CC: @hpoul @mnewswanger @MaxHorstmann @captncraig

The "golang" branch has made a lot of progress this weekend:

  1. Reworked the subcommands and flags. More consistent. Easier to understand. Rather than one subcommand for each legacy bash script, there is often a subcommand with various flags.

  2. Plug-ins for VCS: I've written Git and "None". Adding Mercurial, Subversion, etc. should be a breeze.

  3. Plug-ins for GPG implementation: I've written one that calls out to /usr/bin/gpg. It will be easy to add support for go-openpgp, Windows gpg.exe, and others.

The code is A LOT more simple now. This is the 3rd (?) iteration of trying to simplify the code. It is a lot better than my earlier iterations. The interfaces are much better structured now. I think anyone should be able to hack on this very easily. In fact, it is so much cleaner that it requires less test code.

If you want to see the code so far, it is in this branch:
https://github.com/StackExchange/blackbox/tree/golang

CC: @farseeker

Beta implementation is in #250

No Go tests yet, right?