Skip to content

ci: bump rustls to 0.23.46 and ignore the new webpki advisories - #10193

Merged
Xuanwo merged 1 commit into
lance-format:mainfrom
twmb:twmb/rustls-advisories
Oct 21, 2026
Merged

Xuanwo merged 1 commit into
lance-format:mainfrom
twmb:twmb/rustls-advisories

Conversation

@twmb

@twmb twmb commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

rustls 0.23.46 fixes RUSTSEC-2026-0346 to 0349, which #9985 ignored while
0.23.46 was under 48 hours old. It is old enough now, so this bumps rustls
from 0.23.45 to 0.23.46 in all three lockfiles and removes those four ignores.

This also ignores RUSTSEC-2026-0381 (webpki-roots) and RUSTSEC-2026-0382
(rustls-webpki). The fixes are webpki-roots 1.0.10 and rustls-webpki 0.103.16,
which turn 48 hours old on 2026-10-21 20:11 UTC and 2026-10-22 08:58 UTC. The
examples also pull in webpki-roots 0.26.11 through hf-hub 0.4. It has no
patched release and only re-exports 1.x, so the 0381 ignore stays after the
1.x bump. RUSTSEC-2026-0383 (webpki-root-certs) needs no ignore: only
rustls-platform-verifier uses it, on wasm32, which deny.toml does not check.

Changelog

None.

rustls 0.23.46 fixes RUSTSEC-2026-0346 to 0349, which lance-format#9985 ignored
while 0.23.46 was under 48 hours old. It is old enough now, so this
bumps rustls from 0.23.45 to 0.23.46 in all three lockfiles and removes
those four ignores.

This also ignores RUSTSEC-2026-0381 (webpki-roots) and RUSTSEC-2026-0382
(rustls-webpki). The fixes are webpki-roots 1.0.10 and rustls-webpki
0.103.16, which turn 48 hours old on 2026-10-21 20:11 UTC and
2026-10-22 08:58 UTC. The examples also pull in webpki-roots 0.26.11
through hf-hub 0.4. It has no patched release and only re-exports 1.x,
so the 0381 ignore stays after the 1.x bump.

RUSTSEC-2026-0383 (webpki-root-certs) needs no ignore: only
rustls-platform-verifier uses it, on wasm32, which deny.toml does not
check.

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@github-actions github-actions Bot added A-python Python bindings A-java Java bindings + JNI A-deps Dependency updates ci Github Action or Test issues labels Oct 21, 2026

@lance-gatekeeper lance-gatekeeper Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Gate recommendation: approve with a non-blocking risk.

The rustls update and removal of its four advisory exceptions are supported. Keep the new webpki exceptions temporary and apply the verifier/root fixes once they meet the 48-hour policy.

Comment thread deny.toml
Comment on lines +89 to +90
{ id = "RUSTSEC-2026-0381", reason = "fixed `webpki-roots` 1.0.10 is under 48 hours old, cannot upgrade due to our release age policy; 0.26.11 comes from hf-hub 0.4 in examples and only re-exports 1.x" },
{ id = "RUSTSEC-2026-0382", reason = "fixed `rustls-webpki` 0.103.16 is under 48 hours old, cannot upgrade due to our release age policy" },

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

These exceptions retain a TLS authentication risk: RustSec reports that the affected verifier may accept paths through emSign intermediates whose private keys are now known, when the configured roots permit that path. The vulnerable dependency versions are unchanged here, so this is a non-blocking residual risk. The follow-up mitigation is webpki-roots 1.0.10 after 2026-10-21 20:11:32 UTC and rustls-webpki 0.103.16 after 2026-10-22 08:58:28 UTC; the latter rejects these paths even with older roots.

@lance-gatekeeper lance-gatekeeper Bot added K-approved Latest Gatekeeper recommendation permits acceptance. K-risk Latest Gatekeeper recommendation includes a non-blocking risk. labels Oct 21, 2026
@Xuanwo
Xuanwo merged commit cab6d44 into lance-format:main Oct 21, 2026
Xuanwo added a commit to sarwarbhuiyan/lance that referenced this pull request Oct 22, 2026
…main

