Repository navigation
nickel: regenerate security-floors lock patch (quinn-proto 0.11.19, RUSTSEC-2026-0523/0524) - #1668
bryan-minimal wants to merge 2 commits into
Conversation
…USTSEC-2026-0523/0524) Regenerated with pkgmgr lock-patch (image 75650ac-scb6741ff, --advisory-source osv); patch and build.sh block are exactly as the tool emitted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
webpki-root-certs is not reachable on Linux (resolution-only check)This checks that the new patch can safely drop the webpki-root-certs floor (RUSTSEC-2026-0383). The crate is unreachable on
So the "not built for Linux" classification is correct. How it was run:
A 🤖 Generated with Claude Code |
There was a problem hiding this comment.
Scope matches the title. The diff touches only the generated block in packages/nickel/build.sh and packages/nickel/security-floors-lock.patch. Clobber one item: the patch no longer moves webpki-root-certs to 1.0.10, which #953 added for CVE-2026-111943. The PR body states this openly. Correctness one finding. The guard at build.sh:74-78 is outside the generated block and still rejects webpki-root-certs 1.0.0 to 1.0.9. The lock now keeps 1.0.7, so the build stops there before cargo build. The new floor regexes for quinn-proto, quinn-udp, rustix and url are correct for their floors. The hunk offsets in the patch are consistent with the added lines. No secrets and no leftover narration. Not checked: whether nickel's Linux build compiles webpki-root-certs (needs cargo tree), the crate checksums, and whether the patched lock compiles. All three need a build or the registry.
| export RUSTFLAGS="-C linker=gcc" | ||
|
|
||
| # >>> pkgmgr lock-patch (generated; regenerate with `pkgmgr lock-patch nickel`, never edit) | ||
| # not floored (unreachable): webpki-root-certs 1.0.7 RUSTSEC-2026-0383 |
There was a problem hiding this comment.
medium · The patch no longer moves webpki-root-certs, so the patched Cargo.lock keeps 1.0.7. The guard at lines 74-78 is outside the generated block and still rejects webpki-root-certs 1.0.0 to 1.0.9. The build exits 1 with "a pre-CVE-2026-111943 rustls-webpki / webpki-roots is still in Cargo.lock" before cargo build runs. The two policies contradict each other. Either keep the 1.0.10 floor for this crate, or narrow that guard in the same change with proof that the Linux build never compiles the crate. I did not run cargo tree, so the "unreachable" claim is not verified here. This is one instance: no other package has a not floored line, but about 20 packages carry the same guard and the next regeneration can hit it.
There was a problem hiding this comment.
Fixed in 721554d by keeping the floor. pkgmgr-rs#1367 makes a crate named by a [[floor]] override floored whatever builds it, so the regenerated patch moves webpki-root-certs 1.0.7 -> 1.0.10 again (header line # floor: webpki-root-certs 1.0.7 -> 1.0.10 (RUSTSEC-2026-0383)). I ran the check at build.sh:74-78 against the patched Cargo.lock the generator wrote, and it passes. The quinn-proto 0.11.19 move is unchanged.
…loor kept pkgmgr-rs#1367: a crate with a [[floor]] override is floored whatever builds it, so the patch moves webpki-root-certs 1.0.7 -> 1.0.10 again (CVE-2026-111943) and the CA-distrust check in build.sh passes on the patched lock. Generated by `pkgmgr lock-patch nickel --advisory-source osv` on image 088f1fc-sc3869a25. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Scope matches the title. The diff changes only the generated block in packages/nickel/build.sh and packages/nickel/security-floors-lock.patch. build.ncl and the hand-written guard at build.sh:77-81 are untouched.
Clobber none. git log on packages/nickel shows only the two commits of this PR after #1364. The webpki-root-certs 1.0.10 floor that the first commit dropped is present again at the head, so the resolved thread stays closed.
Correctness Each new guard regex matches its floor: quinn-proto 0.11.19, quinn-udp 0.5.16, rustix 1.1.6, url 2.5.9. Each patched version in the patch body agrees with its header line. The hunk offsets that this PR changed are consistent with the line counts of the new hunks. rustls-webpki 0.103.17 passes both the generated guard and the hand-written guard. One finding: packages/nickel-lsp uses the same upstream Cargo.lock and still locks quinn-proto 0.11.18.
Not checked I did not apply the patch to the upstream Cargo.lock, because the sandbox denied the download and the script run. I did not verify the crate checksums against crates.io, or the advisory identifiers against OSV. I did not compile. The build-bot build is the proof that the companions compile.
| # floor: quinn-proto 0.11.16 -> 0.11.18 (RUSTSEC-2026-0338, RUSTSEC-2026-0339, RUSTSEC-2026-0340, RUSTSEC-2026-0341, RUSTSEC-2026-0342) | ||
| # floor: quinn-proto 0.11.16 -> 0.11.19 (RUSTSEC-2026-0338, RUSTSEC-2026-0339, RUSTSEC-2026-0340, RUSTSEC-2026-0341, RUSTSEC-2026-0342, RUSTSEC-2026-0523, RUSTSEC-2026-0524) | ||
| # floor: quinn-udp 0.5.14 -> 0.5.16 (RUSTSEC-2026-0538) | ||
| # floor: rustix 1.1.4 -> 1.1.6 (RUSTSEC-2026-0486) |
There was a problem hiding this comment.
medium · This PR moves quinn-proto to 0.11.19 for nickel only. packages/nickel-lsp builds from the same upstream Cargo.lock (same base-lock-sha256 2fdafec3…3ec2). Its patch still locks quinn-proto 0.11.18, and its build.sh:41-42 guard still accepts 0.11.18. It also has no floor for quinn-udp (RUSTSEC-2026-0538), rustix (RUSTSEC-2026-0486) or url (RUSTSEC-2026-0592). So nickel-lsp continues to ship the versions that this PR calls vulnerable. Run pkgmgr lock-patch nickel-lsp in this PR, or name the follow-up PR in the body. This is one sibling, not a wider pattern: uv is already at 0.11.19, and no other package floors quinn-proto. I did not check whether the nickel-lsp binary compiles these crates.
Regenerates
packages/nickel/security-floors-lock.patchand the delimited# >>> pkgmgr lock-patchblock inbuild.sh. The new patch covers quinn-proto RUSTSEC-2026-0523 and RUSTSEC-2026-0524, both fixed in 0.11.19. The patch it replaces predates those advisories.How it was generated
us-west1-docker.pkg.dev/minimal-pkgsec/pkgsec/pkgmgr:75650ac-scb6741ff. It includes pm#1353, which fixes the tokio/mio conflict unlock and makes a regeneration that gives up a carried floor fail closed.pkgmgr --pkgs-path /workspace/pkgs lock-patch nickel --advisory-source osv --out /workspace/out. It ran in Cloud Build against pkgs main211d755e, using the image's resolution-only cargo 1.98.1 (PKGMGR_CARGO=/opt/rust-resolve/bin/cargo).base-lock-sha256is unchanged (2fdafec3…3ec2), so upstream's Cargo.lock is the same. build.ncl is untouched.REGRESSIONline. It exited 2, which means some floors need a human. They are listed below.Floors vs the current patch
These floors are unchanged: anyhow, crossbeam-epoch, cxx, faster-hex, h2, memmap2, rustls, rustls-webpki, and tokio (1.51.6, RUSTSEC-2026-0386). The build.sh check for tokio is still there.
Companion changes:
The mio, signal-hook-mio and socket2 companions that carry the tokio floor are unchanged.
Needs a human review
[[floor]]override is floored whatever builds it, so the patch was regenerated on image 088f1fc-sc3869a25 and moves it to 1.0.10 again. The build.sh check passes on the patched lock.heapless = "^0.8".🤖 Generated with Claude Code
Summary by CodeRabbit