`npm ci` fails with `EINTEGRITY sha512-... integrity checksum failed` after a registry migration
IntermediateTroubleshootingSupply chain: signing, SBOM and dependencies
Answer
Likely causes → The tarball served differs from the hash in the lockfile: a proxy rewrote or re-packed it, a corrupted cache, or a genuinely tampered package.
Diagnose →
npm cache verify
npm view <pkg>@<ver> dist.integrity --registry https://registry.npmjs.org
Compare with the lockfile value.
Fix → If the public registry hash matches the lockfile, fix or purge the proxy cache entry. Do not just delete the lockfile to "make it work".
Prevent → Treat integrity failures as security events until explained; alert on them.
More on Supply chain: signing, SBOM and dependencies
`cosign verify` fails with `Error: no matching signatures` for an image CI says it signedBeginnerKeyless `cosign verify` fails: `none of the expected identities matched what was in the certificate`Intermediate`cosign sign` in GitHub Actions fails with `getting signer: getting key from Fulcio: ... no OIDC token`BeginnerKey-based `cosign verify --key cosign.pub` fails after a key rotation for older imagesIntermediate`cosign verify-attestation --type cyclonedx` returns `none of the attestations matched the predicate type`IntermediateKyverno `verifyImages` rejects pods: `failed to verify image ... : no signatures found` for a signed private ECR imageAdvanced