Skip to content

fix(deps): update module github.com/libp2p/go-libp2p to v0.46.0#76

Merged
smolgroot merged 1 commit intomainfrom
renovate/github.com-libp2p-go-libp2p-0.x
Dec 22, 2025
Merged

fix(deps): update module github.com/libp2p/go-libp2p to v0.46.0#76
smolgroot merged 1 commit intomainfrom
renovate/github.com-libp2p-go-libp2p-0.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jun 18, 2025

This PR contains the following updates:

Package Change Age Confidence
github.com/libp2p/go-libp2p v0.41.1 -> v0.46.0 age confidence

Release Notes

libp2p/go-libp2p (github.com/libp2p/go-libp2p)

v0.46.0

Compare Source

What's Changed

Full Changelog: libp2p/go-libp2p@v0.45.0...v0.46.0

v0.45.0

Compare Source

A small release that adjust some noisy logging levels and adds a method for dynamically change the slog Handler for better integration with applications that use go-log.

What's Changed

Full Changelog: libp2p/go-libp2p@v0.44.0...v0.45.0

v0.44.0

Compare Source

Highlights

Address Pipeline:
  • Observed Address Manager has been moved out of identify to its own package, github.com/libp2p/go-libp2p/p2p/host/obsaddrs
  • ⚠️ Identify Service doesn't support the DisableObservedAddrManager Option. The top level libp2p option DisableIdentifyAddressDiscovery works as it used to.

What's Changed

New Contributors

Full Changelog: libp2p/go-libp2p@v0.43.0...v0.44.0

v0.43.0

Compare Source

Highlights

This is a small release to allow users to upgrade to the latest quic-go version as the quic-go API was changed heavily in quic-go v0.53

What's Changed

Full Changelog: libp2p/go-libp2p@v0.42.0...v0.43.0

v0.42.1

Compare Source

What's Changed

New Contributors

Full Changelog: libp2p/go-libp2p@v0.41.0...v0.42.1

v0.42.0

Compare Source

⚠ Breaking Changes

Added a new method, VerifySourceAddress(net.Addr) bool, to the Resource Manager interface.
For more details see the Source Address Verification section.

For custom implementation which want to opt out of Source Address Verification and keep the existing behavior, return false from the method.

🔦 Highlights

Per Address Reachability via AutoNAT v2

libp2p hosts can now determine reachability for individual addresses using AutoNATV2. To opt in to reachability checking use the EnableAutoNATV2 libp2p option. Using this nodes can now determine their IPv4, IPv6, and browser address reachability separately. In a future release, AutoRelay will use this information and make appropriate relay reservations accordingly. https://pkg.go.dev/github.com/libp2p/go-libp2p#EnableAutoNATv2

To query addresses by their reachability, ConfirmedAddrs() (reachable, unreachable, unknown []ma.Multiaddr) that provides Reachability information per host address. https://pkg.go.dev/github.com/libp2p/go-libp2p/p2p/host/basic#BasicHost.ConfirmedAddrs
For notifications, Subscribe to the event event.EvtHostReachableAddrsChanged https://pkg.go.dev/github.com/libp2p/go-libp2p/core/event#EvtHostReachableAddrsChanged

Rate Limiting

We've introduced the package github.com/libp2p/go-libp2p/x/rate for rate limiting. The struct rate.Limiter provides Global, Network Specific, and Subnet Specific rate limiting. The Subnet specific rate limits allows for better DoS Protection by rate limiting malicious IPs. https://pkg.go.dev/github.com/libp2p/go-libp2p/x/rate

Use Limit(f func(s network.Stream)) func(s network.Stream) on Limiter to limit specific stream handlers. For example, within libp2p, the Identify Service uses this as
ids.Host.SetStreamHandler(IDPush, ids.rateLimiter.Limit(ids.handlePush)) to rate limit the number of times peers can perform identify push.

For non Stream use cases use the Allow(ip) method on the limiter.

Connection Rate Limiting

New connection requests are now rate limited per IP. By default we allow 1 connection every 5 seconds from an IP address with a burst of 16 connections per IP. The burst is high enough that this should only block malicious peers.

To configure the connection rate limits, use the WithConnRateLimiters option on the Resource Manager. https://pkg.go.dev/github.com/libp2p/go-libp2p/p2p/host/resource-manager#WithConnRateLimiters

Source Address Verification for QUIC

This release introduces Source Address Verification for QUIC, preventing DoS attacks by spoofing IP addresses. See: https://www.rfc-editor.org/rfc/rfc9000.html#section-8 for details.

We are now gating incoming QUIC connections before the handshake is started. This further improves DoS protection by not wasting CPU on handshaking QUIC connections which would have been dropped by the Resource Manager.

