8000 nickel: regenerate security-floors lock patch (quinn-proto 0.11.19, RUSTSEC-2026-0523/0524) by bryan-minimal · Pull Request #1668 · gominimal/pkgs · GitHub
[go: up one dir, main page]

Skip to content

nickel: regenerate security-floors lock patch (quinn-proto 0.11.19, RUSTSEC-2026-0523/0524) - #1668

Open
bryan-minimal wants to merge 2 commits into
mainfrom
nickel-lock-patch-quinn-0523
Open

bryan-minimal wants to merge 2 commits into
mainfrom
nickel-lock-patch-quinn-0523

Conversation

@bryan-minimal
@bryan-minimal bryan-minimal commented Nov 24, 2026 •
Copy link
Copy Markdown
Member

Regenerates packages/nickel/security-floors-lock.patch and the delimited # >>> pkgmgr lock-patch block in build.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

  • Image: 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.
  • Command: pkgmgr --pkgs-path /workspace/pkgs lock-patch nickel --advisory-source osv --out /workspace/out. It ran in Cloud Build against pkgs main 211d755e, using the image's resolution-only cargo 1.98.1 (PKGMGR_CARGO=/opt/rust-resolve/bin/cargo).
  • Advisory source: OSV.dev.
  • The patch and the build.sh block are byte-for-byte what the tool emitted, with no hand edits. base-lock-sha256 is unchanged (2fdafec3…3ec2), so upstream's Cargo.lock is the same. build.ncl is untouched.
  • The run printed no REGRESSION line. It exited 2, which means some floors need a human. They are listed below.

Floors vs the current patch

crate current patch this PR advisories
quinn-proto 0.11.16 -> 0.11.18 0.11.16 -> 0.11.19 adds RUSTSEC-2026-0523, RUSTSEC-2026-0524
quinn-udp none 0.5.14 -> 0.5.16 RUSTSEC-2026-0538 (new)
rustix none 1.1.4 -> 1.1.6 RUSTSEC-2026-0486 (new)
url none 2.5.7 -> 2.5.9 RUSTSEC-2026-0592 (new)
webpki-root-certs 1.0.7 -> 1.0.10 kept at 1.0.10 RUSTSEC-2026-0383

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:

  • aws-lc-rs 1.18.2 -> 1.19.0
  • aws-lc-sys 0.46.0 -> 0.47.0
  • rustls-webpki ends at 0.103.17 (floor 0.103.16)
  • form_urlencoded 1.2.2 -> 1.2.3 (new)
  • the added syn 3.x is now 3.0.10 (was 3.0.9)

The mio, signal-hook-mio and socket2 companions that carry the tokio floor are unchanged.

Needs a human review

  • webpki-root-certs stays floored at 1.0.10. The first regeneration dropped it as a crate no Linux target builds, and the CA-distrust check in build.sh then rejected the lock. Since gominimal/pkgmgr-rs#1367, a crate with a [[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.
  • New unresolved entry: heapless 0.8.0 (RUSTSEC-2026-0574 through 0582). cargo refused the move because faster-hex 0.10.1 requires heapless = "^0.8".
  • Unresolved entries carried over unchanged: bitmaps 3.2.1 (no fixed release), imbl-sized-chunks 0.1.3, and quick-xml 0.26.0 and 0.38.3.
  • The companions are resolution-only. The build-bot build is what proves the result compiles.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Security
    • Updated minimum supported versions for several dependencies. Builds now stop with an error if those dependencies fall below the required versions.
  • Maintenance
    • Updated locked dependency versions and related dependency relationships.

…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>
@bryan-minimal
bryan-minimal requested a review from a team as a code owner November 24, 2026 00:37
@coderabbitai
coderabbitai Bot commented Nov 24, 2026 •
Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Nickel build script now enforces updated security floors for several dependencies. The lock patch updates matching dependency versions and related dependency links, and records companion-version and unresolved-advisory notes.

Changes: Nickel security floors

Layer / File(s) Summary
Security floor checks and metadata
packages/nickel/build.sh, packages/nickel/security-floors-lock.patch
The build script raises the quinn-proto floor and adds checks for quinn-udp, rustix, and url. The patch metadata records these floors, companion versions, and unresolved advisories.
Locked dependency updates
packages/nickel/security-floors-lock.patch
The lock patch updates dependency versions and checksums, including aws-lc-rs, Quinn, Rustix, Tokio, and URL. It also changes dependency links and adds or updates defmt and syn entries.

Estimated code review effort: 2 (Simple) | ~12 minutes

Suggested reviewers: mitodrummer, norrietaylor

Merge Risk: Minimal · up to 72155

This change raises security floors for several Nickel dependencies and updates the matching lock entries. No concrete merge-blocking problem was identified. The build-bot build should confirm that it compiles.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: regenerating the Nickel security-floors lock patch to raise quinn-proto to 0.11.19 for RUSTSEC-2026-0523/0524. The raw summary and PR objectives both confirm this is t…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: regenerating the Nickel security-floors lock patch to raise quinn-proto to 0.11.19 for RUSTSEC-2026-0523/0524. The raw summary and PR objectives both confirm this is the core change. The title is specific and concise, and it does not use vague terms.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 211d755 and 721554d.

Files selected for processing: 2

  • packages/nickel/build.sh
  • packages/nickel/security-floors-lock.patch

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

