git-crypt icon indicating copy to clipboard operation
git-crypt copied to clipboard

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

Open steveej opened this issue 7 years ago • 2 comments

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.

steveej avatar Oct 29 '18 11:10 steveej

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.)

kirelagin avatar Jan 04 '22 13:01 kirelagin

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.

antler5 avatar Jan 24 '22 02:01 antler5