-
Notifications
You must be signed in to change notification settings - Fork 151
Also add subkeys when adding GPG keys #711
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
Conversation
|
Quickly glanced at the LGTM! |
|
☎️ Ping? |
| subkeys = rpmGetSubkeys(pubkey, &nsubkeys); | ||
| for (gint i = 0; i < nsubkeys; i++) { | ||
| rpmPubkey subkey = subkeys[i]; | ||
| if (rpmKeyringAddKey(keyring, subkey) < 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In DNF only subkeys that pass the test subkey.can_sign are added. Please could you explain what exactly the code should do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This patch essentially matches what librpm does (see loadKeyringFromFiles()). In a quick scan, it's not clear whether librpm makes the same distinction. If not, I think this is something we'd need to fix there anyway, right? Is there anyone from the rpm team we can check with?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jlebon I looked into librpm. And yes, librpm does the same as this patch. I've been thinking about it. I will merge the PR. There is a plan to create GPG API in libdnf. So I hope to clarification during this work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, WFM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jlebon Wait? You want to make other changes to PR? Please set Labels to ready for review when the PR is ready.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh, I meant Works For Me :)
I don't have access to set labels, but the PR is ready.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I read Wait For Me instead of Works for me :-)
librpm allows packages signed with subkeys, so we should support this too.
See coreos#1094 (comment) and rpm-software-management/libdnf#711. Update submodule: libdnf
See #1094 (comment) and rpm-software-management/libdnf#711. Update submodule: libdnf Closes: #1819 Approved by: cgwalters
librpm allows packages signed with subkeys, so we should support this
too.