-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[build] Verify SHA checksums of downloaded node executables #7136
Comments
+1 on the P1. For whatever reason, this download is very unreliable at the moment. I'm trying multiple times and not getting a good download of node.exe on Windows. |
this might be a clue. As I keep retrying the build to get a good node.exe, this time I got;
|
That looks like a DNS lookup failure, which should result in no download, not a partial download. Also, if its a DNS lookup failure, I'd expect this callback to be fired with an error. Strange. |
We should definitely be checking shas. |
There's this method |
To clarify, I didn't mean to imply that I think we are checking for shas. We should just start if we aren't already. |
Apparently |
I'll suggest we change from using |
Made a utility module to help with this: |
@bevacqua utility only returns md5 ... we would need sha256 ... would you mind adding an option to define hashing algorithm used ? ( i submited a pull request against your repo) |
* fix #7136 - check SHA of downloaded node binaries * skips download if --skip-node-download cli argument is present
Backports PR #7746 **Commit 1:** fix #7136 - check SHA of downloaded node binaries * Original sha: 955972b * Authored by ppisljar <[email protected]> on 2016-07-11T19:17:08Z **Commit 2:** only skipping download if --skip-download cli argument is present * Original sha: 325e172 * Authored by ppisljar <[email protected]> on 2016-09-07T10:54:23Z **Commit 3:** updating log messages based on epixas comments * Original sha: 20b5c4d * Authored by ppisljar <[email protected]> on 2016-09-23T06:24:55Z **Commit 4:** updating based on courts review * Original sha: 78c124c * Authored by ppisljar <[email protected]> on 2016-10-29T14:44:43Z
Backports PR #7746 **Commit 1:** fix #7136 - check SHA of downloaded node binaries * Original sha: 955972b * Authored by ppisljar <[email protected]> on 2016-07-11T19:17:08Z **Commit 2:** only skipping download if --skip-download cli argument is present * Original sha: 325e172 * Authored by ppisljar <[email protected]> on 2016-09-07T10:54:23Z **Commit 3:** updating log messages based on epixas comments * Original sha: 20b5c4d * Authored by ppisljar <[email protected]> on 2016-09-23T06:24:55Z **Commit 4:** updating based on courts review * Original sha: 78c124c * Authored by ppisljar <[email protected]> on 2016-10-29T14:44:43Z
Backports PR #7746 **Commit 1:** fix #7136 - check SHA of downloaded node binaries * Original sha: 955972b * Authored by ppisljar <[email protected]> on 2016-07-11T19:17:08Z **Commit 2:** only skipping download if --skip-download cli argument is present * Original sha: 325e172 * Authored by ppisljar <[email protected]> on 2016-09-07T10:54:23Z **Commit 3:** updating log messages based on epixas comments * Original sha: 20b5c4d * Authored by ppisljar <[email protected]> on 2016-09-23T06:24:55Z **Commit 4:** updating based on courts review * Original sha: 78c124c * Authored by ppisljar <[email protected]> on 2016-10-29T14:44:43Z
Backports PR #7746 **Commit 1:** fix #7136 - check SHA of downloaded node binaries * Original sha: 955972b * Authored by ppisljar <[email protected]> on 2016-07-11T19:17:08Z **Commit 2:** only skipping download if --skip-download cli argument is present * Original sha: 325e172 * Authored by ppisljar <[email protected]> on 2016-09-07T10:54:23Z **Commit 3:** updating log messages based on epixas comments * Original sha: 20b5c4d * Authored by ppisljar <[email protected]> on 2016-09-23T06:24:55Z **Commit 4:** updating based on courts review * Original sha: 78c124c * Authored by ppisljar <[email protected]> on 2016-10-29T14:44:43Z
* fix elastic#7136 - check SHA of downloaded node binaries * skips download if --skip-node-download cli argument is present
Backports PR elastic#7746 **Commit 1:** fix elastic#7136 - check SHA of downloaded node binaries * Original sha: 955972b * Authored by ppisljar <[email protected]> on 2016-07-11T19:17:08Z **Commit 2:** only skipping download if --skip-download cli argument is present * Original sha: 325e172 * Authored by ppisljar <[email protected]> on 2016-09-07T10:54:23Z **Commit 3:** updating log messages based on epixas comments * Original sha: 20b5c4d * Authored by ppisljar <[email protected]> on 2016-09-23T06:24:55Z **Commit 4:** updating based on courts review * Original sha: 78c124c * Authored by ppisljar <[email protected]> on 2016-10-29T14:44:43Z Former-commit-id: 8e22a9e
While testing #6267, @LeeDr noticed that the build ended up packaging a bad
node.exe
file. It turned out that thenode.exe
file downloaded by the build process into the.node_binaries
folder was bad.I looked at the code where the various node executables are downloaded; it appears we only check for a HTTP 200 status code to determine success. Perhaps we should also compare the SHA checksums (example for v4.3.2) of the downloaded node executables before proceeding further in the build?
The text was updated successfully, but these errors were encountered: