blackbox icon indicating copy to clipboard operation
blackbox copied to clipboard

Init Blackbox with an existing keyring?

Open thedjdoorn opened this issue 6 years ago • 3 comments

Suppose one were to export a GPG keyring for user A, B, C and D, would it be possible to use it with Blackbox rather than running blackbox_addadmin for every user? This would be a really neat feature for large teams or teams that'd like get started with Blackbox but have a lot of repositories.

thedjdoorn avatar Sep 05 '18 09:09 thedjdoorn

Could you post some shell example of how to do that?

tlimoncelli avatar Sep 05 '18 14:09 tlimoncelli

Well, correct me if I'm wrong, but pubring.kbx is basically a collection of public keys and an encrypted version of the AES cipher that's used to encrypt the files for every public key, right?

So maybe if we could do this:

$ blackbox_initialize --from ../other-project/.blackbox/pubring.kbx

That'd be a lot easier than:

$ blackbox_initialize
$ blackbox_addadmin [email protected]
$ blackbox_addadmin [email protected]
$ blackbox_addadmin [email protected]

Of course it would be smart to replace the AES cipher afterwards, in a blackbox_update_all_files way.

thedjdoorn avatar Sep 06 '18 08:09 thedjdoorn

Assuming everyone in the .kbx should have access is risky. I'd rather specify the path to the repo's .blackbox directory so that the blackbox-admins.txt can be read and used to decide which to admins to pull over.

This seems like a good starter PR if we can get a volunteer, especially someone that knows GPG very well.

tlimoncelli avatar Sep 06 '18 15:09 tlimoncelli