-
Notifications
You must be signed in to change notification settings - Fork 50
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
Allow verifying signatures without gpg #214
Allow verifying signatures without gpg #214
Conversation
1 similar comment
@@ -203,9 +203,6 @@ def test_gpg_cmds(self): | |||
with self.assertRaises(securesystemslib.exceptions.UnsupportedLibraryError): | |||
securesystemslib.gpg.functions.create_signature('bar') | |||
|
|||
with self.assertRaises(securesystemslib.exceptions.UnsupportedLibraryError): |
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.
Would it make sense to say that we do not raise this exception (regression test)?
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.
AFAICT this would require running the securesystemslib.gpg.functions.verify_signature(None, 'f00', 'bar')
function with correctly formatted arguments. I'm not really sure how that could be added but this is a great idea.
A comprehensive fix including regression testing is available in #215. |
Fixed in #215. |
Please fill in the fields below to submit a pull request. The more information
that is provided, the better.
Issue:
A regression was introduced with #206
Before that it was possible to verify keys even if
gpg
was missing in the used environment.gpg is not required for verifying but a safe-guard was added in the
verify_signature
method which now prevents that possibility.Description of the changes being introduced by the pull request:
Removes the safe-guard introduced in #206
Please verify and check that the pull request fulfils the following
requirements: