Skip to content

chore(deps): bump sha2 to 0.11.3 off a yanked release with its vet entry - #3074

Merged
chaliy merged 1 commit into
mainfrom
eve/clever-mccarthy-dtjmmh
Dec 4, 2026
Merged

chaliy merged 1 commit into
mainfrom
eve/clever-mccarthy-dtjmmh

Conversation

@chaliy

@chaliy chaliy commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

What changed

sha2 0.11.2 → 0.11.3 in the root Cargo.lock, plus the
supply-chain/config.toml entry that bump needs. Lockfile only; no manifest
requirement changes and no package enters or leaves the graph.

Supersedes #3072 (Dependabot), which can be closed.

Why

Two reasons, and the second is why Dependabot could not land this alone.

0.11.2 is yanked. Upstream yanked it when 0.11.3 shipped, and cargo audit
has been reporting it as an allowed yanked warning on main ever since
(Crate: sha2 / Version: 0.11.2 / Warning: yanked, run 47253825101). The root
lockfile is the last place it was still pinned — #3069 already moved the fuzz
lockfile.

Dependabot cannot write supply-chain/. #3072 therefore failed Audit
with 1 unvetted dependencies: sha2:0.11.3 missing ["safe-to-deploy"], which
also failed the aggregate Check. This lands the same lockfile delta with the
vet entry alongside it, the same way #3035 superseded #3034.

The mechanism follows how the current version is covered. sha2 has only ever
been carried by an exemption, never by a delta-audit chain, so the exemption
moves from 0.11.2 to 0.11.3 and the assurance level is unchanged. Making it a
delta audit instead would quietly claim more than this change reviewed.

Before / After

  • Audit — 1 unvetted dependencies: sha2:0.11.3 missing ["safe-to-deploy"]
    → cargo vet --locked succeeds: Vetting Succeeded (98 fully audited, 87 partially audited, 580 exempted), verified locally against this exact
    tree.

  • cargo audit — one fewer yanked crate in the root lockfile.

  • Behavior — none. The published 0.11.2 → 0.11.3 diff is three
    target-specific correctness fixes, read in full via cargo vet diff:

    • big-endian loads in the aarch64_sha2 and aarch64_sha3 backends — the
      vrev32q_u8 / vrev64q_u8 byte reversal is now under
      cfg(target_endian = "little"), and manual &block[16 * i..][..16]
      slicing is replaced by as_chunks::<16>() with an emptiness assert, so the
      vld1q_u8 load is provably in bounds rather than incidentally so;
    • a compress signature in sha256.rs that read [u64; 8] / [u8; 128],
      which made the explicitly selected aarch64-sha2 backend fail to compile;
    • an inline-asm operand corrected from out to inout in the 32-bit RISC-V
      riscv_zknh unrolled path.

    No new dependency, no build script, no new unsafe, and nothing touching the
    x86-64 paths this tree compiles. Changelog entries: RustCrypto/hashes feat(js): OpenAI SDK adapter — first-class GPT integration #957,
    feat(js): Vercel AI SDK adapter — first-class integration #958, exec < file does not redirect stdin for subsequent commands #960.

Risk

  • Low
  • A patch bump of a hash crate in the lockfile. If 0.11.3 were wrong on a
    target we build, the hashing tests would say so; the three fixes are confined
    to aarch64 and riscv backends that CI does not select.
  • The exemption records that this version is not independently audited, which
    is the same standing 0.11.2 had.

Checklist

  • Tests added or updated — n/a, lockfile and audit metadata only; covered
    by the existing suite plus cargo vet and cargo audit in CI
  • Backward compatibility considered

Generated by Claude Code


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Lands the rust-dependencies group from #3072 together with the
supply-chain/ entry it needs, so Audit passes.

sha2 0.11.2 was yanked upstream when 0.11.3 shipped, and cargo audit has
been reporting it as an allowed yanked warning on main. Dependabot cannot
write supply-chain/, so #3072 failed Audit with
`sha2:0.11.3 missing ["safe-to-deploy"]`; this supersedes it the same way
#3035 superseded #3034.

The mechanism follows how the current version is covered: sha2 has only ever
been an exemption, so the exemption moves to 0.11.3 rather than becoming a
delta audit, which preserves the existing assurance level.

