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

Fix gpg.verify with python-gnupg >= 0.5.1 #67095

Open
wants to merge 2 commits into
base: 3007.x
Choose a base branch
from

Conversation

lkubb
Copy link
Contributor

@lkubb lkubb commented Dec 12, 2024

What does this PR do?

Fixes signature validity reporting with python-gnupg >=0.5.1, where the reported levels are off by -1 (changed in vsajip/python-gnupg#205). Thus also fixes a crash with the highest level, which would throw a KeyError.

Note: This issue is found in 3006.9 as well, but not as relevant since the pinned version there is 0.4.8. The code has changed a lot between both versions, which is why I opted to submit this for 3007+ only.

What issues does this PR fix or reference?

Fixes: #66685

Previous Behavior

  • Crashes when an ultimately trusted key made a signature
  • Otherwise reports one level too low

New Behavior

Works as expected/reports correct levels

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

@lkubb lkubb requested a review from a team as a code owner December 12, 2024 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant