-
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
replace pycryptodome with pyca/cryptography 2.0.3 #3458
Conversation
Latest pyca/cryptography requires setuptools>18.5, which we do not have on prod installs. In order to make this transition in the next minor release however, we can temporarily pin to a slightly older version of pyca/cryptography, such that we can install it using the version of setuptools that we have. For the Docker dev env, we need libffi-dev installed to pip install cryptography.
On the build on 117acb664588c8664f23ee0101279e35bf601279, there is a test failure on |
81f029d
to
7f636da
Compare
Codecov Report
@@ Coverage Diff @@
## develop #3458 +/- ##
===========================================
+ Coverage 85.87% 85.93% +0.05%
===========================================
Files 34 34
Lines 2167 2175 +8
Branches 241 241
===========================================
+ Hits 1861 1869 +8
Misses 250 250
Partials 56 56
Continue to review full report at Codecov.
|
Hey @emkll, take a look at this one when you get a chance 😇 |
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.
Changes look good to me, thanks @reaperhulk and @redshiftzero !
Status
Ready for review
Description of Changes
Fixes #3399, remix of #3400
See #3441 for why cryptography 2.0.3 is what we'll need to install in 0.8.0
Testing
The integration tests and the secure tempfile unit tests here do test this functionality.
In addition, one can manually test by submitting a file that is greater than 512KB and ensuring that you can successfully decrypt it.
Deployment
It will install without issue on existing and new installs
Checklist
If you made changes to the server application code:
make ci-lint
) and tests (make -C securedrop test
) pass in the development container