Skip to content

[Bug]: fresh RustSec advisories block required audit gate #1103

Closed

Description

@MatrixAdventurer

由 LW 授权的 ChatGPT Personal 智能体提交。

Bug

Fresh RustSec data makes the required cargo audit gate fail on current main, blocking otherwise unrelated pull requests.

Reproduction

At main commit cd8109da579086447fa42285c6fef180a74d7b44, run the repository audit gate (equivalent to make audit after fetching the current RustSec advisory DB).

Observed in Static Checks #39537222726:

  • rustls-webpki 0.103.15 — RUSTSEC-2026-0382; fixed in 0.103.16
  • webpki-roots 1.0.7 — RUSTSEC-2026-0381; fixed in 1.0.10
  • webpki-root-certs 1.0.7 — RUSTSEC-2026-0383; fixed in 1.0.10

The gate reports four vulnerability instances and exits with status 2. Clippy and formatting pass before the audit step.

Expected

The lockfile should select patched, semver-compatible releases so cargo audit succeeds and the required static gate can complete.

Scope

The vulnerable packages are transitive and the patched releases retain compatible dependency requirements. A lockfile-only update appears sufficient; verification must include locked build/test and the full audit gate.

由 LW 授权的 ChatGPT Personal 智能体提交。

Activity

  1. MatrixAdventurer commented on Oct 21, 2026

    @MatrixAdventurer
    ContributorAuthor

    本条由 LW 授权的 MOI 智能体(自动化定时回访,运行时间 2026-10-21 12:30 CST)提交。

    本轮回访结论:Issue 仍然成立,未发现重复修复 PR

    1. 修复前失败状态复核(实测证据)

    • Static Checks run #39537222726,lint job 第 13 步 “cargo audit (RustSec advisory DB)” conclusion = failure(2026-10-21T03:20:33Z);同 job 内 step 9(clippy)、step 10(rustfmt)、step 3–5(元数据 / workflows / CI contract 校验)全部 success——失败点唯一且正是本 Issue 所指门禁。
    • 在 main @ cd8109da579086447fa42285c6fef180a74d7b44 工作区实测:仓库共有 2 个 Cargo.lock,仅根 Cargo.lock(lockfile v4,8615 行)含受影响 crate,命中 4 个 package 块:
      • rustls-webpki 0.103.15(约 L5766)→ Issue 给定 patched:0.103.16
      • webpki-root-certs 1.0.7(约 L7816)→ Issue 给定 patched:1.0.10
      • webpki-roots 0.26.11(约 L7825)
      • webpki-roots 1.0.7(约 L7834)→ Issue 给定 patched:1.0.10
    • .cargo/audit.toml 已 ignore RUSTSEC-2023-0071(rsa)与 RUSTSEC-2026-0204(crossbeam-epoch),与本 Issue 的 4 个实例无关;修复应走 lockfile 升版本,不应通过新增 ignore 达标。
    • 门禁等价命令:workflow 先浅克隆 RustSec advisory-db 至 $HOME/.cargo/advisory-db,随后 make audit(≡ cargo audit --no-fetch)。

    2. 一个需要复核的高价值疑点(本轮新发现)
    CI 报 4 个 vulnerability 实例,而 Issue 给出的 patched 目标仅 3 处。本地 lockfile 中 webpki-roots 出现两次(0.26.11 与 1.0.7),与“4 实例 vs 3 升级目标”的差额吻合;若 RUSTSEC-2026-0381 的受影响范围同时覆盖 0.26.x 线,则仅升 1.0.7 → 1.0.10 不足以转绿,还需确认 0.26 线的 corresponding patched 版本。本轮后段沙箱执行器被平台解除绑定,advisory 受影响范围的本地核对未完成——此点标记为待核实,落地时以 cargo audit 实际输出为准(若 0.26.11 未被报告则维持 3 处升级即可)。

    3. 修复范围与实施方式(复核通过)

    • 仅 1 个文件(根 Cargo.lock),预估 ±6 行内(version + 对应新 checksum 更新),符合“每 PR ≤3 文件、±1000 行”约束。
    • 实施命令:cargo update -p [email protected] --precise 0.103.16、cargo update -p [email protected] --precise 1.0.10、cargo update -p [email protected] --precise 1.0.10,随后跑 make audit 与静态门禁 workflow 复核。

    4. 本轮阻塞与未完成项(如实记录,未运行的测试不作通过声明)

    • PR 发布受阻:本轮可用 GitHub 通道无代码推送权限(无法在用户 fork 建分支/提交,create_pull_request 仅能基于已有分支),故未建分支、未提交 PR。另记录:Astra 上游无 dev 分支,按仓库既有惯例修复 PR 目标应为 main,本轮未擅自发起。
    • 本地红→绿复测受阻:克隆与检仓完成后本地执行器失联,patched lockfile 生成与 make audit 通过性复测未能产出,故本条仅声明第 1、2 节实测事实,不声明“修复后通过”。
    • 独立 review 未运行:本轮运行面无可用评审子代理,待补。
    • 未自动合并、未关闭 Issue、未借用他人分支;与本仓库在途 PR(fix(cli): honor no-color across tool progress #1102、fix(runtime): scope tool-call identities and report persistence failures #1099)无交集,无重复交付。

    5. 交接
    assignee 维持 @XuPeng-SH;后续修复 PR 请请求 @XuPeng-SH 审阅。下一轮接续优先级:核对第 2 节疑点 → 生成补丁 → make audit 本地绿 → 独立 review → 提 PR(推送凭据仍缺失则继续如实记录)。

  2. MatrixAdventurer commented on Oct 21, 2026

    @MatrixAdventurer
    ContributorAuthor

    本条由 LW 授权的 MOI 智能体(自动化定时回访,运行时间 2026-10-22 00:30 CST)提交。

    本轮回访:修复已合入 main,全链路门禁已在 main 实测转绿,Issue 的预期结果已达成

    1. 修复交付与合入状态(实测读回)

    • 修复 PR #1104(fix(deps): update webpki crates for RustSec advisories,分支 fix/1103-rustsec-webpki)已于 2026-10-21T13:36:20Z 合入 main,merge commit b232c4a570daee85b96c195f6b4703cde9db8540,且当前 main HEAD 即为该提交(本轮实测,API 读回 commit 完整信息确认;后无更新 merge)。
    • 该修复即上一条评论第 3 节给出的实施范围(lockfile 升级 webpki 相关依赖),未采用新增 ignore 方案。

    2. CI 实测(均为本轮直接读回)

    • PR head 309c8ca:Static Checks run #39566600232 success(2026-10-21T08:15:04Z 完成,make audit 输出为全绿,含 cargo audit 门禁)。
    • main @ b232c4a(修复合入后):Static Checks run #39614003110 success(push 触发,14:07:05Z 启动,14:16:18Z 完成);Test Suite run #39614003031 success(14:31:13Z 完成);后续 build_push_to_idc run #39619070450 success。这些 run 由上游工作流以实时 RustSec advisory DB 执行,证明合入后的 main 在当前 advisory 数据下静态门禁完整通过——正是本 Issue 的 Expected 结果。
    • 对照:修复前 main(cd8109d)的同类静态门禁在 audit 步骤确定性失败(证据见本 Issue 描述与本线程上一条评论),即修复前失败/修复后通过均满足实测证据。

    3. 上一条评论第 2 节待核实点的处理("4 个 vulnerability 实例 vs 3 个升级目标;webpki-roots 0.26.11 是否需同步升级")

    • 本轮实证读回:合入后的 main 在实时 advisory DB 下执行全量锁定依赖扫描(此前同流程记录为加载 1,348 条 advisory、扫描 776 个锁定依赖)并通过;本仓库 .cargo/audit.toml 仅 ignore RUSTSEC-2023-0071(rsa)与 RUSTSEC-2026-0204(crossbeam-epoch),无其它豁免。因此在当前 advisory 数据下,合入形态要么不覆盖 0.26.x 线(3 处升级已足够),要么 0.26 线引用已在 309c8ca 的"版本限定引用同步"中一并处理;两种情形的门禁结论均为绿,无需追加修复。诚实说明:本轮运行面无代码克隆/执行器绑定,未重读合并后 Cargo.lock 的逐行文本以区分上述两种情形;该区分对门禁结果无影响,对减依赖(若 0.26.11 已移除)才可能有意义,不作为本 Issue 的关闭依据,留 @XuPeng-SH 审阅时如需再核。
    • 结论:增列 ignore 不必要、不再需要后续 PR;advisory DB 未来再刷新可能引入新公告,届时属新问题、应开新 Issue,本 Issue 范围到此收口。

    4. 交付边界与后续(如实记录)

  3. XuPeng-SH commented on Oct 22, 2026

    @XuPeng-SH
    Collaborator

    Resolved by merged PR #1104 (b232c4a), which updates the webpki dependencies for the reported RustSec advisories. The existing follow-up evidence records successful post-merge audit checks; no further implementation is needed for this report. Future advisory updates should be tracked separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions