abhinav / git-spice

Manage stacked Git branches
https://abhinav.github.io/git-spice/
GNU General Public License v3.0
220 stars 11 forks source link

Add Simple Secret Store #295

Closed klnusbaum closed 2 months ago

klnusbaum commented 2 months ago

Certain environments (namely headless linux) don't have a keychain available. Let's make a simple, JSON file secret store for uses in these environments.

Fixes #294

klnusbaum commented 2 months ago

What I've got here now is just a very rough sketch.

If you think this is a good idea I can:

  1. Hook it up to the relevant commands
  2. Write tests for it
  3. Make it thread safe?
abhinav commented 2 months ago

Oops, we had a bit of a race there. I implemented something similar locally. I tried to merge it into this PR but GitHub isn't letting me push to this branch, so closing this in favor of #296.