-
Notifications
You must be signed in to change notification settings - Fork 7
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
Rejecting submission: Could not determine GPG uid #51
Comments
buildinfo.debian.net does not check keyrings at all.
Interesting. New key? Do old gnupgs not support ed25519? |
|| My guess is either it has an outdated keyring So how does it verify that the GPG uid exists, since that data is in the public key material? Does it call out to a keyserver every time? || … , or does not support ed25519 signatures New signing subkey. | Do old gnupgs not support ed25519? Version 2.1.18 of gnupg in Debian stretch supports ed25519 (a.k.a. EDDSA). Is live well, |
I'm curious why you think it does (or needs to). It just checks there is a valid UID. There are indeed calls to a keyserver but that is solely to turn an ugly hex UID into a name of sorts and (in addition) this is done entirely outside of the |
gnupg in debian stretch should be able to handle ed25519 verification without a problem. |
The GnuPG updates landed in debian stretch's latest point release; I recently tried re-submitting the u-boot .buildinfo file again and still have the same issue. Not sure if it still needs to be updated, or if the issue isn't actually fixed in the newer GnuPG. |
I used vagrant.key.gz (but gunzipped) locally on stretch, and tried it manually:
and that all looks fine. Then i tried manually looking at the file with a little python script
and that prints a simple:
(all on debian stretch, using python2) so i'm perplexed as to what is going wrong on buildinfo.debian.net, and i can't replicate it. |
I'm wondering if in bidb/api/utils.py:
While the default value for keyrings is None in get_gpg_info, there appears to be a default set in deb822.GpgInfo.from_sequence: If that function is using the old keyring, and it's present, maybe the output is somehow unexpected? Using dkg's example code (and tweaking to pass gpg_get_info(keyring=...), and just print), I also can't reproduce the issue, though, no matter what I feed it for the keyring. Since december 1st, there have been at least 59 developer .buildinfo files impacted by this issue, which isn't a lot, compared to the thousands processed. A quick sampling of those suggests they are using non-rsa keys. The contents of the .buildinfo file aren't the problem; I've re-signed several uploads with a gpg key using RSA and buildinfo.debian.net accepts them. So I'm still as perplexed as ever... |
do we have a local reproducer, one that doesn't depend on PUTting data to the https://buildinfo.debian.net/api/submit REST endpoint? |
I've been manually submitting .buildinfo files for packages I've uploaded to Debian. But after recent updates to my key, it appears to no longer accept the signatures:
$ cat ../u-boot_2018.09+dfsg-1_amd64.buildinfo | curl -X PUT --max-time 30 --data-binary @-
https://buildinfo.debian.net/api/submit
Rejecting submission: Could not determine GPG uid
My guess is either it has an outdated keyring, or does not support ed25519 signatures, or potentially both.
Thanks for maintaining buildinfo.debian.net!
Attached is the submitted .buildinfo (compressed, to make github happy).
u-boot_2018.09+dfsg-1_amd64.buildinfo.0.gz
live well,
vagrant
The text was updated successfully, but these errors were encountered: