Closed benburkert closed 3 years ago
@rsc I've made some progress on this in my fork if you're curious. There are some cases we're not handling yet though, clearly...
Is there an official answer on when this bug is going to be fixed?
Is there an official answer on when this bug is going to be fixed?
There is not.
This not a core part of Go. It's in an official golang.org subrepo and is subject to code review, but anybody can contribute fixes. Nobody works on the openpgp
package full time.
We've made some more progress on our fork. Our support for Gnu S2K dummy and also YubiKeys is improved over the last few weeks.
@maxtaco Would it be possible for you to make a PR (or whatever needs to be done according to https://golang.org/doc/contribute.html) with the bugfix so someone (@bradfitz ?) can review and (hopefully) accept it?
I previously tried that it and took a lot of effort to get ramped up on Gerrit in their PR workflow, but the PR was never reviewed, so I stopped. We've since made a lot of changes and we'd have to invest significant effort in fitting them into self-contained PRs.
Not to cast blame on the Go team, they're obviously extremely busy and doing great work. I also furthermore don't blame them that OpenPGP is low on their priority list, since with all of the upgrade churn from 2.0 to 2.1, and with smartcards / yubikeys, it's basically impossible to make a complete implementation.
I see one CL from you that hasn't been reviewed: https://go-review.googlesource.com/#/c/14794/
Is that the one?
Please ping that review. @agl is not a member of the Go team. He has a real job and just contributes (a ton) to Go when he has free time.
Sorry to be a totally noob, but how do I "ping" a review? Sorry to ask a silly question
how do I "ping" a review?
There are multiple messages (2 at this moment) on the bottom of your code review screen (https://go-review.googlesource.com/#/c/14794/). These capture all messages sent to you and reviewers. You can reply to any of those messages by clicking "Reply to this message" button on the very right of expanded message. Just reply with "Ping" or any other message you want your reviewers to see (Brad set your reviewer to agl).
Alex
Thanks @alexbrainman, I gave it a try.
Thanks @bradfitz for the merge. Well, we have our work cut out for us for upstreaming the rest of the patches. I'll work on scheduling it into our backlog!
CL https://golang.org/cl/32797 mentions this issue.
I wrote up a patch to fix this issue. Perhaps this round we can do a review faster than 7 months? ;)
@karalabe @agl Not quite less than 7 months ;)
Per the accepted #44226 proposal and due to lack of maintenance, the golang.org/x/crypto/openpgp package is now frozen and deprecated. No new changes will be accepted except for security fixes. The package will not be removed.
If this is a security issue, please email security@golang.org and we will assess it and provide a fix.
If you're looking for alternatives, consider the crypto/ed25519 package for simple signatures, golang.org/x/mod/sumdb/note for inline signatures, or filippo.io/age for encryption. You can read a summary of OpenPGP issues and alternatives here.
If you are required to interoperate with OpenPGP systems and need a maintained package, we suggest considering one of multiple community forks of golang.org/x/crypto/openpgp. We don't endorse any specific one.
GPG added a "gnu-dummy" S2K type for keyrings that contain only subkey secret data (like in this guide).
openpgp.ReadKeyRing
returns anunsupported feature: S2K function
error. Value101
for a "gnu-dummy" S2K whichx/crypto/openpgp/s2k.Parse
doesn't recognize. Although RFC 4880 does not include this S2K, it does reserve100
through110
for extensions like this. These keys could be handled by addingDummy bool
field to encrypted keys and updating the S2K parser to recognize "gnu-dummy" type.The base64 encoded
secring
in the above contains agnu-dummy
S2K (notice thegnu-dummy S2K
in the output):