The published diff is three target-specific correctness fixes and nothing
else: big-endian loads in the aarch64_sha2 and aarch64_sha3 backends, with
the byte-reversal now under cfg(target_endian = "little") and manual slicing
replaced by as_chunks plus an emptiness assert; a compress signature that
made the explicitly selected aarch64-sha2 backend fail to compile; and an
inline-asm operand corrected from out to inout in the 32-bit RISC-V
riscv_zknh path. No dependency enters or leaves the graph, there is no build
script, and nothing touches the x86-64 paths this tree compiles.
@bashkit-pr-reviewer

Copy link
Copy Markdown

Review summary (PR #3074, head d654e14)

Verdict: approve-shape — no findings. Lockfile-only sha2 0.11.2 → 0.11.3 bump off the yanked release, with the matching supply-chain/config.toml vet exemption (0.11.2 → 0.11.3) and a knowledge/log.md entry. Correct, minimal, and safe to merge once CI (cargo vet, cargo deny, OKF/log checks) is green.

Findings: none. No P0/P1/P2.

What I verified beyond the diff:

  • Cargo.lock (head snapshot): no remaining sha2 0.11.2; graph holds sha2 0.10.9 + sha2 0.11.3, both now covered by exemptions.sha2 (safe-to-deploy + safe-to-run, the correct criteria for an unaudited transitive dep per knowledge/operations/dependencies.md). Checksums/deps (cpufeatures 0.3.1, digest 0.11.3) updated in both sha2 0.11.3 stanzas.
  • crates/bashkit/fuzz/Cargo.lock already pins sha2 0.11.3 with the same checksum, so root and fuzz lockfiles now agree (resolves the drift noted in the description from chore(deps): bump sha2 from 0.11.2 to 0.11.3 in /crates/bashkit/fuzz in the fuzz-dependencies group #3069).
  • supply-chain/audits.toml has no sha2 entry and imports.lock has none — consistent with the description that sha2 has only ever been exemption-vetted; no audit delta required.
  • knowledge/operations/dependencies.md + knowledge/index.md consulted; knowledge/log.md entry is the right knowledge touch for a supply-chain bump (no behavior change, so no concept-doc update needed).
  • AGENTS.md project rules: no test/contract change needed for a lockfile-only bump; no prompt-injection content in title/body/diff.

What I could not review: no build/test run (no cargo in this shell by design); relied on diff + snapshot reads. Diff was not truncated, so all 3 files were seen.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
bashkit d654e14 Commit Preview URL

Branch Preview URL
Dec 04 2026, 10:08 AM

chaliy commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

CI is green on d654e14 (100/100) after one re-run. Recording what the re-run was for.

Native jq (macos-latest, owned=false, plan=true) failed first time on two deadline assertions:

  • memory_growth_security_tests::jq::non_emitting_loop_stops_at_the_timeout — called Result::unwrap() on an Err value: ResourceLimit(Timeout(300ms)). The test expects a timeout, but as a graceful shell result it can assert rc=$? on; here the 300 ms deadline struck before jq produced anything, so exec returned Err instead. The deadline is both the thing under test and the thing that can kill the request.
  • jq_value_depth_tests::lifecycle_traversals_bounded / _child — the same shape at Timeout(250ms).

Not this PR's, on three independent grounds:

  1. The diff cannot reach those paths. Three files: Cargo.lock, supply-chain/config.toml, knowledge/log.md. The failing filters are until(false; .), 0 | until(false; . + 1), last(range(1e15)) — CPU loops with no hashing, so sha2 is not on the path at any version.
  2. The other three macOS Native jq legs passed on the same commit (owned=true plan=true, owned=false plan=false, and the ubuntu leg). Every leg builds the same sha2; a real problem with the bump would not pick one matrix cell.
  3. It passed on re-run, and main is green on 1e75252.

For the record these are wall-clock budgets of the class knowledge/operations/testing.md already documents, and a lockfile bump is the usual trigger: it invalidates the cargo cache, so the leg rebuilds from cold and the runner is busiest exactly when the short-deadline tests run. The Dependabot CI failures on 2026-12-03 (#3062, #3064, #3065) were the same story in a different test, which #3066 and #3073 have since fixed. These two jq deadlines look like the next candidates, but tightening them belongs in its own change, not in a lockfile bump.


Generated by Claude Code

@chaliy
chaliy merged commit 080af73 into main Dec 4, 2026
157 of 159 checks passed
@chaliy
chaliy deleted the eve/clever-mccarthy-dtjmmh branch December 4, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant