-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
defmodule Nodelix.NodeDownloader do | ||
@moduledoc """ | ||
TODO | ||
- fetch Node.js archive for a version and platform (https://nodejs.org/dist/v20.10.0/) | ||
- fetch checksum file (https://nodejs.org/dist/v20.10.0/SHASUMS256.txt) | ||
- fetch checksum file signature (https://nodejs.org/dist/v20.10.0/SHASUMS256.txt.sig) | ||
- fetch Node.js signing keys list (https://raw.githubusercontent.com/nodejs/release-keys/main/keys.list) | ||
- fetch keys (https://raw.githubusercontent.com/nodejs/release-keys/main/keys/4ED778F539E3634C779C87C6D7062848A1AB005C.asc) | ||
- convert keys to PEM (https://stackoverflow.com/questions/10966256/erlang-importing-gpg-public-key) | ||
- check signature of the checksum file with each key until there's a match | ||
- match the hash for the archive filename | ||
- check integrity of the downloaded archive | ||
- return the archive | ||
""" | ||
end |