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

Verify transaction PGP signatures automatically #607

Merged
merged 5 commits into from
Jun 22, 2023
Merged

Conversation

m-blaha
Copy link
Member

@m-blaha m-blaha commented Jun 9, 2023

Currently signatures verification requires to manually call transaction.check_gpg_signatures() API.
This PR removes the API and changes the workflow so that the signature verification is done automatically during the transaction run.

Resolves: #556
Resolves: #574
Resolves: #557

Tests adujstments: rpm-software-management/ci-dnf-stack#1314

@m-blaha m-blaha force-pushed the mblaha/gpg branch 2 times, most recently from 6e0a566 to 612dd9a Compare June 9, 2023 15:05
For confimation of the repo gpg key import into rpmdb use the callback
from repo::RepoCallbacks class. The callback now gets KeyInfo as a
parameter instead of separate key fields.
Also rpm::KeyInfo and repo::Key classes were unified as they contain the
same information about keys.
Instead of requiring user to run the verification manually, do the
checks during `transaction.run()` call.
There was an inconsistency in what key was the user asked to confirm
(short key id) and what the server waits for (full key id).
Use the same wording as dnf5 does.
@jan-kolarik jan-kolarik added this pull request to the merge queue Jun 22, 2023
Merged via the queue into main with commit 388bda2 Jun 22, 2023
5 of 6 checks passed
@jan-kolarik jan-kolarik deleted the mblaha/gpg branch June 22, 2023 13:14
mkrizek added a commit to mkrizek/ansible that referenced this pull request Jul 10, 2023
nitzmahone pushed a commit to ansible/ansible that referenced this pull request Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
3 participants