Other changes
  • WebRTC Direct peers can now send messages of up to 256 kB (see spec: libp2p/specs#628)
  • Refactored the addressing code within BasicHost and moved it into Address Manager. In a future release, this will be exposed to users with an improved Address API for the libp2p Host.

What's Changed

New Contributors

Full Changelog: libp2p/go-libp2p@v0.41.0...v0.42.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
Copy link
Contributor Author

renovate bot commented Jun 18, 2025

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 15 additional dependencies were updated

Details:

Package Change
golang.org/x/time v0.11.0 -> v0.12.0
github.com/libp2p/go-netroute v0.2.2 -> v0.3.0
github.com/libp2p/go-yamux/v5 v5.0.0 -> v5.0.1
github.com/multiformats/go-multiaddr v0.15.0 -> v0.16.0
github.com/pion/ice/v4 v4.0.8 -> v4.0.10
github.com/pion/interceptor v0.1.37 -> v0.1.40
github.com/pion/turn/v4 v4.0.0 -> v4.0.2
github.com/pion/webrtc/v4 v4.0.10 -> v4.1.2
github.com/prometheus/client_golang v1.21.1 -> v1.22.0
github.com/prometheus/common v0.62.0 -> v0.64.0
github.com/prometheus/procfs v0.15.1 -> v0.16.1
github.com/quic-go/quic-go v0.50.1 -> v0.55.0
github.com/quic-go/webtransport-go v0.8.1-0.20241018022711-4ac2c9250e66 -> v0.9.0
go.uber.org/dig v1.18.2 -> v1.19.0
go.uber.org/fx v1.23.0 -> v1.24.0

@renovate renovate bot force-pushed the renovate/github.com-libp2p-go-libp2p-0.x branch from 83cb5b0 to 07f0263 Compare July 30, 2025 16:10
@renovate renovate bot changed the title fix(deps): update module github.com/libp2p/go-libp2p to v0.42.0 fix(deps): update module github.com/libp2p/go-libp2p to v0.42.1 Jul 30, 2025
@renovate renovate bot force-pushed the renovate/github.com-libp2p-go-libp2p-0.x branch from 07f0263 to e92254a Compare August 7, 2025 17:46
@renovate renovate bot changed the title fix(deps): update module github.com/libp2p/go-libp2p to v0.42.1 fix(deps): update module github.com/libp2p/go-libp2p to v0.43.0 Aug 7, 2025
@renovate renovate bot force-pushed the renovate/github.com-libp2p-go-libp2p-0.x branch from e92254a to fc35c7e Compare October 8, 2025 04:39
@renovate renovate bot changed the title fix(deps): update module github.com/libp2p/go-libp2p to v0.43.0 fix(deps): update module github.com/libp2p/go-libp2p to v0.44.0 Oct 8, 2025
@renovate renovate bot force-pushed the renovate/github.com-libp2p-go-libp2p-0.x branch from fc35c7e to dcefe8a Compare November 6, 2025 07:59
@renovate renovate bot changed the title fix(deps): update module github.com/libp2p/go-libp2p to v0.44.0 fix(deps): update module github.com/libp2p/go-libp2p to v0.45.0 Nov 6, 2025
@renovate renovate bot force-pushed the renovate/github.com-libp2p-go-libp2p-0.x branch 2 times, most recently from 054e547 to d4b0a32 Compare November 12, 2025 00:37
@renovate renovate bot force-pushed the renovate/github.com-libp2p-go-libp2p-0.x branch from d4b0a32 to 1523c45 Compare December 13, 2025 12:50
@renovate renovate bot changed the title fix(deps): update module github.com/libp2p/go-libp2p to v0.45.0 fix(deps): update module github.com/libp2p/go-libp2p to v0.46.0 Dec 13, 2025
@renovate
Copy link
Contributor Author

renovate bot commented Dec 13, 2025

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 16 additional dependencies were updated

Details:

Package Change
golang.org/x/time v0.11.0 -> v0.12.0
github.com/libp2p/go-netroute v0.2.2 -> v0.3.0
github.com/libp2p/go-yamux/v5 v5.0.0 -> v5.0.1
github.com/multiformats/go-multiaddr v0.15.0 -> v0.16.0
github.com/pion/ice/v4 v4.0.8 -> v4.0.10
github.com/pion/interceptor v0.1.37 -> v0.1.40
github.com/pion/turn/v4 v4.0.0 -> v4.0.2
github.com/pion/webrtc/v4 v4.0.10 -> v4.1.2
github.com/prometheus/client_golang v1.21.1 -> v1.22.0
github.com/prometheus/common v0.62.0 -> v0.64.0
github.com/prometheus/procfs v0.15.1 -> v0.16.1
github.com/quic-go/qpack v0.5.1 -> v0.6.0
github.com/quic-go/quic-go v0.50.1 -> v0.57.1
github.com/quic-go/webtransport-go v0.8.1-0.20241018022711-4ac2c9250e66 -> v0.9.0
go.uber.org/dig v1.18.2 -> v1.19.0
go.uber.org/fx v1.23.0 -> v1.24.0

@smolgroot smolgroot merged commit 1632d65 into main Dec 22, 2025
0 of 3 checks passed
@renovate renovate bot deleted the renovate/github.com-libp2p-go-libp2p-0.x branch December 22, 2025 22:32
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.

1 participant