chore: drop sigp libp2p fork patches, follow upstream#987
Conversation
92e0850 to
1f63421
Compare
|
I think we should pin the new upstream The PR currently resolves to For production Rust projects, the usual preference is:
Could we either switch to the crates.io release if it contains the needed fixes, or pin all three git deps to the audited lockfile commit? rev = "22fb4c784fc55ad8b15d05fdc9f98d663107d4cb"That keeps the PR intent explicit: remove the SIGP fork while keeping Anchor on a reproducible upstream libp2p source. |
349a8f9 to
3f863d8
Compare
|
Pushed 3f863d8 pinning all three entries to On the crates.io option: there isn't a published version we can use today. Latest on crates.io is |
|
On I compared the old fork commit
The pinned upstream rev does not have those config fields or truncation; it passes the full vectors into I have not written a repro here, but the behavior difference is clear enough that I do not think we should drop the fork yet. Could we either pin to an upstream rev that includes the IWANT/IDONTWANT caps, or keep carrying those caps before removing the SIGP fork? |
|
Good catch. Since I made the PR, rust-libp2p merged libp2p/rust-libp2p#6409 (2026-05-05) which adds a The semantics differ from the fork: fork was a per-entry inner cap on Note that the fork's Side benefit of bumping to master tip: libp2p/rust-libp2p#6395 (hickory 0.26) is now in the resolved graph, so RUSTSEC-2026-0118 / RUSTSEC-2026-0119 are no longer reachable. Dropped the two |
4208b1c to
1cf8334
Compare
Problem
Anchor's
[patch.crates-io]redirectedlibp2p+ 5 sub-crates to sigp'srust-libp2p@defcaf1afork. Maintaining a fork rev is friction, and we can drop it now.Why we can drop the patches
All four gossipsub deltas the fork carried are now upstream:
Durationoverflow (GHSA-gc42-3jg7-rxr2) → upstream gossipsub 0.49.3.Instantoverflow (GHSA-xqmp-fxgv-xvq5) → upstream gossipsub 0.49.4 vialibp2p/rust-libp2p#6359.libp2p/rust-libp2p#6409(merged 2026-05-05). Replaces the fork's per-IWANT/IDONTWANT handler-time inner caps with a unified codec-timemax_control_messagescap covering all five control types. Sigma Prime classifies the residual inner-id gap as low-severity defense-in-depth (seesigp/rust-libp2p#578).The new pin (
197663d7, master tip) also includes the hickory 0.26 bump fromlibp2p/rust-libp2p#6395, making RUSTSEC-2026-0118 / RUSTSEC-2026-0119 unreachable in our resolved graph. Closes #989.Lighthouse made the equivalent migration in
sigp/lighthouse#8314.Change Overview
libp2p*entries from[patch.crates-io](keepquick-protobuf).libp2p,libp2p-peer-store, andlibp2p-swarm-testto upstream197663d7.networkper PR #6409:max_ihave_length(1500)→max_control_messages(1500),max_ihave_messages(32)→max_ihave_messages_heartbeat(32).--ignoreflags (and stale comment) fromMakefileaudit-CI.Validation
cargo check --workspace,cargo test -p network --lib(52/52),cargo clippy -p network --all-targets -- -D warnings,make cargo-fmt-check,make audit-CI— all clean.sigp/rust-libp2prefs inCargo.lock.Rollback
Pure revert. No config, database, or operational impact.
Blockers / Dependencies
N/A