Commit 3ae53e4
feat: add npm audit signatures
Implemenents [RFC: Improve signature verification](npm/rfcs#550)
Adds a new sub-command to `audit`: `npm audit signatures` (following [`npm audit licenses`](#3452))
This command will verify registry signatures stored in the packument against a public key on the registry.
Supporting:
- Any registry that implements `host/-/npm/v1/keys` endpoint and provides `signatures` in the packument `dist` object
- Validates public keys are not expired
- Errors when encountering packages with missing signatures when the registry returns keys at `host/-/npm/v1/keys`
- Errors when encountering invalid signatures
- Output: json/human formats
Co-authored-by: Michael Garvin <wraithgar@github.com>1 parent 0ce09f1 commit 3ae53e4
File tree
5 files changed
+2071
-9
lines changed- lib/commands
- tap-snapshots/test/lib/commands
- test/lib/commands
5 files changed
+2071
-9
lines changed
0 commit comments