-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Update crypto-browserify to latest #309
Update crypto-browserify to latest #309
Conversation
Codecov Report
@@ Coverage Diff @@
## master #309 +/- ##
=======================================
Coverage 87.28% 87.28%
=======================================
Files 72 72
Lines 3428 3428
Branches 652 652
=======================================
Hits 2992 2992
Misses 419 419
Partials 17 17 Continue to review full report at Codecov.
|
Got a bunch of these errors:
|
@richardzcode I didn't get those errors in my branch but I can reproduce in the latest master. Those are webpack errors that occur when running A npm ls show that:
A workaround would be to add the |
The update for crypto-browserify is really needed, or this may occur when using Webpack and UglifyJS along with aws-amplify: #546 |
Closing this pr as the change has been merged. |
This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Description of changes:
Update
crypto-browserify
to3.12.0
.The current version suffers of a severe vulnerability:
No regression should occur, even though I updated to 2 major version forward. Currently 3 functions of the lib are used:
crypto.createHash
is directly pulled fromcreate-hash
crypto.createHmac
is directly pulled fromcreate-hmac
crypto.randomBytes
is what we want to fixSince there is no proper test suite in this project (
npm test
runeslint
!), I had to resort to manual testing and it seems to work fine.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.