-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
doc: update the instruction on how to verify releases #59113
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
Merged
nodejs-github-bot
merged 3 commits into
nodejs:main
from
aduh95:update-verify-instructions
Jul 27, 2025
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -95,36 +95,29 @@ _docs_ subdirectory. Version-specific documentation is also at | |
|
|
||
| ### Verifying binaries | ||
|
|
||
| Download directories contain a `SHASUMS256.txt` file with SHA checksums for the | ||
| files. | ||
| Download directories contain a `SHASUMS256.txt.asc` file with SHA checksums for the | ||
| files and the releaser PGP signature. | ||
|
|
||
| To download `SHASUMS256.txt` using `curl`: | ||
| You can get a trusted keyring from nodejs/release-keys, e.g. using `curl`: | ||
|
|
||
| ```bash | ||
| curl -O https://nodejs.org/dist/vx.y.z/SHASUMS256.txt | ||
| curl -fsLo "/path/to/nodejs-keyring.kbx" "https://github.com/nodejs/release-keys/raw/HEAD/gpg/pubring.kbx" | ||
| ``` | ||
|
|
||
| To check that downloaded files match the checksum, use `sha256sum`: | ||
| Alternatively, you can import the releaser keys in your default keyring, see | ||
| [Release keys](#release-keys) for commands to how to do that. | ||
|
|
||
| ```bash | ||
| sha256sum -c SHASUMS256.txt --ignore-missing | ||
| ``` | ||
|
|
||
| For Current and LTS, the GPG detached signature of `SHASUMS256.txt` is in | ||
| `SHASUMS256.txt.sig`. You can use it with `gpg` to verify the integrity of | ||
| `SHASUMS256.txt`. You will first need to import | ||
| [the GPG keys of individuals authorized to create releases](#release-keys). | ||
|
|
||
| See [Release keys](#release-keys) for commands to import active release keys. | ||
|
|
||
| Next, download the `SHASUMS256.txt.sig` for the release: | ||
| Then, you can verify the files you've downloaded locally | ||
| (if you're using your default keyring, do not pass `--keyring`): | ||
|
|
||
| ```bash | ||
| curl -O https://nodejs.org/dist/vx.y.z/SHASUMS256.txt.sig | ||
| ``` | ||
| set -e | ||
| set -o pipefail | ||
|
|
||
aduh95 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Then use `gpg --verify SHASUMS256.txt.sig SHASUMS256.txt` to verify | ||
| the file's signature. | ||
| curl -fs "https://nodejs.org/dist/${VERSION}/SHASUMS256.txt.asc" \ | ||
| | gpgv --keyring="/path/to/nodejs-keyring.kbx" --output - \ | ||
| | shasum --check --ignore-missing | ||
aduh95 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ``` | ||
|
|
||
| ## Building Node.js | ||
|
|
||
|
|
@@ -806,8 +799,11 @@ Primary GPG keys for Node.js Releasers (some Releasers sign with subkeys): | |
| * **Ulises Gascón** <<[email protected]>> | ||
| `A363A499291CBBC940DD62E41F10027AF002F8B0` | ||
|
|
||
| To import the full set of trusted release keys (including subkeys possibly used | ||
| to sign releases): | ||
| You can use the keyring the project maintains at | ||
| <https://github.com/nodejs/release-keys/raw/refs/heads/main/gpg-only-active-keys/pubring.kbx>. | ||
| Alternatively, you can import them from a public key server. Have in mind that | ||
| the project cannot guarantee the availability of the server nor the keys on | ||
| that server. | ||
|
|
||
| ```bash | ||
| gpg --keyserver hkps://keys.openpgp.org --recv-keys 5BE8A3F6C8A5C01D106C0AD820B1A390B168D356 # Antoine du Hamel | ||
|
|
@@ -867,6 +863,9 @@ verify a downloaded file. | |
| * **Timothy J Fontaine** <<[email protected]>> | ||
| `7937DFD2AB06298B2293C3187D33FF9D0246406D` | ||
|
|
||
| The project maintains a keyring able to verify all past releases of Node.js at | ||
| <https://github.com/nodejs/release-keys/raw/refs/heads/main/gpg/pubring.kbx>. | ||
|
|
||
| </details> | ||
|
|
||
| ### Security release stewards | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.