Repository navigation
chore(deps): bump vulnerable rust packages (rustls, hickory-resolver) - #11828
Merged
Merged
Conversation
Fixes GHSA-2mjx-qc3c-rqvc (Dependabot alerts #630, #634). Raises the floor in both Cargo.toml and bazel/rust.MODULE.bazel. The Bazel lock moves from 0.23.27, the Cargo lock from 0.23.37. rustls >= 0.23.44 requires aws-lc-rs ^1.18, so this also bumps aws-lc-rs 1.17.3 -> 1.18.1, aws-lc-sys 0.43.0 -> 0.45.0 and rustls-webpki 0.103.13 -> 0.103.15. cargo update -p rustls --precise 0.23.45 ./bin/bazel-pin.sh rustls=0.23.45 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fixes GHSA-5j98-2g5x-46v6, GHSA-6w6g-hm98-mhgm and GHSA-6f2x-v7q7-m7m5 (Dependabot alerts #627-#629, #631-#633). Uses 0.26.3 rather than the advisories' first patched 0.26.2. 0.26.2 declares hickory-net ^0.26.0 but does not compile against hickory-net 0.26.1 (hickory-dns#3881), and `--precise 0.26.2` keeps hickory-net at 0.26.1. 0.26.3 moves hickory-net and hickory-proto along with it. In the Bazel lock, hickory 0.26.3 also requires resolv-conf ^0.7.6 and ipnet ^2.11, which drops hostname 0.3.1 and match_cfg. cargo update -p hickory-resolver --precise 0.26.3 ./bin/bazel-pin.sh hickory-resolver=0.26.3 Co-Authored-By: Claude Opus 5.5 <[email protected]>
hickory >= 0.26.2 turns DNSSEC-bogus answers into lookup errors (the fix for GHSA-5j98-2g5x-46v6; 0.26.1 returned them as Ok). 0.26.2/0.26.3 also have an open regression from the GHSA-6w6g-hm98-mhgm fix, hickory-dns#3963: validated lookups fail when two or more concurrently queried nameservers send truncated replies. That is routine for the DNSKEY sets of .io/.org/.systems/.network. ic-bn-lib's default resolver validates and queries six public resolvers. A PocketIC HTTP gateway forwarding to e.g. https://icp-api.io therefore failed in its spawned setup task and never served. Pass --dns-dnssec-disabled and build the resolver from the parsed CLI options. That matches the previous effective behaviour, because bogus results were ignored. A TODO tracks dropping the flag once a hickory release includes hickory-dns#4062. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The broad TLS/DNS dependency upgrade affects security-sensitive and cross-platform native code, with full CI still pending.
0 open findings
What changed in this PR
Updates vulnerable Rust TLS and DNS dependencies while preserving PocketIC gateway behavior.
Changes:
- Upgrades rustls and hickory packages with required transitive dependencies.
- Synchronizes Cargo and Bazel dependency floors and lockfiles.
- Disables DNSSEC validation for PocketIC gateways pending the upstream fix.
| File | Description |
|---|---|
Cargo.toml |
Raises dependency floors. |
Cargo.lock |
Updates Cargo resolutions. |
Cargo.Bazel.toml.lock |
Updates Bazel package resolutions. |
Cargo.Bazel.json.lock |
Regenerates Bazel crate metadata. |
bazel/rust.MODULE.bazel |
Aligns Bazel dependency floors. |
rs/pocket_ic_server/src/state_api/state.rs |
Applies the DNSSEC workaround. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
pierugo-dfinity
approved these changes
Oct 12, 2026
rzakrzyk
approved these changes
Oct 12, 2026
basvandijk
pushed a commit
to Ocheretovich/ic
that referenced
this pull request
Oct 23, 2026
…nity#11896) Disables DNSSEC validation in the `ic-gateway` that runs as a sidecar on all-in-one (cloud engine) nodes, by setting `DNS_DNSSEC_DISABLED=true` in the shipped `ic-os/components/guestos/share/ic-gateway.env`. hickory >= 0.26.2 fails DNS lookups when answers are falsely marked as DNSSEC-bogus (hickory-dns/hickory-dns#3963). We're on hickory-resolver 0.26.3. PocketIC already disables DNSSEC in its gateway for the same reason (dfinity#11828). The orchestrator overlays only the engine-specific settings (ACME, domains, DNS provider) on top of this file, so the flag applies to every all-in-one node. This is temporary: revert it once we're on a hickory-dns release that includes hickory-dns/hickory-dns#4062.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Resolves the 8 open cargo Dependabot alerts, which are filed against
Cargo.lockandCargo.Bazel.toml.lock.The new versions force these transitive bumps:
Notes:
Cargo.tomlandbazel/rust.MODULE.bazel. This keeps the two builds aligned and stops them from regressing into the vulnerable ranges.CI_ALL_BAZEL_TARGETS.hickory-net ^0.26.0but does not compile against hickory-net 0.26.1 (Compilation errors hickory-dns/hickory-dns#3881).cargo update --precise 0.26.2keeps hickory-net at 0.26.1.Ok.forward_to: Replica("https://icp-api.io")hung inPOST /http_gateway, becausesetup_router(...).unwrap()panicked in the spawned task.--dns-dnssec-disabled. That matches the previous effective behaviour, since bogus results were ignored. A TODO tracks dropping the flag once a hickory release includes resolver: retry over TCP when a late concurrent UDP response is truncated hickory-dns/hickory-dns#4062.IC_URLis an IP literal.How regenerated
./bin/bazel-pin.sh <crate>=<version>runscargo update --package <crate> --precise <version>. The script's<crate>@<version>form is only a package-ID spec, not--precise.Test plan
cargo update --workspace && ./bin/bazel-pin.shis a no-op ("Locking 0 packages", "Nothing to repin."). This mirrors CI's lock-generate.cargo check --all-targets --all-features -p pocket-ic-server,cargo fmtand./ci/scripts/rust-lint.shbazel run //bazel:buildifier.checkbazel build //... --nobuild: clean except the known host-only@libvirtrepobazel build //rs/pocket_ic_server:pocket-ic-server: the first build of aws-lc-sys 0.45.0 under the hermetic toolchainbazel test //rs/http_endpoints/nns_delegation_manager:nns_delegation_manager_test //rs/crypto:integration_suite_tests/tls_handshake_testPocketIC HTTP gateway with
forward_to: Replica("https://icp-api.io"):GET /api/v2/statusthrough the gateway returns HTTP 200;POST /http_gatewayhangs and the server panics with "unable to fetch IC root key ... client error (Connect)".Both results reproduced 2/2.
CI passes with
CI_ALL_BAZEL_TARGETS. This covers Bazel Test All over//...including long and system tests, arm64-linux, arm64-darwin and PocketIC Lint/Tests on Windows (aws-lc-sys 0.45 on MSVC). Build Determinism compared 62k execlog lines with no mismatches.Dependabot closes the alerts listed above after merge. The
Cargo.Bazel.toml.lockones close oncebazel-dependency-submissionhas run on master.Follow-ups
--dns-dnssec-disabledflag (the TODO instate.rs) once we upgrade to a hickory-dns release that includes resolver: retry over TCP when a late concurrent UDP response is truncated hickory-dns/hickory-dns#4062.POST /http_gatewaywaiting onlistening()forever.setup_router(...).await.unwrap()is one such panic, and it is how the DNSSEC failure surfaced. Propagating setup errors back to the caller would turn hangs like this into errors. This is pre-existing and left to the PocketIC owners.🤖 Generated with Claude Code