Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git-secret issues operating between gpg 2.0.x and 2.1.x #274

Closed
jvassev opened this issue Oct 28, 2018 · 3 comments
Closed

git-secret issues operating between gpg 2.0.x and 2.1.x #274

jvassev opened this issue Oct 28, 2018 · 3 comments
Labels
gnupg-interoperation changes related to supporting interoperability between gnupg versions

Comments

@jvassev
Copy link

jvassev commented Oct 28, 2018

It looks like git-secret cannot decrypt a repo when it's encrypted with gpg 2.0.x.
This has to do with the removal of the secring.gpg: https://www.gnupg.org/faq/whats-new-in-2.1.html

I have "fixed" git-secret locally by just commenting these 3 lines:

if [[ -z "$keys_exist" ]]; then
_abort "$error_message"
fi

It would be nice if some older gpg's are also supported for those stuck older linuxes :)

@joshrabinowitz
Copy link
Collaborator

Hello @jvassev,
Thanks for this issue report.

Is this issue complete and correct? We perform automated tests with gpg 2.0.22.
(Here's an example: https://travis-ci.org/sobolevn/git-secret/jobs/446983235)
IE, Is this reproducible using only gpg 2.0.X (I ask because you link to changes in 2.1)

Might this issue actually have to do with inter-operation between different versions of gnupg?
(See: #204 , #208)

@jvassev
Copy link
Author

jvassev commented Oct 28, 2018

I think my problem has to do with encrypting using gpg 2.1.0 and then failing to decrypt using 2.0.x.

The exact version which fails to decrypt is (ubuntu xenial):
gpg 2.0.22
libcrypt 1.5.3

I am encrypting with (centos 7):
gpg 2.1.15
libcrypt 1.7.8

@joshrabinowitz
Copy link
Collaborator

joshrabinowitz commented Oct 28, 2018

@jvassev yes, this is a known issue of git-secret interoperating with different versions of gnupg.
@simbo1905 wrote up #208 / RFC001 https:/sobolevn/git-secret/blob/master/RFC/RFC001.md which proposes a solution to this issue. See also #228

We would love for someone to implement a solution, which requires git-secret not depending as much on binary files created by gpg.

(edit:) I'm planning to close this as a dup of #228 and reword the description to mention it's a GnuPG inter-operation issue

@joshrabinowitz joshrabinowitz changed the title git-secret doesn't work with gpg 2.0.x git-secret issues operating between gpg 2.0.x and 2.1.x Oct 28, 2018
@joshrabinowitz joshrabinowitz added the gnupg-interoperation changes related to supporting interoperability between gnupg versions label Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gnupg-interoperation changes related to supporting interoperability between gnupg versions
Projects
None yet
Development

No branches or pull requests

2 participants