fix(deps): update module github.com/ipfs/boxo to v0.42.0#16
Open
renovate[bot] wants to merge 1 commit into
Open
fix(deps): update module github.com/ipfs/boxo to v0.42.0#16renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Contributor
Author
ℹ️ Artifact update noticeFile name: go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
|
renovate
Bot
force-pushed
the
renovate/github.com-ipfs-boxo-0.x
branch
from
May 26, 2026 23:03
ba0f1a2 to
194d4b5
Compare
renovate
Bot
force-pushed
the
renovate/github.com-ipfs-boxo-0.x
branch
from
June 8, 2026 13:56
194d4b5 to
dd9d9a7
Compare
renovate
Bot
force-pushed
the
renovate/github.com-ipfs-boxo-0.x
branch
from
July 22, 2026 05:56
dd9d9a7 to
7d84744
Compare
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.
This PR contains the following updates:
v0.38.0→v0.42.0Release Notes
ipfs/boxo (github.com/ipfs/boxo)
v0.42.0Compare Source
Added
namesys: DNSLink lookups now return the DNS TXT record's TTL, and the gateway uses it asCache-Control: max-agefor/ipns/<dnslink-host>responses. Clients cache a DNSLink website for exactly as long as its DNS record allows and fetch updates once it expires, instead of relying on a static default. #329go-doh-resolverv0.6.0. The OS resolver cannot report TTLs: Go's standard librarynet.Resolverreturns only record values, and libp2p's default DNS wiring (madns.DefaultResolver) wraps it, so domains it serves keep the old behavior. In Kubo, aDNS.Resolversentry for.covers all domains.WithDNSResolverdetects TTL support automatically.NewDNSResolverWithTTL,WithDNSResolverWithTTL, andLookupTXTWithTTLFunctake a TTL-aware lookup directly.NewDNSResolverandLookupTXTFuncare unchanged and report an unknown TTL (0).gateway:GET/HEAD /ipfs/bafkqaaa?format=rawnow always returns200with an empty body, so probing clients keep marking the gateway as functional even when its backend cannot serve identity CIDs.bitswap/network/httpnetsends this trustless gateway probe to check providers, and a failed probe drops the provider. Exported asgateway.EmptyIdentityCID. #1179path: addedNewPathFromURI, which accepts native IPFS URIs (ipfs://cid,ipns://name,ipld://cid, and the schemelessipfs:/ipns:/ipld:forms) and rewrites them to canonical content paths, so values copied from browsers and other tools parse as-is.NewPathstays strict and still rejects URI-shaped input, leaving untrusted parsing such as DNSLink records unchanged. #1182blockstore:CachedBlockstorenow returns a value implementing theexported
BloomCacheStatusinterface (Wait/BloomActive/Rebuild) when aBloom filter is configured, so callers can wait for and observe the result of
the asynchronous filter build (previously these methods were unreachable on the
unexported cache type), and retry a failed build with
Rebuild. While arebuild runs the filter is inactive (lookups fall through to the underlying
blockstore, so results stay correct but unaccelerated) and it is activated
again only on a complete enumeration. A new optional
AllKeysChanWithErrercapability lets a
Blockstorereport an error that truncatesAllKeysChanenumeration. #1184
mfs: addedWithFetchTimeout, a time limit on how long MFS waits when it has to fetch part of a tree from the network. MFS can hold a tree whose contents are pulled in on demand, for example a reference made withipfs files cp /ipfs/<cid>. If a needed part is unavailable, MFS would otherwise wait for it forever, freezing every MFS operation and blocking a clean shutdown; with a timeout the wait ends in an error instead. On by default at a generousDefaultFetchTimeout(5 minutes) that only affects unreachable data; passWithFetchTimeout(0)to disable. #1185Changed
namesys: a name that resolves through several hops (a DNSLink pointing at an IPNS name, or an IPNS chain) now uses the shortest TTL among them, so an update to any link in the chain reaches clients on time. Hops with an unknown TTL (0) are ignored; single-hop results are unchanged. #329namesys: TTLs in results now respect the operator's cap.WithMaxCacheTTL(in Kubo:Ipns.MaxCacheTTL) bounds the reported TTL, soCache-Control: max-agenever promises freshness past it. Cached results report their remaining lifetime instead of the original TTL, so a late cache hit no longer restarts the full caching period on clients. A cap of 0 still means "no local cache" and leaves the reported TTL alone. #329go-multiaddr-dnsv0.6.0 andgo-doh-resolverv0.6.0, which add DNS TXT TTL reporting and turn on the DNSLinkCache-Controlbehavior above for DoH-backed setups.mfs:File.Opennow takes acontext.Context. Writing to a file whose data has to be fetched from the network (for example, a lazy reference created withipfs files cp) now uses that context, so the write stops when the context is cancelled, such as on a client timeout or when MFS shuts down, instead of waiting forever for a block that never arrives. Callers must add a context argument; pass the request's context to let a timeout cancel the write. #1185testing: tests now usego-testv0.4.0 andmath/rand/v2.go-test/randomno longer has a global seed or a global sequence, so one test can no longer change the values another test expects to generate deterministically, a class of failure that showed up as an intermittent break in an unrelated test. A generator can also be reused now, instead of being rebuilt for every value. #1187routing/offline: the offline router now stores value records in the same datastore layout as the go-libp2p-kad-dht value store (v0.42.0+), so a node sharing one datastore between the offline router and a DHT resolves records offline that were published online and vice versa. That interop previously relied on both sides coincidentally using the same key derivation, which the kad-dht v0.42.0 layout change broke. Records written in the old layout (root-level base32 keys) are no longer read;GetValuealso returnsrouting.ErrNotFoundinstead of leakingdatastore.ErrNotFoundfor missing records, and re-validates stored records on read so expired records (e.g. IPNS past its EOL) are no longer returned. By default a stored record is served until it stops being valid (for IPNS, its EOL), unchanged from before; the newWithMaxRecordAgeoption adds an optional store-age cap. Retention also depends on what else uses the datastore: when ago-libp2p-kad-dhtinstance shares it (viadht.ValueDatastore), that DHT's value store drops records older thanamino.DefaultMaxRecordAgeon read and sweeps them in the background, regardless of this router's setting. So a node that also runs a DHT follows the DHT's age cap, while an offline-only node keeps records until their EOL. #1189go-libp2p-kad-dhtv0.42.1, which includes a local record validation fix #1189go-unixfsnodev1.10.5go-cidv0.6.2go-libp2pv0.48.1-0.20260709142922-ec408fcc60c9 to get security and other fixes.Removed
util: removed the deprecatedNewSeededRandandNewTimeSeededRand. Usego-test/randominstead. #1187whyrusleeping/base32so that boxo only depends on one base32 package,multiformats/go-base32.Fixed
namesys: a custom sequence number of 0 is now rejected withErrInvalidSequencealso when the name has no existing record, matching the documented behavior that an explicitly supplied sequence must be at least 1.gateway:304 Not Modifiedresponses toIf-None-MatchandIf-Modified-Sincenow carryEtagand theCache-Controltheir200counterpart sends, so a client cache renews its freshness window when it revalidates. A bare 304 left the stored response expired, forcing a revalidation round-trip on every request after the first expiry even when the gateway had just confirmed the content is unchanged. Together with the DNSLink TTL work above, this addresses #329 for web content; CAR and IPNS-record downloads keep their format-specificEtaghandling.gateway: fixed a data race in the remote blockstore, CAR fetcher, and value store. Each picked a gateway URL out of its list using a per-instance*rand.Rand, which is not safe to use from more than one goroutine, so a gateway serving requests in parallel was racing on every request. They now use the top-levelmath/rand/v2functions, which are safe to share. #1187blockstore: the Bloom filter cache no longer activates after an incompletebuild. Previously, if
AllKeysChanenumeration was truncated by amid-iteration datastore error (which was only logged, never propagated) or by a
cancelled context, the cache treated the closed channel as a complete build and
activated a Bloom filter holding only a subset of the stored CIDs. It then
answered "not present" conclusively for blocks that exist but were never
indexed, reporting present blocks as missing (
Hasreturns false,Get/GetSize/Viewreturn not-found,DeleteBlockbecomes a silent no-op).The build now activates the filter only when enumeration is known to have
completed; otherwise it records the error (observable via
BloomCacheStatus.Wait) and the cache degrades to correct pass-through. Thisalso fixes a race where a cancelled build could still mark the filter active.
#1183
Security
go-libp2pupdate contains security enhancements for DoS/hardeningv0.41.0Compare Source
Added
ipld/merkledag/traverse: added theVisitedinterface andOptions.Visitedfield, so callers can plug in their own set for skipping duplicates whenSkipDuplicatesis on.*go-cid.Setalready works as one; a bounded or disk-backed set keeps memory low on very large DAGs.Changed
go-ipld-primev0.24.0polydawn/refmtv0.90.0go-car/v2v2.17.0go.opentelemetry.ioto v1.44.0(includes v1.43.0)Fixed
routing/http/server:GET /routing/v1/ipns/{name}no longer gives a cache a window that outlasts the record. It capsmax-ageto the record's remaining validity and sizes the stale window (stale-while-revalidate/stale-if-error) to the time left after it, so the two never cross the record's EOL. An expired record, or one whoseValidityTypeis not EOL (unknown expiration), returnsCache-Control: no-store, and a negative TTL no longer yields a negativemax-age. #1166gateway: serving a raw IPNS record (GET /ipns/{name}?format=ipns-record) now capsmax-ageto the record's remaining validity and never lets it go negative, so a cache cannot reuse the record past its EOL. #1166namesys: the IPNS resolver now floors a negative record TTL at zero, so a malformed record can no longer surface a negative TTL throughResult.TTL. #1166namesys: a cache hit now reports the TTL remaining in the cache entry rather than the record's original TTL, so a late hit near a record's EOL can no longer advertise a freshness lifetime that outlives the record. #1166ipns:NewRecordfloors a negative TTL at zero andValidaterejects records carrying one. #1166bitswap/network/bsnet: stop marking a peer unresponsive on a single failed send attempt.send()is retried bymultiAttempt(), which already marks the peer once all retries are exhausted; marking on the first failure could permanently sideline a peer that had just reconnected (the disconnect notification being suppressed), hanging fetches from it until it fully disconnected. #1164Security
tracing: bumped OpenTelemetry OTLP exporters to v1.43.0, which caps the HTTP exporter's response body at 4 MiB. A hostile or man-in-the-middle collector could otherwise exhaust its memory (CVE-2026-39882). The gRPC exporter is unaffected.v0.40.0Compare Source
Added
retrieval: addedState.Snapshot,State.Apply, andState.Notifyso consumers can streamStateacross a process boundary, e.g. to drive a live progress bar in Kubo'scat,get, ordag export. #1153pinning/pinner: addedPinner.Close() error. Close cancels every in-flight operation's context, including streaming goroutines fromRecursiveKeys,DirectKeys, andInternalPins, and waits for them to return. A scalar method that observes the cancellation may returncontext.Canceled; a stream interrupted by Close may surfaceErrClosedon the channel before it closes. After Close returns, every other method returns the newErrClosedsentinel; streaming methods deliver it asStreamedPin.Erron a single entry, then close the channel. Close is idempotent and goroutine-safe. Action required: downstreamPinnerimplementations must addClose. #1150pinning/pinner/dspinner: implementsClose. Close cancels the contexts of in-flight operations, so snapshot iteration inRecursiveKeys/DirectKeysand DAG fetches inPinbail out promptly instead of draining to completion. Close returns as soon as those operations honor their ctx. Hosts owning the datastore should callCloseon the pinner before closing the datastore to avoid the use-after-close panic path in stores such as pebble. #1150routing/http/types/iter: addedLimit, an iterator that caps another iterator at a fixed number of values. #1157routing/providerquerymanager: newWithFindPeerFallbackoption. When set, a one-shotFindPeerfallback runs if the first dial to a provider fails; the manager retries the dial with the freshAddrInfo, but only ifFindPeersurfaced at least one address that wasn't already in the routing-record set just tried. Rescues providers whose routing-record snapshot is thin or stale but whose actual addresses are still reachable, without wasting a retry on a duplicate address set. Disabled by default; passWithFindPeerFallback(myDHT)to enable.Changed
upgrade to
go-libp2p-kad-dhtv0.40.0🛠
files: theFileinterface no longer embedsio.Seeker. Seekability is now explicit in the type system instead of implied by an always-presentSeekmethod that returnedErrNotSupportedat runtime for non-seekable inputs. Callers that need to seek type-assert toio.Seeker; the assertion is an honest capability check rather than a guess. Seekable implementations (ReaderFilewrapping a seekable reader,Symlink, UnixFS files returned from the gateway and importer) still satisfy the assertion. Non-seekable implementations (HTTP multipart streams,WebFile) now fail the assertion at compile-aware sites instead of producing runtime errors deep in third-party code. The previous behavior forced downstream workarounds: e.g. ipfs/kubo#11253 had to wrapfiles.Filein a plainio.Reader/io.Closerto stripSeekand forcego-car's forward-only fallback, becausego-car'sNewBlockReadertrusted the interface and calledSeek, which failed with "operation not supported" on CARv2 imports over the HTTP API. With this change the trap stops existing.Action required. Replace direct
Seekcalls onfiles.Filewith a type assertion:See ipfs/kubo#11254 for a worked example of the call-site update. #1128
✨
routing/http/server: the Delegated Routing server now passeslimit=0(unbounded) toDelegatedRouter.FindProviders/FindPeersand applies the configured records limit itself, after filtering. Filtered requests now return a full page of results instead of fewer than requested. The server reads the delegate's iterator lazily and closes it once it has enough records. Action required: delegate implementations should return results lazily and stop work onClose. A delegate that previously used thelimitargument to end its walk early should now end the walk onCloseinstead. #1157path/resolver:ResolveToLastNode,ResolvePath, andResolvePathComponentsnow populateretrieval.Stateon the request context when one is attached. They advance the state toPhasePathResolution, record the root CID from the input path, and record the terminal CID once resolution completes. Until now only the gateway backends populated these fields, leaving non-gateway callers (CLIs, custom tools) without phase or CID diagnostics on retrieval errors. The new calls are idempotent with the existing gateway-side ones, so behavior on the gateway path is unchanged.Fixed
files: now builds underGOOS=js GOARCH=wasmandGOOS=wasip1 GOARCH=wasm. #935routing/http/server: filtered/routing/v1/providersand/routing/v1/peersrequests now return up to the configured records limit. Previously the limit was applied beforefilter-addrs/filter-protocolsran, so records dropped by the filters shrank the response below the limit. The limit now applies after filtering. #1157routing/http/types/iter:Filter.Nextnow iterates instead of recursing on rejected values, so the goroutine stack stays flat even when a long run of records is filtered out. This matters now that the server pulls unbounded results from the delegate. #1157v0.39.0Compare Source
Added
gateway:Config.MaxDeserializedResponseSizeallows setting a maximum file/directory size for deserialized gateway responses. Content exceeding this limit returns410 Gone, directing users to run their own IPFS node. Trustless response formats (application/vnd.ipld.raw,application/vnd.ipld.car) are not affected. The size is read from the UnixFS root block, so no extra block fetches are needed for the check. #1138gateway:Config.MaxUnixFSDAGResponseSizeallows setting a maximum content size applied to all response formats (deserialized, raw blocks, CAR, TAR). Content exceeding this limit returns410 Gone. For most handlers the check reuses size information already available in the request path; for CAR responses a lightweightHeadcall is made only when the limit is configured. #1138Changed
bitswap/server: the default peer comparator now schedules peers fairly. A peer that has never been served, or has waited longer than 10s, outranks non-starved peers. Pending counts cap at 16 for ordering purposes, so peers with small wantlists no longer wait behind peers with large ones. The final tiebreak uses a per-process salted hash of peer.ID, so no peer can craft an ID that permanently outranks everyone. Engines built withWithTaskComparatorkeep their existing behavior. #1141go-libp2p-kad-dhtv0.39.1Fixed
bitswap/network/bsnet:SendMessageandhandleNewStreamnow close streams in a background goroutine. Previously,stream.Closecould hold the caller for up toDefaultNegotiationTimeout(10s) whilelazyClientConn.Closewaited for the remote peer to complete the multistream handshake. This saturated the bitswapTaskWorkerCountpool when peers were unresponsive and stopped bitswap from serving blocks to other peers. As a side effect,SendMessageno longer returns errors fromstream.Close; close failures are logged at Debug. #1142bitswap/server: a peer with a single pending want no longer waits behind peers with large wantlists. #1141pinner/dspinner:RecursiveKeysandDirectKeysnow snapshot the pin index under the read lock and release it before emitting pins, so a slow consumer (e.g. the reprovider draining the channel at DHT speed underProvide.Strategy=pinned*) can no longer starvePin/Unpin/Flushwriters. #1140Configuration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.