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 serialization in GPGSignature and formatting #419

Conversation

PradyumnaKrishna
Copy link
Contributor

Fixes: #418

Description of the changes being introduced by the pull request:

GPG signature requires sig on load but dumps signature key in a dict which should be the same key name.
This pull request aims to fix that issue. Test case is added to ensure this will not happen in future.
Some formatting fixes are made to the singer.py.

Please verify and check that the pull request fulfils the following requirements:

  • The code follows the Code Style Guidelines
  • Tests have been added for the bug fix or new feature
  • Docs have been added for the bug fix or new feature

GPG signature requires `sig` on load but dumps `signature` key in a
dict which should be the same key name secure-systems-lab#418.
Some formatting fixes are made to the singer.py.

Signed-off-by: Pradyumna Krishna <git@onpy.in>
Copy link
Member

@lukpueh lukpueh left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@lukpueh
Copy link
Member

lukpueh commented Jul 11, 2022

@PradyumnaKrishna, I appreciate that you are auto-formatting these relatively new modules. In the future, I'd welcome a separate commit for them. That would make review easier.

@lukpueh lukpueh merged commit 98a5e49 into secure-systems-lab:master Jul 11, 2022
@MVrachev
Copy link
Collaborator

Great job catching that issue!
It's also good you added a serialization test so that a mistake like that doesn't happen again.

@PradyumnaKrishna
Copy link
Contributor Author

It's also good you added a serialization test so that a mistake like that doesn't happen again.

Next time I will keep that in mind.

@PradyumnaKrishna PradyumnaKrishna deleted the fix_gpgsignature_serialization branch July 12, 2022 04:04
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.

GPGSignature loads and dumps different dict key
3 participants