-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Error: openpgp: invalid data: tag byte does not have MSB set #2843
Comments
% helm version $ gpg --version Home: /Users/Alex/.gnupg |
ping @technosophos, any clue on this bug? |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
This appears to be broken due to the new GPG 2.1 version that removes |
/remove-lifecycle stale |
Attempting to verify a helm package with gpg [debug] Created tunnel using local port: '65416'
[debug] SERVER: "127.0.0.1:65416"
[debug] Original chart version: ""
Error: failed to load keyring: open /Users/jaredallard/.gnupg/pubring.gpg: no such file or directory Running [debug] Created tunnel using local port: '49500'
[debug] SERVER: "127.0.0.1:49500"
[debug] Original chart version: ""
Error: failed to load keyring: openpgp: invalid data: tag byte does not have MSB set So, all of gpg related functions appear to be broken with gpg 2.1+ |
Able to reproduce here too. Smartcard support was not working until gpg 2x and signing is totally broken in gpg 2x which in turn means smartcard signing with helm is not currently possible at all. This is a major blocker that prevents usage of helm at two organizations I manage.
|
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Trying to hunt this down now |
Testing with older keyrings seems to work fine, so this does appear to be something caused by a newer GnuPG version. But I am still testing, so I may know more in a bit.
|
Okay, in the process of testing, it appears that the GnuPG keyring format has changed. This is totally allowed by the OpenPGP spec, which does not require that a keyring be in a particular format. If I run The relevant GnuPG announcement: https://gnupg.org/faq/whats-new-in-2.1.html#keybox Update: Use |
After taking a long look at the code, I actually really like what GnuPG did... but I don't have time to implement an undocumented file format. So for now, I'm going to suggest that we export to the binary entity-list format and continue using that. If anyone feels like a fun challenge, here's the code for the new file format. It would be awesome to have this as a stand-alone Go library. |
I don't feel that this should be closed @technosophos. Converting from one format to the other isn't really a valid workaround and introduces differences between the two rings. Sure, the documentation is useful, but this is still an out of the box issues for most (if not all) Linux users. |
What do you suggest the fix is? |
FYI, I think there has been an openpgp issue raised here for the new format: |
I have it on my todo list to write a keybox library, but it's nowhere near a high priority for me. So if they make any progress I will be very, very happy. |
I have got this error > I able to solved it using the below steps Explanation: the GnuPG v2 store your secret keyring using a new format kbx on the default location ~/.gnupg/pubring.kbx. Please use the following command to convert your keyring to the legacy gpg format: The output: and upon checking ~/.gnupg/secring.gpg is exist we can use Output: |
I still have this problem, I do not think this issue should be closed at all until resolved. |
After hitting this trying to use a key on a smartcard (yubikey), I found that the Helm GnuPG plugin works as expected! It generates a provenience file and |
I just want to reiterate that this is still an issue and I am having a hard time fixing this.
|
@vineetguptadev I was just able to resolve a similar error, albeit on the
Have you tried that and / or did it work? |
when i use command on user manual , i get error ,why?
The text was updated successfully, but these errors were encountered: