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

Skip to content

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

Merged
bryan-minimal merged 2 commits into
mainfrom
nickel-lsp-lock-patch-quinn-0523
Nov 25, 2026
Merged

bryan-minimal merged 2 commits into
mainfrom
nickel-lsp-lock-patch-quinn-0523

Conversation

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

Regenerates packages/nickel-lsp/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-lsp --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.19.0 and aws-lc-sys 0.47.0 are unchanged):

  • 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

< 8000 /path>

…9, RUSTSEC-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

Warning

Review limit reached

  • Run on-demand review

This review includes 2 billable files and costs up to $0.50.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Or wait 59 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 61 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

Commits

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

Files selected for processing: 2

  • packages/nickel-lsp/build.sh
  • packages/nickel-lsp/security-floors-lock.patch
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@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-lsp (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 ff7508b087db68b58111925128841f3c3152103c91b7864dab153742fc4f183d), 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-lsp/security-floors-lock.patch (sha256 ff7508b087db68b58111925128841f3c3152103c91b7864dab153742fc4f183d)
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-lsp -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-lsp -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-lsp -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-lsp/git)
                │               │   └── nickel-lang-git feature "default" (command-line)
                │               │       └── nickel-lang-package v0.8.0 (/tmp/src-nickel-lsp/package)
                │               │           └── nickel-lang-package feature "default" (command-line)
                │               └── nickel-lang-package v0.8.0 (/tmp/src-nickel-lsp/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-lsp 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

8000 @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 # >>> pkgmgr lock-patch block in build.sh and security-floors-lock.patch. build.ncl is untouched and base-lock-sha256 is unchanged.

Clobber one conflict. The regeneration drops the webpki-root-certs 1.0.7 -> 1.0.10 move that #953 added. The hand-kept CVE-2026-111943 gate below the generated block (build.sh:74-78) still refuses webpki-root-certs 1.0.x with a one-digit patch version. The build will stop at that gate. See the finding.

Correctness I checked the hunk headers of each new or changed patch hunk by hand (form_urlencoded, quinn-proto, quinn-udp, rustix, rustls-webpki, syn, url, and the last windows-sys hunk). The line counts and the cumulative offsets agree. The four new or changed floor regexes (quinn-proto 0.11.19, quinn-udp 0.5.16, rustix 1.1.6, url 2.5.9) reject each version below the floor and accept the locked version. The header lists rustls-webpki as a floor to 0.103.16 and as a companion to 0.103.17. The lock ends at 0.103.17, which passes both gates.

Not checked I did not build the package. I did not run the kept gate against the real patched Cargo.lock, because the sandbox denied the command. I read the regex and the lock entry instead. I did not confirm the crates.io checksums or the tool's claim that no Linux target compiles webpki-root-certs. The unresolved heapless 0.8.0 entry (RUSTSEC-2026-0574 to 0582) stays open and needs a person, as the PR body says.

Comment thread packages/nickel-lsp/build.sh Resolved
…10 floor 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-lsp --advisory-source osv`
on image 088f1fc-sc3869a25.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bryan-minimal
bryan-minimal added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit ee0fbd3 Nov 25, 2026
16 checks passed
@bryan-minimal
bryan-minimal deleted the nickel-lsp-lock-patch-quinn-0523 branch November 25, 2026 23:06
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