-
Notifications
You must be signed in to change notification settings - Fork 685
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
swap to using cryptography and stdlib #3400
Conversation
This is from https://circleci.com/gh/freedomofpress/securedrop/13132?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link and looks legit :-) |
Yes, and while testing a new update on this PR, issue #3407 came up. |
Hey @reaperhulk, thanks for this PR! 😄 To merge this for the next minor release (0.8.0), we'll need to temporarily pin to a slightly older version of pyca/cryptography, 2.0.3, to get the this to install on SecureDrop servers (more details). Let us know if you forsee any issues with that approach. To get the tests to run in CI in this PR, one can pick in 117acb6 from #3458. In terms of your diff here, there was a legitimate test failure: |
@redshiftzero thanks for running with this! When does |
@reaperhulk good question, the |
@redshiftzero Okay, that looks good then. Makes sense why you'd be seeing test failures prior to that change since it was finalizing a cipher context that was going to process additional data. |
Excellent, thanks @reaperhulk for your contribution to SecureDrop 😄 - we'll merge your commit over in #3458 |
These changes have been merged in #3458, closing! |
Status
Ready for review
Description of Changes
Fixes #3399
Changes proposed in this pull request:
Uses pyca/cryptography instead of pycryptodome
Testing
How should the reviewer test this PR?
All test cases must pass.
Deployment
Checklist
If you made changes to the server application code:
make ci-lint
) and tests (make -C securedrop test
) pass in the development containerIf you made changes to
securedrop-admin
:make -C admin test
) pass in the admin development containerIf you made changes to the system configuration:
If you made changes to documentation:
make docs-lint
) passed locally