Main bumped rustls 0.23.46 and the trust-store pins (webpki-roots and
webpki-root-certs 1.0.10, rustls-webpki 0.103.16) in lance-format#10193 and lance-format#10215;
this PR's lockfile predates those changes, so cargo-deny fails on
RUSTSEC-2026-0381/0382. Mirror the same root lockfile pins, deny.toml
ignores, and dependency-age allowlist entries.
@twmb
twmb deleted the twmb/rustls-advisories branch October 22, 2026 18:41
twmb added a commit to twmb/lance that referenced this pull request Oct 22, 2026
lance-format#9985 ignored four rustls advisories until the fix was 48 hours old, as
ci/check_dependency_age.py requires. Nothing brought us back once the
fix was old enough, and rustls stayed on the vulnerable 0.23.45 for a
week, until lance-format#10193.

Every advisory ignore's reason now starts with `expires YYYY-MM-DD:` or
`no fix:`. ci/check_advisory_ignores.py runs in the cargo-deny job and
fails on a reason without a marker, a malformed date, or an expires day
(UTC) that has passed. deny.toml also sets unused-ignored-advisory =
"deny", so cargo-deny fails on an ignore that no longer matches a crate.

The existing reasons are rewritten from the advisories and Cargo.lock.
The quick-xml one was stale: object_store and opendal are on 0.41 now,
and what remains is lance-namespace-impls asking for 0.40 and pprof's
inferno pulling in 0.26. The RUSTSEC-2026-0381 and 0382 ignores match
nothing now, so they are removed: lance-format#10215 moved rustls-webpki to the
fixed 0.103.16, and the advisory lists webpki-roots 0.26.11, which only
re-exports 1.x, as unaffected.

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
westonpace pushed a commit that referenced this pull request Oct 22, 2026
#9985 ignored four rustls advisories until the fix was 48 hours old.
Nothing brought us back once the fix was old enough, and rustls stayed
on the vulnerable 0.23.45 for a week, until #10193. This makes CI fail
when an advisory ignore outlives its reason.

- Every `[advisories] ignore` reason in `deny.toml` must start with
`expires YYYY-MM-DD:` (an ignore we expect to drop, about a week out for
a fix waiting on the 48 hour rule) or `no fix:` (nothing to upgrade to).
- `ci/check_advisory_ignores.py` runs in the cargo-deny job. It fails on
a missing marker, a malformed date, or an `expires` date (UTC) that has
passed, and says to upgrade and remove the ignore or move the date with
a reason.
- `unused-ignored-advisory = "deny"` makes cargo-deny fail on an ignore
that no longer matches any crate.
- The existing reasons are rewritten from the advisories and
`Cargo.lock`. The quick-xml one was stale: object_store and opendal now
use 0.41, and the remaining copies come from lance-namespace-impls
(0.40) and pprof's inferno (0.26).
- #10215 moved to the fixed rustls-webpki 0.103.16 and webpki-roots
1.0.10, so the RUSTSEC-2026-0381 and 0382 ignores no longer match any
crate and are removed. The webpki versions from #10215 are past the 48
hour rule now, so their `ci/dependency-age-allowlist.toml` entries are
removed too.
- While at it, this moves rust/examples to hf-hub 0.5.0 and tokenizers
0.22.2, because that drops the number_prefix ignore and the webpki-roots
0.26 shim. hf-hub now uses only its `ureq` feature, which also drops
native-tls and openssl from `Cargo.lock`.
- Also while at it, rust/examples enables parquet's `snap` feature,
because `llm_dataset_creation` failed reading the snappy-compressed
wikitext files with "Disabled feature at compile time: snap".

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-deps Dependency updates A-java Java bindings + JNI A-python Python bindings ci Github Action or Test issues K-approved Latest Gatekeeper recommendation permits acceptance. K-risk Latest Gatekeeper recommendation includes a non-blocking risk.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants