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

Extend the interface of verify_signature #2931

Merged
merged 1 commit into from
Jul 13, 2022

Conversation

mdellweg
Copy link
Member

@mdellweg mdellweg commented Jul 5, 2022

fixes #2930

mdellweg added a commit to mdellweg/pulp_ansible that referenced this pull request Jul 5, 2022
mdellweg added a commit to mdellweg/pulp_ansible that referenced this pull request Jul 5, 2022
mdellweg added a commit to mdellweg/pulp_ansible that referenced this pull request Jul 5, 2022
mdellweg added a commit to mdellweg/pulp_ansible that referenced this pull request Jul 5, 2022
@mdellweg mdellweg force-pushed the verify_signature branch 5 times, most recently from 913dee2 to a2d5b04 Compare July 6, 2022 12:15
mdellweg added a commit to mdellweg/pulp_ansible that referenced this pull request Jul 6, 2022
mdellweg added a commit to mdellweg/pulp_ansible that referenced this pull request Jul 6, 2022
mdellweg added a commit to mdellweg/pulp_ansible that referenced this pull request Jul 6, 2022
mdellweg added a commit to mdellweg/pulp_ansible that referenced this pull request Jul 7, 2022
mdellweg added a commit to mdellweg/pulp_ansible that referenced this pull request Jul 7, 2022
mdellweg added a commit to mdellweg/pulp_ansible that referenced this pull request Jul 7, 2022
mdellweg added a commit to mdellweg/pulp_ansible that referenced this pull request Jul 8, 2022
mdellweg added a commit to mdellweg/pulp_ansible that referenced this pull request Jul 12, 2022
@dkliban dkliban requested review from bmbouter and gerrod3 July 12, 2022 13:40
mdellweg added a commit to mdellweg/pulp_ansible that referenced this pull request Jul 12, 2022

verified = gpg.verify_file(signature, detached_data)
if not verified.valid:
raise InvalidSignatureError("The signature is not valid.", verified=verified)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a user-facing string, if so should it be i18n with gettext?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, yes, it could be.

This function accepts both the signature as well as the (detached)
signed data as paths, artifacts or file-like objects.
Also deprecate verify_signature.

fixes pulp#2930
@bmbouter bmbouter merged commit 6287ef3 into pulp:main Jul 13, 2022
@bmbouter
Copy link
Member

Thanks @mdellweg !

@mdellweg mdellweg deleted the verify_signature branch July 14, 2022 07:56
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.

As a plugin writer i need more flexible and verbose interface of verify_signature
3 participants