Repository navigation
chore: commit Cargo.lock and add Cargo Dependabot updates - #1242
Merged
Merged
Conversation
Commit a lockfile whose versions are older than the secure-runner proxy window, run CI cargo commands with --locked, and let Dependabot update direct and indirect dependencies weekly with a seven-day cooldown, as in alloy-rs/alloy. The disable-allocative CI step now runs cargo update --workspace so the lockfile matches the edited manifest. RUSTSEC-2026-0387 (crypto-bigint 0.5.5 via k256 0.13) is ignored in deny.toml until k256 0.14 is adopted.
DaniPopes
marked this pull request as ready for review
October 26, 2026 12:00
👁️ Cyclops Security ReviewLast reviewed: fc85ca8 (latest) ·
|
4 of 5 tasks
Voxelot
added a commit
to FuelLabs/fuel-core
that referenced
this pull request
Nov 5, 2026
## Linked Issues/PRs Targets #3355 (`feat/devops-1756-poa-fixes`). Baseline: [failing audit job](https://github.com/FuelLabs/fuel-core/actions/runs/41523165204/job/125544039095?pr=3355) at `23d52bdb0624e39b7da6d1d115bada9599f3ee9c`. ## Description Address the release branch's audit findings with compatible lockfile updates, upstream Wasmtime **48.0.8 LTS**, a usage-supported Thrift exception, and an explicitly accepted temporary crypto-bigint exception. **Cargo audit passes with 0 unignored vulnerabilities and 14 informational warnings; the crypto-bigint timing vulnerability remains unresolved.** Full Linux CI must finish before merge. ### Wasmtime upgrade and mixed-version compatibility The AArch64 Cranelift sandbox-escape finding (RUSTSEC-2026-0379) affects the enabled backend. Upgrade to the patched upstream LTS release instead of maintaining a fork, and remove all Wasmtime exceptions, including the two preexisting ones. A plain 46 → 48 bump changes which Wasm modules are accepted: 48 enables typed function references by default, while the security fix also caps `br_table` at 65,520 targets. Explicitly retain the core Wasm proposal set used by 46 so future executor uploads do not silently gain language features unsupported by older nodes. Keep a regression test using the real engine to reject typed function references. No executor ABI, STF version, or native-version mapping is changed. Strengthen the existing v0.44 forward-compatibility test with a latest-runtime validator forced to execute Wasm. Compare its block IDs and STF versions with the old validator before activation, at the upgrade block, and afterward, including a script transaction under the newly uploaded executor. Retain the v0.44 baseline and its Rust 1.94.1 build toolchain in CI. Stabilize the test network's gas-price changes and upload fee headroom so it tests runtime compatibility rather than fee volatility as the Wasm artifact grows. ### Workspace Rust requirement Raise the minimum supported Rust version to **1.95.0 across all 41 workspace packages**, including client/types, as well as the node toolchain, CI build pins, and Docker build images. The node binary inherits the workspace MSRV again. Downstream SDKs, tooling, Sway, and other Rust consumers adopting this release must use Rust 1.95 or newer; the previous separate 1.94.1 client/types check is removed. The nightly formatter pin stays unchanged. Keep the historical v0.44 CI binary on **1.94.1** independently so the mixed-version test retains its historical build baseline. This does not change the current workspace's 1.95 minimum. The accepted Wasm feature set and **STF 34** remain unchanged. This compiler/dependency update does not require an on-chain executor upgrade. ### Compatible dependency updates These resolve 18 vulnerability findings and 15 informational warnings without changing dependency requirements or the compiler pin. | Dependency | Before → after | | --- | --- | | ctutils | 0.4.2 → 0.4.4 | | libz-sys | 1.1.25 → 1.1.31 | | quinn-proto | 0.11.16 → 0.11.18 | | rustls | 0.23.45 → 0.23.46 | | rustls-webpki | 0.103.15 → 0.103.16 | | webpki-root-certs / webpki-roots | 1.0.6 → 1.0.10 | | zstd / zstd-safe / zstd-sys | 0.13.3 / 7.2.4 / 2.0.16 → 0.13.4 / 7.4.0 / 2.1.2 | | anyhow | 1.0.102 → 1.0.103 | | event-listener | 5.4.1 → 5.4.2 | | memmap2 | 0.9.10 → 0.9.11 | | rand | 0.8.5 / 0.9.2 → 0.8.6 / 0.9.3 | ### Usage-supported exception Retain the existing two Hickory exceptions and add only **RUSTSEC-2026-0435 (Thrift)**. The all-features dependency tree contains Thrift 0.17 only through Parquet 58.1.0, whose snapshot readers use the compact protocol (`ThriftSliceInputProtocol`), not the affected `TBinaryInputProtocol::read_bytes` / `read_string`. No direct Thrift consumers were found. Reassess if another consumer or binary reader is introduced. [Advisory](https://rustsec.org/advisories/RUSTSEC-2026-0435.html). ### Temporary risk acceptance: crypto-bigint **RUSTSEC-2026-0387** affects locked crypto-bigint 0.5.5. The advisory's patched versions start at 0.7.6, outside the 0.5.x requirements of elliptic-curve 0.13 and aws-sigv4. Dependency paths include fuel-crypto, Alloy, libp2p identity, and AWS signing. Some consumers perform secret arithmetic, so this is **risk acceptance, not a claim that our usage is unaffected or that the vulnerability is fixed**. Practical side-channel exposure depends on the specific operation, compiler, target, and deployment. Temporarily ignore this advisory while upstream backports or coordinated dependency migrations become available, following the approach merged in [Worldcoin Bedrock #489](worldcoin/bedrock#489), [Alloy #4456](alloy-rs/alloy#4456), and [Alloy Core #1242](alloy-rs/core#1242). Track [Alloy #4445](alloy-rs/alloy#4445). Review before the next release and no later than **2026-12-03**; remove the exception once all affected dependency versions have been eliminated or an upstream remediation is recognized by the advisory. No local crypto fork is introduced. ### Remaining informational warnings 14 warnings remain visible: 7 unmaintained, 3 unsound (`atty`, `lru`, `tokio`), and 4 yanked entries. Tokio 1.51.6 changes the AsyncFd safety API and needs transitive-call review; lru 0.18.2 crosses a pre-1.0 compatibility boundary, and its advisory needs a panicking key destructor plus unwinding/reuse (not present in the identified txpool/Alloy/S3 key types). atty's unsoundness advisory is Windows-specific. These are not silently suppressed. ### Rust 1.95 lint cleanup Resolve the new Clippy findings across all targets/features: use sort keys for quorum weights and relayer log indexes, remove redundant iterator conversions, match P2P event conditions directly, and consolidate preconfirmation broadcasting without changing which statuses are sent. No lint suppressions are added. - Full `cargo +1.95.0 clippy --locked --all-targets --all-features --keep-going -- -D warnings`: **passed** on AArch64 macOS. - Relayer tests: **74 passed**; transaction-status manager tests: **31 passed**, both with all features. - P2P tests with all features: **64 passed, 2 ignored, 1 filtered** (the previously identified local mDNS discovery test). - Required nightly-2025-09-28 formatting applied and checked after the changes. ## Compatibility investigation Local tests ran on AArch64 macOS, the architecture affected by the compiler vulnerability: - Unmodified Wasmtime 48 compiled the integration without API edits and passed all 9 existing executor tests. The new typed-reference guard exposed the default feature expansion; it passes after pinning the proposal set. - In isolated Wasmtime 46 and 48 builds, both runtimes compiled the stored ignition, ignition-v21, and v0.44 Wasm fixtures. Both also executed the current STF compiled with Rust 1.94.1 and 1.95.0; serialized validation results and storage changes matched native execution for the mint-block smoke test. This is not an exhaustive transaction/replay proof. - All five inspected artifacts have maximum branch-table target counts of **331**, below the new **65,520** limit. Boundary probes confirmed that 46 accepts 65,521 and 48 rejects it. Future uploads must stay within the supported runtime limits. - Rust 1.94.1 and 1.95.0 report the same default `wasm32-unknown-unknown` target features. Both artifacts pass the older-runtime smoke test; their bytes and sizes do differ. ## Validation - Snapshot/Parquet tests: **30 passed, 1 ignored** on Rust 1.94.1 with the security lockfile updates. - P2P tests with `test-helpers`: **64 passed, 2 ignored**, excluding the local mDNS discovery test which waits indefinitely here. No test source was changed to skip it. - Final Wasmtime 48 executor tests with the pinned proposal set: **10 passed**. The separate temporary cross-version probe also passed and is not included as a test with machine-specific paths. - `cargo +1.95.0 check --locked -p fuel-core-client -p fuel-core-types`: **passed** with the workspace-wide MSRV. - Cargo metadata confirms all **41 workspace packages** declare Rust **1.95.0**. Changed TOML and CI YAML parse successfully. - Executor clippy (`--all-targets --features wasm-executor -- -D warnings`): **passed** on Rust 1.95. - `cargo +1.95.0 test --manifest-path version-compatibility/Cargo.toml --workspace --locked`: **8 passed**, using the official v0.44 macOS binary and a process-local open-file limit of 8192 (the macOS default of 256 exhausted RocksDB file descriptors). This includes the strengthened mixed-runtime upgrade/script test. Compatibility-workspace clippy (`--tests -p forkless-upgrade -- -D warnings`): **passed**. - Required nightly-2025-09-28 formatting: applied and checked for both workspaces. - `cargo audit`: **passes with 0 unignored vulnerabilities / 14 warnings**, including the documented temporary crypto-bigint risk acceptance. RustSec DB `965bf9ad083b58e6340d65829d85217b18be9290` (2026-11-03). ## Checklist - [x] Upstream runtime used; no maintained fork. - [x] Previous Wasm proposal set retained; old forward-compatibility baseline retained. - [x] Rust 1.95 minimum applied consistently across the workspace and documented for downstream consumers. - [x] Document the accepted temporary crypto-bigint exception, upstream blockers, and review/removal conditions. - [ ] Complete Linux CI on the final commit. Full local Clippy now passes; a fresh CI run is required for the latest lint fixes.
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.
Core had no lockfile, so every CI run resolved the newest crates. The secure-runner proxy rejects crates published in the last day or so, which turned CI red whenever a dependency such as
ctutils0.4.6 was freshly released. This commits aCargo.lockand adds the Cargo ecosystem from alloy-rs/alloy to the weekly Dependabot group, withlockfile-onlyupdates,dependency-type: alland a seven-day cooldown.The lockfile was generated with
--publish-time 2026-10-23T12:00:00Z, so every locked version is at least two days old and downloads cleanly through the proxy (ctutilsis locked at 0.4.5).cargo denyreports RUSTSEC-2026-0387 forcrypto-bigint0.5.5, which comes fromk2560.13 behind the optionalk256feature ofalloy-primitives. The fix needscrypto-bigint0.7.6 or later, which meansk2560.14 (a public dependency bump for downstream crates), so it cannot be locked yet. I added an explicit, commented ignore indeny.tomlsocargo denypasses; it should be removed when core moves tok2560.14.