`npm audit signatures` intermittently fails with EMISSINGSIGNATUREKEY for packages signed with key SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 12/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 活跃
- 技术栈
- javascript, nodejs
调研方向
Start by reproducing the EMISSINGSIGNATUREKEY error from npm audit signatures --prefer-online on the lockfile that fails, and check whether the key ID SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U is missing from the keys endpoint https://registry.npmjs.org/-/npm/v1/keys on the failing responses. The issue does not name the source file that handles key lookup, so find it by searching for the error code. Done means identifying the cause of the intermittent miss and a fix that makes the result consistent across runs.
由索引模型根据 Issue 内容生成。
描述
Summary
npm audit signatures intermittently fails with EMISSINGSIGNATUREKEY on GitHub-hosted runners for packages whose attestations are signed with key ID SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U. Re-running the same job with an identical lockfile passes.
I am filing this as a blank issue because the Bug form requires confirming the latest npm, and this was observed with npm 10.9.9 (the version bundled with Node.js 22.23.4). I have not yet been able to try the latest npm, because the failure cannot be reproduced on demand.
Existing issues checked
- #8066 (closed, January 2025): constant failure after a key rotation, not intermittent.
- #10018: a different problem (reporting of skipped packages).
Current behaviour
npm error code EMISSINGSIGNATUREKEY
npm error [email protected] has attestations but no corresponding public key(s) can be found
or the same error for [email protected].
Within one failing job, three attempts about 20 seconds apart all fail. A re-run a few minutes later, with the same lockfile, passes.
Expected behaviour
For an unchanged lockfile, the result should be the same every time: either verification passes, or it fails consistently.
Steps to reproduce
npm ci --no-audit --no-fundnpm audit signatures --prefer-online
The failure is intermittent.
Observations
- Both packages' attestations are signed with key ID
SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U(logged on 26–27 October 2026). - I fetched
https://registry.npmjs.org/-/npm/v1/keys15 times from a different network. Every response included that key ID. The response headers showed it was last modified on Thu, 12 Nov 2026 07:23:58 GMT, and served from a CDN cache (cf-cache-status: HIT). - Hypothesis, not confirmed: some CDN edges reached by GitHub's runners may still have served an older copy of the key list without this key. I cannot confirm this from outside, and there may be another cause.
Occurrences (13 November 2026, UTC)
| Time (approx.) | Result |
|---|---|
| 18:00–18:15 | failed twice on the same commit; a later re-run passed |
| 18:25 | failed once; the next run passed |
| 21:02 | all three attempts failed ([email protected]); re-run passed |
| 21:49–21:50 | all three attempts failed ([email protected]); re-run passed |
| 22:36–22:37 | all three attempts failed ([email protected]); re-run passed |
Other runs on the same day with the same lockfile passed.
Environment
- npm: 10.9.9
- Node.js: v22.23.4
- OS: GitHub-hosted
ubuntu-latestrunner (Ubuntu 26.04.1 LTS) - Registry:
https://registry.npmjs.org/(default)
Workaround in use
We retry the whole command up to three times, and the job fails unless one attempt succeeds. Signature verification is never skipped or weakened.
I am happy to provide more output (with private details removed) if it helps.
- 主要语言
- JavaScript
- 星标
- 10.3k
- 派生
- 5k
- 平均合并
- 4 天 11 小时
- 30 天内合并 PR
- 26
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
npm/cli 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 2 天内回复
-
[BUG] scripts/dependency-graph.js splits npm-cli-repos.txt on os.EOL, so DEPENDENCIES.md depends on the checkout's line endings可能已有人在做 @saruk-vedant 于 7 天前认领。 未关闭Bug Needs Triage Triage Requested
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 2 天内回复
-
[BUG] npm pkg delete removes the first array item for a nonexistent property可能已有人在做 @drawliin 于 42 天前认领。 未关闭cmd:delete Priority 3
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 2 天内回复
-
create node pr: Node.js 20 deprecation & `DEP0040` warnings logged可能重新可做 关联的 PR 已关闭且未合并。 未关闭Engineering Priority 1
难度 1/5 1 小时以内 新手友好度 80/100
维护者通常 2 天内回复
-
`npm audit signatures` does not report how many packages it skipped for want of registry keys可能已有人在做 @greenlincoln05 于 63 天前认领。 未关闭Priority 3
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 2 天内回复
相似的 Issue
-
docs: add SECURITY.md vulnerability reporting policy可能已有人在做 @AK-Lmn 今天认领。 未关闭
难度 1/5 1-3 小时 新手友好度 72/100
flisk-sh/linux2wasm#12 ·
维护者通常 1 天内回复
-
possible bug
难度 2/5 1-3 小时 新手友好度 84/100
Mintplex-Labs/anything-llm#7388 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 60/100
维护者通常 1 天内回复
-
v6: Minified bootstrap.min.css is missing header info可能已有人在做 @lazerg 今天认领。 未关闭bug build confirmed has-pr v6
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
[workshop-sync] workshop/side-quest-26-01-forecast-costs.md: forecast default history window is inaccurate可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭documentation
难度 1/5 1 小时以内 新手友好度 88/100
githubnext/gh-aw-workshop#6332 ·
维护者通常 1 天内回复