AGWA / git-crypt

Transparent file encryption in git
https://www.agwa.name/projects/git-crypt/
GNU General Public License v3.0
8.28k stars 479 forks source link

Feature suggestions: list and remove gpg-users #189

Closed bentterp closed 4 years ago

bentterp commented 4 years ago

Hi! Everything seems to work as stated, at least for me. I can start a project, I can encrypt files, I can add collaborators.

For day two operations, it would be very useful if there was someway we could list who has access to the keys, and also remove keys again.

It doesn't even have to be in the command itself. If somebody has figured out a way to do this on the commandline, please share it.

Regards, Bent

bentterp commented 4 years ago

If nobody finds a better way of doing it:

ls -1 .git-crypt/keys/ | while read key ; do
  echo -e "\n\nGit-crypt key: ${key}\nUsers:"
  find .git-crypt/keys/${key} -name \*gpg | while read gpgfile ; do
    gpg --list-keys $(basename ${gpgfile} .gpg)
  done
done

Then we at least can see who has access

bentterp commented 4 years ago

Closing, duplicate of #39