@bryan-minimal
Copy link
Copy Markdown
Member Author

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 x86_64-unknown-linux-gnu and aarch64-unknown-linux-gnu. That holds for -p nickel-lang-cli (what build.sh builds, default features) and for the whole workspace, even with dev edges included (-e all). The --target all -e all --workspace control below shows the only path to it, which proves the spec matches the locked crate. The path runs rustls-platform-verifier → reqwest → gix. Two independent conditions keep it out of the Linux build:

  1. Only the [dev-dependencies] of nickel-lang-git / nickel-lang-package enable the gix TLS feature (blocking-http-transport-reqwest-rust-tls). That feature is what pulls in rustls-platform-verifier.
  2. Even with dev edges, the crate is absent on Linux (the last command, --target x86_64-unknown-linux-gnu -e all --workspace). The rustls-platform-verifier → webpki-root-certs edge applies only to non-Linux targets.

So the "not built for Linux" classification is correct.

How it was run:

  • Where: Cloud Build 8486689e-905c-482d-b11b-b0bb7a5db02e, in image pkgmgr:75650ac-scb6741ff, using its resolution-only cargo 1.98.1 (/opt/rust-resolve). Nothing was built.
  • Source: https://github.com/nickel-lang/nickel/archive/refs/tags/1.18.0.tar.gz, sha256 ddcac136…b2d5 verified, extracted into a fresh dir with rust-toolchain* removed.
  • Patch: this PR's security-floors-lock.patch (sha256 981336bef8bfaca114af01aa00b35a94346cc3b8f751f2098d3c8c1c214f0578), applied with git apply.
  • Log filtering: I removed cargo's Downloaded … / Updating crates.io index progress lines and trimmed one long tree. Everything else is verbatim.
patch: /workspace/pkgs/packages/nickel/security-floors-lock.patch (sha256 981336bef8bfaca114af01aa00b35a94346cc3b8f751f2098d3c8c1c214f0578)
Checking patch Cargo.lock...
Applied patch Cargo.lock cleanly.
name = "webpki-root-certs"
version = "1.0.7"

$ /opt/rust-resolve/bin/cargo tree --locked --target x86_64-unknown-linux-gnu -e normal,build -p nickel-lang-cli -i webpki-root-certs
error: package ID specification `webpki-root-certs` did not match any packages
[exit 101]

$ /opt/rust-resolve/bin/cargo tree --locked --target x86_64-unknown-linux-gnu -e normal,build --workspace -i webpki-root-certs
warning: nothing to print.

To find dependencies that require specific target platforms, try to use option `--target all` first, and then narrow your search scope accordingly.
[exit 0]

$ /opt/rust-resolve/bin/cargo tree --locked --target aarch64-unknown-linux-gnu -e normal,build -p nickel-lang-cli -i webpki-root-certs
error: package ID specification `webpki-root-certs` did not match any packages
[exit 101]

$ /opt/rust-resolve/bin/cargo tree --locked --target aarch64-unknown-linux-gnu -e normal,build --workspace -i webpki-root-certs
warning: nothing to print.

To find dependencies that require specific target platforms, try to use option `--target all` first, and then narrow your search scope accordingly.
[exit 0]

--- negative control: all targets (expect a path, proving the spec matches)
$ /opt/rust-resolve/bin/cargo tree --locked --target all -e normal,build -p nickel-lang-cli -i webpki-root-certs
error: package ID specification `webpki-root-certs` did not match any packages
[exit 101]

$ /opt/rust-resolve/bin/cargo tree --locked --target all -e normal,build --workspace -i webpki-root-certs
warning: nothing to print.

To find dependencies that require specific target platforms, try to use option `--target all` first, and then narrow your search scope accordingly.
[exit 0]

$ /opt/rust-resolve/bin/cargo tree --locked --target all -e all --workspace -i webpki-root-certs
webpki-root-certs v1.0.7
└── webpki-root-certs feature "default"
    └── rustls-platform-verifier v0.7.0
        └── rustls-platform-verifier feature "default"
            └── reqwest v0.13.4
                ├── reqwest feature "__rustls"
                │   └── reqwest feature "rustls"
                │       └── gix-transport feature "http-client-reqwest-rust-tls"
                │           └── gix feature "blocking-http-transport-reqwest-rust-tls"
                │               [dev-dependencies]
                │               ├── nickel-lang-git v0.3.0 (/tmp/src-nickel/git)
                │               │   └── nickel-lang-git feature "default" (command-line)
                │               │       └── nickel-lang-package v0.8.0 (/tmp/src-nickel/package)
                │               │           └── nickel-lang-package feature "default" (command-line)
                │               └── nickel-lang-package v0.8.0 (/tmp/src-nickel/package) (*)
                ├── reqwest feature "__rustls-aws-lc-rs"
… (rest of the inverse tree trimmed: more reqwest/gix feature edges into nickel-lang-git / nickel-lang-package)
[exit 0]

$ /opt/rust-resolve/bin/cargo tree --locked --target x86_64-unknown-linux-gnu -e all --workspace -i webpki-root-certs
warning: nothing to print.

To find dependencies that require specific target platforms, try to use option `--target all` first, and then narrow your search scope accordingly.
[exit 0]

A did not match any packages result with -p nickel-lang-cli means the crate is not in that member's dependency graph at all. With --workspace, nothing to print means the same for the whole workspace on that target.

🤖 Generated with Claude Code

@norrietaylor norrietaylor left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread packages/nickel/build.sh Outdated
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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@norrietaylor norrietaylor left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

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.

2 participants

0