AGWA / git-crypt

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

Subkeys suffixed with `!` are resolved to their primary key #161

Open steveej opened 5 years ago

steveej commented 5 years ago

This makes adding two encryption subkeys from the same primary key impossible. The reason for doing this is because I have two yubikeys, each owning one of the subkeys, and I'd like to be able to unlock the repositories with either. password-store allows me to do this.

I'm not familiar myself with the gpg internals either in git-crypt nor in password-store, so I'm kindly asking someone to tell me which debug output would be helpful to resolve this issue.

kirelagin commented 2 years ago

I have the same problem. As a fix for #49, subkeys are now simply ignored, which is not the right thing to do when a specific subkey is requested with an exclamation mark. (Side note: I think this is a duplicate or at least very related to #70.)

antler5 commented 2 years ago

I've got the same problem. Worked around it by manually encrypting the symetrical secret and depositing it into .git-crypt, but this isn't really a long term / practical / scale-able workaround.