Self-host kubo
v0.43.1Go IPFS daemon: p2p content-addressed storage, gateway, CLI
$ docker run -d --name ipfs_host -v $ipfs_staging:/export -v $ipfs_data:/data/ipfs -p 4001:4001 -p 4001:4001/udp -p 127.0.0.1:8080:8080 -p 127.0.0.1:5001:5001 ipfs/kubo:v0.43.1- Stars
- 17 177
- CPU
- 2 CPU cores
- RAM
- 6 GiB of memory
- Storage
- around 12MB of disk space for a base installation (scales with shared data)
- Ports
- 5001 (Kubo RPC API (admin level) and WebUI at /webui, bound to 127.0.0.1 by default), 8080 (HTTP gateway), 4001 (libp2p swarm / P2P connectivity over TCP and UDP (QUIC, WebTransport))
ipfs/kuboWhat is kubo?
Kubo is the first and still the most widely deployed IPFS implementation, written in Go and run as a long-lived network daemon on your own hardware. After ipfs init and ipfs daemon, the node takes part in the IPFS network over LAN mDNS plus the WAN Amino DHT, stores content-addressed data as UnixFS CIDs and DAGs, and swaps blocks with peers using Bitswap and verifiable HTTP retrieval. You drive it through the ipfs command line, the bundled browser console at localhost:5001/webui, or the /api/v0 RPC API; the gateway listener on port 8080 publishes content to browsers in path, subdomain and trustless URL styles. The daemon can also act as an HTTP Routing V1 client and server so lookups may be delegated elsewhere, exports Prometheus metrics, honours denylists aimed at public gateway operators, offers an experimental FUSE layer that exposes IPFS, IPNS and MFS namespaces as ordinary directories, supports private swarms guarded by a swarm key, and ships init/import profiles such as server and unixfs-v1-2025. Install it with official prebuilt binaries, the ipfs/kubo container image, Homebrew and other community packages, or a source build; the docs ask for 6 GiB of memory and two CPU cores as a baseline. As of late 2026 there is no dedicated maintainer (Shipyard's maintenance work ended on 2026-09-30) and the newest release is v0.43.1, so support questions go to the community forum.
kubo alternatives
ADAMANT IPFS NodeSelf-hosted IPFS file storage for apps with bounded disk, deterministic replication, repair, health checks, and REST API.CompareADAMANT IPFS Node with kubo
cloudboxioA lightweight Go-based file server you host yourself, offering JWT login, shareable links, a themed web interface, and embedded SQLite storage.Comparecloudboxio with kubo
Versity S3 GatewayVersityGW is an open-source, Apache-2.0 S3 object-storage gateway in Go: it turns POSIX filesystems, ScoutFS or Azure Blob into an S3 API, with IAM, WebUI and Helm.CompareVersity S3 Gateway with kubo
KuberoOpen-source, self-hosted PaaS for Kubernetes: deploy containers or source with 160+ app templates, CI/CD pipelines and GitOps review apps, run by a UI plus operator.CompareKubero with kubo
GokapiAn open-source, self-hosted Firefox Send alternative: expiring download links, end-to-end encryption, user roles, file requests and optional S3-compatible storage.CompareGokapi with kubo
folderhostA self-hosted, open-source cloud platform offering file sharing, real-time collaboration, and user management in a ~19MB binary as a lightweight Nextcloud alternativeComparefolderhost with kubo
qbitwebuiSelf-hosted web UI for managing qBittorrent. Features multi-instance support, real-time monitoring, Prowlarr search, cross-seeding, file browser, custom views.Compareqbitwebui with kubo
drivebaseDrivebase is a self-hosted, open-source file manager unifying Google Drive, S3, Dropbox, and local files into a desktop-like web UI with real-time transfers.Comparedrivebase with kubo
Should you self-host kubo?
kubo scores 72/100 on selfhost.directory (how scoring works) and ranks #4 of 90 in File Sharing. It has 17 177 GitHub stars, +31 in the last 30 days.
It shipped 7 stable releases in the past year. The latest, v0.43.1, came out on 14 September 2026. New versions land roughly every 2 months.
Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is Other-licensed and written mostly in Go.
Its closest alternative on selfhost.directory is copyparty (82/100, 47 276 stars). It scores higher overall, so compare the two before you pick. See kubo vs copyparty side by side.
Features
- Automatic TLS listeners
- Bitswap data transfer
- Command Line Interface
- Config profiles and import profiles
- Content blocking / denylists
- Delegated routing (HTTP Routing V1)
- FUSE filesystem mountsExperimental per the README; requires FUSE installed on the host.
- Garbage collection and storage limits
- HTTP Gateway
- HTTP RPC API
- Mutable File System (MFS)
- Peer-to-peer content-addressed storage daemon
- Private swarms
- Prometheus metrics endpoint
- Web admin UI
kubo README
The first implementation of IPFS.
What is Kubo? | Quick Taste | Install | Documentation | Development | Getting Help
Kubo was the first IPFS implementation and is the most widely used one today. It takes an opinionated approach to content-addressing (CIDs, DAGs) that maximizes interoperability: UnixFS for files and directories, HTTP Gateways for web browsers, Bitswap and HTTP for verifiable data transfer.
How to install kubo
Install kubo with Docker
IPFS_PROFILE, IPFS_SWARM_KEY, IPFS_SWARM_KEY_FILE, GOMAXPROCS, GOMEMLIMITdocker run -d --name ipfs_host -v $ipfs_staging:/export -v $ipfs_data:/data/ipfs -p 4001:4001 -p 4001:4001/udp -p 127.0.0.1:8080:8080 -p 127.0.0.1:5001:5001 ipfs/kubo:v0.43.1
Official image ipfs/kubo on Docker Hub; a first start with an empty data directory runs ipfs init. Customize with -e or scripts mounted into /container-init.d.
Install kubo with Linux
wget https://dist.ipfs.tech/kubo/v0.43.1/kubo_v0.43.1_linux-amd64.tar.gz
tar -xvzf kubo_v0.43.1_linux-amd64.tar.gz
cd kubo
sudo bash install.sh
ipfs --version
Prebuilt binaries published on dist.ipfs.tech and GitHub Releases for Windows, macOS, Linux, FreeBSD and OpenBSD.
Install kubo with Build from Source
git clone https://github.com/ipfs/kubo.git
cd kubo
make build # creates cmd/ipfs/ipfs
make install # installs to $GOPATH/bin/ipfs
Recommended only for severely resource-constrained systems or contributors to the project.
How to configure kubo
Addresses.API=/ip4/127.0.0.1/tcp/5001Multiaddr (or array of multiaddrs) where the local Kubo RPC API is served.values: multiaddrs
Addresses.Gateway=/ip4/127.0.0.1/tcp/8080Multiaddr (or array) on which the local HTTP gateway is served.values: multiaddrs
Addresses.Swarm=/ip4/0.0.0.0/tcp/4001, /ip6/::/tcp/4001, /ip4/0.0.0.0/udp/4001/quic-v1, /ip4/0.0.0.0/udp/4001/quic-v1/webtransport, /ip6/::/udp/4001/quic-v1, /ip6/::/udp/4001/quic-v1/webtransportArray of multiaddrs the node listens on for p2p swarm connections (TCP, QUIC v1, WebTransport).values: array of multiaddrs
Datastore.StorageMax=10GBSoft upper limit for the size of the repository datastore; with StorageGCWatermark it decides whether to trigger garbage collection.values: size string
Datastore.StorageGCWatermark=90Percentage of StorageMax at which automatic garbage collection is triggered, when the daemon runs with GC enabled.values: integer 0-100
kubo releases & version history
Note
This release was brought to you by the Shipyard team.
Important
v0.43 is the last Kubo by the Shipyard. Our IPFS work ends on September 30, 2026. Bring your support and transition questions to the community forum.
- 🔦 Highlights
- 🔇 Empty
Bootstraplist disables all bootstrap dialing - 🗄️ Improved datastore profiles and docs
- 🗂️ Setting the flatfs shard depth is less error-prone
- 📁
ipfs lscan print readable sizes and sort by size - 📌 Files on FUSE mounts keep their inode number
- 🧹 FUSE mounts keep what you write after a rename
- 🔐
ipfs key exportwrites are owner-only - 🛑
ipfs shutdownexits a daemon started with--enable-gc - 🔗 Gateway
Ipfs-Uriheader replacesX-Ipfs-Path(IPIP-548) - 🔄 Bitswap sees peers connected before it starts
- 🤫 No more background pings to HTTP providers
- 🔕 Telemetry is off by default
- 🌐 Future-proofing browser retrieval: WebTransport fix for Safari 26
- 💾 Provider record writes are batched again
- 🔒 Hardened CID profiles, new low-level knob
- 📦️ Dependency updates
- 🔇 Empty
- 📝 Changelog
- 👨👩👧👦 Contributors
This is mostly a bugfix release. It also carries a few small, opt-in configuration options and profiles that landed since v0.43.0.
🔦 Highlights
🔇 Empty Bootstrap list disables all bootstrap dialing
Setting Bootstrap to [] now stops the node from dialing bootstrap peers of any kind, including the backup peers it saved from earlier runs. Until now, a node that had once run with the default bootstrappers kept dialing those saved peers every 30 seconds, even with an empty list and Routing.Type=none.
The result is a node that connects only to peers you chose: Peering.Peers, ipfs swarm connect, and peers found on the local network through mDNS. For no outbound traffic at all, also set Routing.Type to none and disable AutoConf.
Backup peers still work when Bootstrap has at least one entry: the node dials the configured peers first and falls back to saved peers only while it stays below the minimum peer count.
🗄️ Improved datastore profiles and docs
Kubo keeps blocks in flatfs and everything else (pins, MFS root, IPNS and DHT provider records) in leveldb. leveldb is slow to reclaim space after bulk deletes, so on nodes that churn that metadata all day, datastore/ grows far past the live data. ipfs init --profile=flatfs-pebbleds keeps flatfs for blocks and puts the rest in pebble, which compacts deleted keys promptly. This works for new repos only. The profile is experimental, and pebble has less production use in Kubo than leveldb, so report problems in kubo issues. Details in the profile docs.
The default layout is unchanged. Its profile is now named flatfs-levelds, and flatfs and flatfs-measure stay as aliases. The datastore docs say which data lives in which store and why flatfs holds only blocks.
🗂️ Setting the flatfs shard depth is less error-prone
The flatfs shard depth (shardFunc) can only be set when a repo is created, by passing a config file to ipfs init. That route had traps. Fixed:
ipfs init <file>andipfs daemon --init --init-configrefuse a config without a private key, such asipfs config showoutput, which used to produce a repo that crashed on start.ipfs initchecksDatastore.Specbefore writing anything, so a typo inshardFuncno longer leaves a half-made repo.ipfs config profile applyrefuses a profile that would change the datastore layout of an existing repo instead of writing a config the repo can no longer open.- The
Datastore.Specvsdatastore_specmismatch error labels the two values correctly and says what to do.
docs/datastores.md has the steps for setting next-to-last/3 on a new repo, when it is worth it, and how to move an existing repo. Defaults are unchanged.
📁 ipfs ls can print readable sizes and sort by size
Two new flags on ipfs ls, both off by default. --human (-H) prints sizes in SI units such as 3.0 kB and 2.0 MB, matching ipfs repo stat -H. --sort-size (-S) lists the biggest entries first, so you can find what fills a directory without piping through sort. Run ipfs ls --help for how they combine with --stream, --size, and the JSON response.
📌 Files on FUSE mounts keep their inode number
A file on a mount made by ipfs mount used to get a new inode number roughly every second, whenever the kernel dropped and re-read its directory entry. Programs that check whether a file is still the same file read that as the file being replaced under them. Saving a file on /mfs with vim could fail with E949: File changed while writing, and pwd, find and backup tools could misbehave for the same reason.
All three mounts now hand out stable numbers. On /ipfs the number comes from the CID, so the same content is the same object whichever path reaches it, and the same number comes back after a remount. On /ipns and /mfs an entry keeps its number for as long as it exists, including across a rename, while a name that is deleted and created again is numbered afresh; those numbers are assigned per mount and start over on the next one. Deleting through ipfs files rather than through the mount is the exception: the mount does not see it, so the name keeps its old number if it comes back.
Smaller fixes come with it: mount points report an inode number instead of 0, ls -i agrees with stat, the link count is 1 rather than the 0 POSIX gives to a deleted file, and /ipns/<key> directories show their real permissions instead of d---------.
🧹 FUSE mounts keep what you write after a rename
Renaming on a mounted /mfs or /ipns left the kernel writing into the entry the rename had just taken away. mv a b followed by a write to b reported success and then quietly went back to the old contents a second later. A file created in a directory that had just been renamed vanished the same way, and the directory reappeared under the name it had been moved away from. Renaming over a directory that was not empty deleted everything in it, where POSIX asks for ENOTEMPTY.
On /ipfs, a listing no longer fails in its entirety when one child's block is missing, an entry in a codec the mount cannot decode reads back the block rather than refusing, and the ipfs.cid xattr answers with the CID from the path instead of a re-encoded form of it.
🔐 ipfs key export writes are owner-only
ipfs key export now writes the key file with owner-only permissions (0600), including when it overwrites an existing file with looser permissions. The export goes to a temporary file renamed over the target, so a failed export leaves the previous contents intact; character devices and pipes such as /dev/null are streamed to directly.
🛑 ipfs shutdown exits a daemon started with --enable-gc
A daemon started with --enable-gc closed its repo on ipfs shutdown (POST /api/v0/shutdown) but the process never exited, because the periodic garbage collection loop only stopped on a signal. Supervisors that stop Kubo over the RPC API waited forever. The loop now also stops when the node closes; SIGINT and SIGTERM behave as before.
🔗 Gateway Ipfs-Uri header replaces X-Ipfs-Path (IPIP-548)
Gateway responses now include an Ipfs-Uri header with a canonical ipfs:// or ipns:// address of the requested content path (IPIP-548). Every path segment is percent-encoded, so the address survives any file name, including names with spaces, %, #, and non-ASCII characters.
Important
Kubo no longer sends the deprecated X-Ipfs-Path header. HTTP header values cannot carry non-ASCII bytes, so a path with such a file name arrives garbled. Clients that read X-Ipfs-Path must migrate to Ipfs-Uri; decoding it back into a content path takes a single percent-decode of each path segment. Operators who need time can temporarily restore the legacy header with Gateway.DeprecatedXIpfsPath; even then Kubo omits it when the value contains bytes that cannot appear in an HTTP header.
🔄 Bitswap sees peers connected before it starts
A peer that was already connected when the node started stayed invisible to Bitswap: libp2p reports only connections opened after a notifier registers, so no want request was ever sent over such a connection. Nodes with other ways to find content usually masked it; a node relying on an already-connected peer could wait forever. Fixed in boxo v0.42.2.
🤫 No more background pings to HTTP providers
Bitswap over HTTP no longer probes every connected HTTP provider with GET/HEAD /ipfs/bafkqaaa every 5 seconds for the lifetime of the process. Idle HTTP peers now generate no background traffic; latency is measured from the connection probe and from real retrieval responses instead (boxo v0.42.2).
🔕 Telemetry is off by default
Kubo no longer ships with a telemetry endpoint. The collector at telemetry.ipshipyard.dev shuts down with the end of Shipyard's IPFS work, so a node now collects nothing and sends nothing unless you point it at your own collector with Plugins.Plugins.telemetry.Config.Endpoint. A node that reported under an earlier version removes its stored telemetry_uuid on the next daemon start. The opt-outs (IPFS_TELEMETRY=off, DO_NOT_TRACK=1, the config Mode) keep working for builds that set an endpoint. See docs/telemetry.md.
🌐 Future-proofing browser retrieval: WebTransport fix for Safari 26
Kubo's WebTransport listener now supports session flow control from WebTransport over HTTP/3 draft-16. Safari 26 opens no stream on a session unless the server advertises session limits, so Kubo advertises them. The limits are set so high they never apply; the QUIC per-connection limits and the libp2p resource manager remain the effective caps.
💾 Provider record writes are batched again
go-libp2p-kad-dht v0.42.0, first shipped in Kubo v0.43.0, turned every DHT provider record write, and every delete made by the provider's garbage collection, into an individual, fsynced datastore operation. On nodes announcing many CIDs this showed up as constant disk activity. This release batches these writes and deletes again, 256 records at a time, restoring the disk write rate from before v0.43.0. Nothing changes on the wire or in the datastore layout; upgrading is all that is needed.
🔒 Hardened CID profiles, new low-level knob
The unixfs-v0-2015 and unixfs-v1-2025 profiles now pin the PBNode field order (links-first) explicitly, and regression tests lock in the exact bytes and CIDs they produce. Reading blocks in either field order is formalized in IPIP-550 and tested by gateway-conformance v0.14.1. Nothing changes by default.
For writers that need Data-first output (streaming readers can then parse HAMT shards without buffering all links first), there is a new opt-in Import.UnixFSPBNodeFieldOrder option. No profile enables it. Opting in changes the CIDs of newly added directories, HAMT shards, and multi-chunk files, and MFS re-encodes the directories that ipfs files operations rewrite; enable it only when consumers of your CIDs expect the new order.
📦️ Dependency updates
- update
boxoto v0.43.0 (includes ipfs/boxo#1212 and ipfs/boxo#1213); also pulls ingo.opentelemetry.io/otelv1.46.0 - update
go-libp2p-kad-dhtto v0.42.2 - update
go-ds-pebbleto v0.5.13 - update
gateway-conformanceto v0.14.1 - update
quic-goto v0.62.0 andwebtransport-goto v0.13.0
📝 Changelog
Full Changelog
- github.com/ipfs/kubo:
- fix(webtransport): keep Safari 26 sessions working
- chore: upgrade to boxo v0.43.0 (#11467) (ipfs/kubo#11467)
- chore: ship without a telemetry endpoint
- docs: clearer datastore layouts and init errors (#11449) (ipfs/kubo#11449)
- fix(daemon): exit on RPC shutdown with --enable-gc (#11447) (ipfs/kubo#11447)
- fix: empty Bootstrap list no longer dials stale backup peers (#11453) (ipfs/kubo#11453)
- test(unixfs): lock in CID profile behavior (IPIP-550) (#11439) (ipfs/kubo#11439)
- chore: bump go-libp2p-kad-dht to v0.42.2 (#11436) (ipfs/kubo#11436)
- chore: maintenance disclaimer
- fix: Ipfs-Uri gateway header (IPIP-548) (#11437) (ipfs/kubo#11437)
- fix(fuse): keep what you write after a rename (#11430) (ipfs/kubo#11430)
- fix(fuse): give mounts stable inode numbers (#11429) (ipfs/kubo#11429)
- fix(key): restrict overwritten key exports to owner-only permissions (#11428) (ipfs/kubo#11428)
- chore(ci): remove self-hosted runners [skip changelog] (#11426) (ipfs/kubo#11426)
- docs: guide for running on low-memory devices (#11427) (ipfs/kubo#11427)
- docs: drop expired pgp key from security notes (#11422) (ipfs/kubo#11422)
- docs: fix private networks setup wording (#11388) (ipfs/kubo#11388)
- feat(cli): add --human and --sort-size to ipfs ls (#11408) (ipfs/kubo#11408)
- github.com/ipfs/boxo (v0.42.1 -> v0.43.0):
- Release v0.43.0 (ipfs/boxo#1218)
- upgrade opentelemetry to v1.44 (#1216) (ipfs/boxo#1216)
- chore: upgrade go-libp2p-kad-dht to v0.42.2 (ipfs/boxo#1214)
- refactor: update go version to 1.26 and apply modernizers (ipfs/boxo#1211)
- fix(bootstrap): skip backup peer list when no bootstrap peers configured (#1213) (ipfs/boxo#1213)
- test(unixfs): lock in PBNode field order behavior (IPIP-550) (#1212) (ipfs/boxo#1212)
- fix(gateway): IPIP-548 Ipfs-Uri response header (#1209) (ipfs/boxo#1209)
- chore: remove @lidel from CODEOWNERS
- Release v0.42.2 (ipfs/boxo#1207)
- fix(bitswap/httpnet): bound probe traffic (#1205) (ipfs/boxo#1205)
- docs: describe bitswap broadcast control for broadcast reduction (ipfs/boxo#1203)
- fix(bitswap): see peers connected before startup (#1201) (ipfs/boxo#1201)
- docs: spec guardrails (#1204) (ipfs/boxo#1204)
- chore: refresh issue templates and docs links
- chore: small correction to changelog (ipfs/boxo#1202)
- github.com/ipfs/go-ds-pebble (v0.5.12 -> v0.5.13):
- update version for release v0.5.13 (#92) (ipfs/go-ds-pebble#92)
- refactor: update go version to 1.26 and apply modernizers (#91) (ipfs/go-ds-pebble#91)
- github.com/libp2p/go-libp2p-kad-dht (v0.42.1 -> v0.42.2):
- chore: release v0.42.2 (#1294) (libp2p/go-libp2p-kad-dht#1294)
- fix(records): batch provider datastore writes and GC deletes (#1293) (libp2p/go-libp2p-kad-dht#1293)
- docs: spec guardrails (#1292) (libp2p/go-libp2p-kad-dht#1292)
- fix(provider): pass lifecycle context to local record callback (#1288) (libp2p/go-libp2p-kad-dht#1288)
👨👩👧👦 Contributors
| Contributor | Commits | Lines ± | Files Changed |
|---|---|---|---|
| @lidel | 24 | +5265/-515 | 106 |
| @guillaumemichel | 3 | +1058/-148 | 10 |
| @questfever | 1 | +450/-41 | 5 |
| @capricornusx | 1 | +444/-12 | 5 |
| @gammazero | 10 | +138/-100 | 29 |
| @karawitan | 2 | +150/-7 | 7 |
| @galargh | 1 | +5/-1 | 1 |
| @weifanglab | 1 | +2/-2 | 1 |
AI summary Native IPFS and IPNS URIs now supported as input
Note
This release was brought to you by the Shipyard team.
Important
This is the last Kubo release with new features from the Shipyard team. Our IPFS work ends on September 30, 2026. Until then we will ship only critical security and bug fix releases if any are needed. After that date, no one at Shipyard maintains Kubo. If you depend on Kubo, read the announcement and send us your transition questions before the end of September.
Update: there is a community discussion here
- Overview
- 🔦 Highlights
- 🔗 Native
ipfs://andipns://URIs work as input - 🛜 One-time notice when behind CGNAT
- 🩺 AutoTLS checks broker health before registration
- 🕒 Revamped TTL and expiration handling for IPNS and DNSLink
- 🛑 Clearer errors for invalid config at startup
- 🗂️
ipfs filesno longer hangs when garbage collection runs - 🔑
ipfs config replacekeeps PeerID and private key in sync - 🔐 secp256k1 key generation, export, and import
- 🔄 Sturdier DHT reprovides on large nodes
- 📡 Future-proofing browser retrieval:
webrtc-directv2 - 🌐 Future-proofing browser retrieval: WebTransport draft-15
- 🧭 Delegated routers now hand browsers an address they can dial
- 🗺️ Fewer stale addresses in the peerstore
- 🕳️ Behind NAT: faster relay recovery, dependable shutdown
- 🚮
ipfs initno longer creates an IPNS record - 📛 Unified IPNS record storage
- 🧪 Tests use new go-test and rand v2
- 🖥️ WebUI Improvements
- 🧵 A truncated CAR response now says so
- 🔒 Security fixes: update recommended
- 📦️ Dependency updates
- 🔗 Native
- 📝 Changelog
- 👨👩👧👦 Contributors
Overview
🔦 Highlights
🔗 Native ipfs:// and ipns:// URIs work as input
Commands that take a path or CID now also accept native IPFS URIs: ipfs://<cid>, ipns://<name>, and the shorter ipfs:<cid> and ipns:<name> forms. ipfs cat ipfs://<cid> now behaves the same as ipfs cat /ipfs/<cid> or ipfs cat <cid>.
ipfs:// and ipns:// are how web browsers, browser extensions, and many non-IPFS apps link to and share IPFS content. Before, you had to rewrite such an address into an /ipfs/ path before Kubo would take it. Now you can copy a URI from a browser address bar and paste it straight into the CLI or the RPC API.
This works wherever a path or CID is accepted, including cat, get, ls, refs, dag, block, pin, files, and name resolve. The scheme is case-insensitive, and the CID or name after it is left untouched.
🛜 One-time notice when behind CGNAT
Kubo now logs a one-time notice to stderr at startup when it detects it is behind carrier-grade NAT (CGNAT) or double NAT. CGNAT is common on IPv4-scarce ISPs that share one public address across many subscribers: other peers cannot reach the node directly, and a busy node can fill the shared NAT session table and disrupt internet access for every device on the local network. The notice gives that otherwise hard-to-diagnose "my whole home network drops" symptom a clear cause.
Detection is best-effort and conservative: it fires only when a private or shared-range (100.64.0.0/10, RFC 6598) address appears as a NAT-mapped WAN address (via UPnP/NAT-PMP/PCP) that is not one of the node's own interfaces. Kubo ignores addresses on a local interface, so VPN and overlay tools that use 100.64.0.0/10 (such as Tailscale) do not trigger it; when the upstream address is hidden, the node looks like any ordinary NAT and Kubo stays quiet. ipfs swarm addrs autonat reports the current classification in its nat field (--enc=json).
Silence the notice with Internal.CGNATCheck=false. The dead-listener diagnostic added in v0.42 can now be toggled too, with Internal.DeadListenerCheck.
🩺 AutoTLS checks broker health before registration
AutoTLS certificate issuance depends on the ACME DNS-01 broker at AutoTLS.RegistrationEndpoint (registration.libp2p.direct by default). Before, a publicly reachable node without a certificate would attempt ACME issuance even when that broker was unreachable (offline network, firewall, service outage) and keep retrying in the background for days, filling logs with errors that could not resolve themselves.
Now the broker's health endpoint is checked right before the first registration attempt, after the registration delay (1h by default, none when AutoTLS.Enabled=true is set explicitly) and once the node is publicly reachable. While the broker keeps failing the check, certificate setup is postponed with a single ERROR in the log and one cheap re-check per hour, and issuance starts automatically once the broker recovers. Nodes that already have a certificate are unaffected, and short-lived nodes (such as CI runners) produce no broker traffic at all.
🕒 Revamped TTL and expiration handling for IPNS and DNSLink
A record's own lifetime and TTL now govern both how Kubo creates it and how long clients may cache it, and a cache never outlives the record's validity. This applies when ipfs name publish creates an IPNS record, and when the gateway serves IPNS and DNSLink responses.
At publish time, ipfs name publish sanitizes its duration flags before creating an IPNS record, instead of emitting one that fails verification later:
--lifetimemust be greater than zero; a non-positive value would expire the record immediately.--ttlmust be non-negative. An explicit--ttlgreater than--lifetimeis rejected; an omitted--ttlis capped to--lifetime, since a record is not cached past its validity.
Important
The daemon now refuses to start when Ipns.RecordLifetime is shorter than Ipns.RepublishPeriod: records would expire before the republisher refreshes them, leaving the name unresolvable. Raise Ipns.RecordLifetime or lower Ipns.RepublishPeriod so the lifetime is at least the period.
On the serving side, the gateway derives a client's cache lifetime from the record itself:
- DNSLink websites (
/ipns/<dnslink-host>) setCache-Control: max-agefrom the DNS TXT record's own TTL, so a browser or CDN caches the site for as long as its DNS record allows and re-fetches once that expires, instead of following a fixed default that cached short-lived records too long and long-lived ones too briefly. This needs a resolver that reports TTLs: Go's built-in OS resolver does not, so pointDNS.Resolversat a DNS-over-HTTPS endpoint (a.entry covers every domain) to turn it on. Without one, DNSLink caching is unchanged. When a name resolves through several hops (a DNSLink pointing at an IPNS name, or a chain of them), the shortest TTL along the way wins. - IPNS records cap their
Cache-Control: max-ageto the time left before the record expires (its EOL), so a cache cannot serve a record past the point it stops being valid. An already-expired record, or one whose expiration is unknown, returnsno-store, and a malformed record's negative TTL is floored at zero instead of surfacing as a negativemax-age. This covers both gateway IPNS responses and/routing/v1/ipnswhen the delegated routing server is enabled (boxo#1166). - Revalidation with
If-None-MatchorIf-Modified-Sincenow returnsEtagandCache-Controlon the304 Not Modifiedresponse, matching what the200would send. A bare 304 used to leave the client's stored copy expired, forcing a fresh revalidation on every later request even when the content had not changed (boxo#1188).
For resolved names, a cache hit reports the time remaining on the cache entry rather than the record's original TTL, so a late hit near expiry no longer restarts the full caching window on the client. Ipns.MaxCacheTTL still caps the reported value.
🛑 Clearer errors for invalid config at startup
When startup config is invalid, Kubo now stops with an error that names the problem instead of exiting abruptly. One case is an unsupported hole-punching setup: Swarm.EnableHolePunching set to true while Swarm.RelayClient.Enabled is false. Hole punching needs the relay client to coordinate the upgrade from a relayed to a direct connection, so the error now names both settings.
The same path also covers deprecated Provider and Reprovider settings, removed providing options, delegated routing with providing enabled, private-network auto routing, and the removed IPFS_REUSEPORT environment variable.
🗂️ ipfs files no longer hangs when garbage collection runs
Running ipfs repo gc at the same time as MFS writes could get the whole MFS (Mutable File System) stuck: every later ipfs files command would hang, the damage could persist across restarts, and the daemon had to be force-killed to recover. It mostly hit busy nodes that write to MFS from several processes at once and run GC often.
The cause was garbage collection deleting blocks that an in-progress write had just added but had not yet linked into the saved MFS root, leaving the tree pointing at data that no longer existed. Kubo now takes the same lock ipfs add uses around every MFS change (from ipfs files, ipfs add --to-files, and the FUSE /mfs and /ipns mounts) and reads the MFS root while that lock is held, so GC can no longer collect data a live write still needs. As with ipfs add, a garbage collection run and in-flight MFS writes now briefly hold each other off; under GC-heavy load a single write can pause for the length of a GC and, with a short client timeout, look like it timed out and then succeed on retry.
MFS also stops hanging when a block it needs is missing or unreachable, whether from a repo damaged by an older Kubo, a manual ipfs block rm, a crash, or lazily-referenced content whose providers have gone away. Before, the first operation to reach that block would wait forever, freezing the whole MFS and blocking a clean shutdown. Now such an operation ends with an error instead: a lookup that stalls gives up on its own after a timeout, and ipfs files read and ipfs files write respect --timeout, so a stuck read or write returns and the daemon stays responsive. Content lazily referenced with ipfs files cp /ipfs/<cid> still loads from the network as before.
Thanks to Rinse12 from the bitsocial.net community for stress-testing MFS and surfacing the mechanics with clear reproduction steps.
🔑 ipfs config replace keeps PeerID and private key in sync
ipfs config replace now re-derives Identity.PeerID from the node's existing private key, which cannot be set over the Kubo RPC API. You can now roll one shared config out across a fleet: replace it onto every node, and each keeps its own identity even when the file carries another node's PeerID. To change a node's identity deliberately, stop the daemon and run ipfs key rotate.
🔐 secp256k1 key generation, export, and import
Kubo can now generate secp256k1 keys and move them in and out as PEM files. Until now ipfs key gen --type=secp256k1 failed with unrecognized key type, and secp256k1 keys could not be exported to PEM: the PEM PKCS #8 support went through Go's crypto/x509, which does not know the secp256k1 curve.
ipfs key gen, ipfs key rotate, and ipfs init all accept --type=secp256k1 (-a secp256k1 for ipfs init). ipfs key export --format=pem-pkcs8-cleartext and ipfs key import handle secp256k1 like the other key types, so keys move between Kubo and tools such as OpenSSL in both directions:
$ openssl ecparam -name secp256k1 -genkey -noout | openssl pkcs8 -topk8 -nocrypt > secp.pem $ ipfs key import mykey --format=pem-pkcs8-cleartext secp.pem
ed25519 and secp256k1 keys are always 256 bits, so --size (--bits for ipfs init) is accepted only when it is 256 and rejected otherwise.
🔄 Sturdier DHT reprovides on large nodes
go-libp2p-kad-dht v0.41.0 lowers peak memory during reprovides on nodes that announce many CIDs, so low-memory consumer devices are less likely to be out-of-memory killed. More in kad-dht#1259.
📡 Future-proofing browser retrieval: webrtc-direct v2
/webrtc-direct and /quic-v1/webtransport, both on by default, are the two transports that let a web browser fetch content straight from your node: no gateway in the middle, no signalling server, no CA-issued certificate. Browsers are moving underneath both. Chrome and Firefox have breaking changes in flight, and Safari requires a setting servers were not sending. The go-libp2p v0.49.0 in this release keeps your node ready for browsers on both sides of those changes, with nothing to configure.
For webrtc-direct, Chrome has already merged the removal of the SDP-rewriting behavior the original (v1) handshake relies on, gated for now behind the WebRTC-NoSdpMangleUfrag field trial. Once that reaches stable, Chrome can no longer dial a v1-only server. Kubo now also accepts the replacement (v2) handshake on the same port, so your node is ready before browsers switch, and old clients keep working. More in go-libp2p#3520, and libp2p/specs#672 tracks progress across the other libp2p implementations.
Two more webrtc-direct fixes ship in the same bump:
- Your node's
/certhashaddress now survives restarts. It used to change on every start (the certificate behind it was minted at random each time), so every cached copy of your address in other peers' address books and in DHT records kept going stale. The certificate is now derived from your node's identity key: the certhash changes one final time when you upgrade, then stays put for as long as you keep the same key. More in go-libp2p#3512. - On a node AutoNAT had confirmed publicly reachable,
/webrtc-directsilently went missing from the confirmed-address list, a side effect of sharing UDP port 4001 with/quic-v1in the default config.ipfs swarm addrs autonatdid not report it. On nodes configured to publish provider records to a delegated HTTP router, the records went out without the/webrtc-directaddress, so a browser that discovered your node that way could not dial it over this transport. Regular DHT announcements were unaffected. Fixed in go-libp2p#3526, and confirmed addresses also stop periodically flapping back tounknown(go-libp2p#3528).
🌐 Future-proofing browser retrieval: WebTransport draft-15
WebTransport is the other transport a browser can use to dial your node directly. It is still an IETF draft, and browsers implement different draft versions. The /quic-v1/webtransport listener now answers them all:
- draft-15 renamed the two values that identify a WebTransport session on the wire. Every shipping browser still sends the old names, but Firefox is already implementing the new ones, and a server that only knows the old pair would stop answering Firefox the day that ships. Your node now answers to both.
- Safari (26.4 and later) does not complete the WebTransport handshake unless the server sends the
WT_MAX_SESSIONSsession limit from an earlier draft. Your node now sends it, so Safari can open sessions it previously could not.
Nothing to do today. More in go-libp2p#3532. The same update closes a memory-exhaustion hole in the WebTransport server, covered in Security fixes below.
One regression, and it is go-to-go only: when dialing out over WebTransport, Kubo now speaks only draft-15, so it can no longer dial peers running older go-libp2p over this transport. Those peers can still dial your node, and go-to-go connections prefer plain /quic-v1 on the same UDP port anyway. WebTransport is there for browsers, and browsers are unaffected.
🧭 Delegated routers now hand browsers an address they can dial
This one is for nodes that send provider records to an HTTP router, which today means Routing.Type=custom with a provide entry in Routing.Methods. The default auto provides over the DHT alone and is unaffected.
Those records now carry every address the node announces, including the AutoTLS /tls/ws and webrtc-direct ones. The DHT already published those two; the HTTP path dropped them. Loopback and LAN addresses stay out of the record whenever the node has a public one.
Before, a publicly reachable node with AutoTLS or webrtc-direct enabled published records listing only tcp, quic-v1, and webtransport. No browser can dial any of those. ipfs id still showed the missing addresses and the node was still listening on them, so everything looked healthy while browsers that found the node through a delegated router had nothing to connect with.
That gap broke browser-first apps. Bitsocial runs libp2p in the browser, uses delegated routers only to find peers, and fetches posts straight from those peers. A record without /tls/ws or webrtc-direct is a record its readers cannot use, no matter how reachable the node behind it is. See #11369.
🗺️ Fewer stale addresses in the peerstore
Your node remembers addresses for peers it hears about, and dead ones pile up and waste dial attempts. Two fixes trim them:
- When a peer announces a newer signed address list, it now replaces the stored one instead of merging into it. Addresses in use by a live connection are kept. More in go-libp2p#3487.
- Kubo no longer puts empty addresses into the signed records it announces about itself, which other implementations error out on. More in go-libp2p#3494.
The new Internal.NonPublicAddrPublishing flag controls whether your node publishes addresses the wider internet cannot reach, such as private, CGNAT, and loopback ranges. Set it to false to keep them out of the signed peer record and the DHT, or true to publish them, which is what a LAN-only node wants. Leave it unset to follow go-libp2p's defaults, which are known to change.
🕳️ Behind NAT: faster relay recovery, dependable shutdown
A node behind NAT depends on circuit relays to stay reachable and to hole punch direct connections. When such a node lost its relay (a relay restart, a dropped connection), it put that same known-good relay on a penalty list for up to an hour before trying it again, and could sit without a relayed address, invisible to inbound peers, for that long. Only failed attempts to reserve a slot count against a relay now, so your node reconnects to a lost relay right away. More in go-libp2p#3482.
Two rare shutdown races in the same machinery are fixed as well: hole punching discovering the node's first public address at the moment of shutdown could leave ipfs daemon hanging on exit until force-killed (go-libp2p#3504), and stopping the daemon mid-reachability-check could crash it (go-libp2p#3528).
🚮 ipfs init no longer creates an IPNS record
Since the earliest days, ipfs init published an IPNS record for the node's own key pointing at an empty directory. The record was effectively invisible (the DHT discarded records stored without a receive timestamp), so resolving an unpublished name failed as expected. With this release's unified record storage the record would have become visible to the network, making every fresh node's name resolve to an empty directory instead of failing until the first real ipfs name publish. The publish is removed; ipfs init still pins the empty directory. Resolving a never-published name now consistently returns an error.
📛 Unified IPNS record storage
Offline resolution (offline nodes, --offline commands, and Gateway.NoFetch gateways) and the DHT now share one value store, under a dedicated /dht prefix in the repo datastore (/dht/pk/..., /dht/ipns/...). So a name resolves the same whether your node is reachable or not: publish online and it still resolves offline; publish offline and peers get it once you reconnect.
How long a record lives depends on whether a DHT is running. A running DHT drops value records not refreshed within 48h (amino.DefaultMaxRecordAge); your own survive because the republisher re-announces them every Ipns.RepublishPeriod (4h default). An offline node runs no DHT, so nothing sweeps the store and records last until their IPNS EOL, as offline resolution always has.
On first daemon start after upgrading, Kubo clears the old root-level records (pre-v0.42 layout) once in the background; they return in the new layout as they are republished. Provider records keep their /providers/... prefix, untouched.
The cleanup runs in the background and does not block startup, but it has to scan every key in the datastore once, because the stale records sit at the datastore root with no shared prefix to narrow the search. On a large repo the first start after upgrading can spend extra time on this. A marker is written once the scan finishes, so later starts skip it entirely.
🧪 Tests use new go-test and rand v2
The new go-test is upgraded to use math/rand/v2 in all of its packages. The /go-test/random package now allows reuse of the random number generator for more efficiently generating sets of random values.
Additionally, the /go-test/random package removes support for a global seed for the random number generator. This led to the possibility of multiple tests setting the global seed to generate deterministic values, and breaking other tests by causing the generator to generate unexpected values. This breakage could be intermittent and difficult to debug, depending on the how/which tests ran at the same time.
Since the underlying pseudo-random number generator was changed in the go-test module, the data generated for a given seed also changed. This required updating tests that relied on seeding the generator and getting expected values.
🖥️ WebUI Improvements
IPFS Web UI has been updated to v4.13.0.
Share Link only ever produced a public gateway URL, so everything you shared depended on a server someone else runs. A new "Sharing IPFS Links" section in Settings lets you pick native ipfs:// and ipns:// addresses instead. This is opt-in: the default still points at dweb.link.
Through Docker or a reverse proxy, the Web UI handed out dead links built from Addresses.Gateway, usually /ip4/0.0.0.0/tcp/8080. The new "Local HTTP Gateway" field takes a URL your browser can reach.
Removing files through the selection toolbar left their pins behind. It now offers the "Also remove local pin (recommended)" checkbox.
🧵 A truncated CAR response now says so
A CAR response that stopped partway through used to look exactly like a complete one, so a client could accept a short DAG as the whole thing. Such a response now ends with [Gateway Error: CAR stream truncated, response is incomplete], which makes the trailing bytes invalid CAR: a reader stops with an error instead of trusting what it got. If you run a gateway behind a reverse proxy or a CDN, a short response now identifies itself instead of leaving you to guess which hop dropped it.
The gateway also caps how deep a CAR response descends into a DAG at 1024 levels, far beyond anything UnixFS produces: traversal cost grows with depth, and the cap stops an adversarially nested DAG from eating memory. A response cut at the limit ends with the same marker (boxo#1197).
🔒 Security fixes: update recommended
This release closes several memory-exhaustion and crash issues, some of them already public. Update when you can.
- Pubsub memory exhaustion (CVE-2026-46679): a remote peer could subscribe to an endless stream of unique topic names, disconnect, and leave your node holding every one of them, with memory growing each round until a restart. Kubo now frees a topic's state once the last peer leaves it and limits how much a peer can pack into a single control message. Only nodes that turn pubsub on are affected, through
Pubsub.EnabledorIpns.UsePubsub; if you set either, update as soon as you can. The Go and Python libp2p ports track the same pattern in go-libp2p-pubsub#705 and py-libp2p#1349. - WebTransport memory exhaustion (CVE-2026-57497): a peer could send a WebTransport message of a type your node did not recognise, and your node would hold the whole body in memory while skipping past it. A big enough message, or enough of them, exhausts memory. Affects any node listening on
/quic-v1/webtransport, which is the default. - HTTP/3 trailer decompression memory exhaustion (CVE-2026-40898): quic-go limited the compressed size of incoming HTTP/3 trailers but not their decoded size, so a crafted message could expand to about fifty times its wire size in memory. Kubo runs quic-go's HTTP/3 server as part of the default WebTransport listener; the quic-go v0.60.0 in this release includes the fix.
- libp2p resource caps: a hostile peer could flood your peerstore with unconnected addresses (go-libp2p#3486), plant more than 1,800 protocol entries through chunked identify messages (go-libp2p#3501), or attach an unbounded number of addresses to one
webrtc-directconnection (go-libp2p#3500). Each is now bounded. - Daemon crash on routing queries (go-libp2p#3490): a data race could corrupt the results streamed by
ipfs routing findprovs,ipfs routing findpeer, andipfs dht query, taking the whole daemon down mid-response. - Tracing exporter memory (CVE-2026-39882): a hostile or man-in-the-middle collector could exhaust memory through the OpenTelemetry OTLP HTTP exporter. Affects nodes that export traces over OTLP HTTP.
📦️ Dependency updates
- update
ipfs-webuito v4.13.0 - update
go-libp2pto v0.49.0 - update
go-libp2p-pubsubto v0.17.0 - update
go-libp2p-kad-dhtto v0.42.1 (incl. v0.42.0, v0.41.0 and the local record validation fix); see Unified IPNS record storage above - update
boxoto v0.42.1 (incl. v0.42.0, v0.41.0); see Revamped TTL and expiration handling for IPNS and DNSLink and Unified IPNS record storage above, plus a bitswap fix so fetches from a just-reconnected peer no longer stall (boxo#1164), a fix so HTTP providers on IPv6 addresses are dialed correctly (boxo#1196), and shorter stale windows on cached/routing/v1responses so clients stop getting long-dead peer addresses (boxo#1195); also pulls ingo-doh-resolverv0.6.0 andgo-multiaddr-dnsv0.6.0 - update
p2p-forge/clientto v0.10.1 (incl. v0.10.0, v0.9.1, v0.9.0, v0.8.1); a node that comes back online after its AutoTLS certificate expired now discards it and requests a fresh one, instead of retrying a renewal the CA always rejects - update
go-ds-pebbleto v0.5.12 - updates
github.com/cockroachdb/pebbleto v2.1.6
📝 Changelog
Full Changelog
- github.com/ipfs/kubo:
- chore: set version to v0.43.0-rc2
- test: fix flakes that force CI re-runs (#11413) (ipfs/kubo#11413)
- chore: restore default telemetry for now (#11415) (ipfs/kubo#11415)
- fix(http-routing): keep browser transports in provider records (#11394) (ipfs/kubo#11394)
- chore: update p2p-forge to v0.10.1 (#11414) (ipfs/kubo#11414)
- docs: go-libp2p v0.49.0 + boxo v0.42.1 (#11410) (ipfs/kubo#11410)
- chore: upgrade to boxo v0.42.1 + go-libp2p to v0.49 (#11412) (ipfs/kubo#11412)
- fix: harden CAR streaming and truncation (#11409) (ipfs/kubo#11409)
- chore: set version to v0.43.0-rc1
- chore: go 1.26.5 and deps (#11400) (ipfs/kubo#11400)
- docs: add contribution and stability guardrails
- chore: upgrade to boxo v0.42.0 (#11399) (ipfs/kubo#11399)
- chore: bump go-libp2p-kad-dht to v0.42 (#11398) (ipfs/kubo#11398)
- feat(autotls): skip issuance when broker is down (#11397) (ipfs/kubo#11397)
- fix: update go-test module (#11390) (ipfs/kubo#11390)
- chore: update webui to v4.13.0 (#11396) (ipfs/kubo#11396)
- upgrade go-libp2p-pubsub to v0.17.0 (#11391) (ipfs/kubo#11391)
- chore(deps): bump go-libp2p and go-libp2p-pubsub (#11389) (ipfs/kubo#11389)
- docs: clarify open vs NoFetch gateway recipes (#11382) (ipfs/kubo#11382)
- fix(key): restore secp256k1 keygen and add PEM PKCS8 import/export (#11387) (ipfs/kubo#11387)
- fix(mfs): stop repo gc from freezing files ops (#11386) (ipfs/kubo#11386)
- chore(deps): bump go-libp2p-kad-dht to v0.41.0 (#11377) (ipfs/kubo#11377)
- feat(cli): accept native ipfs:// and ipns:// URIs (#11375) (ipfs/kubo#11375)
- Fix check for opt-in and opt-out messages (#11383) (ipfs/kubo#11383)
- feat: make telemetry opt-in (#11374) (ipfs/kubo#11374)
- docs(changelog): merge startup config entries (#11376) (ipfs/kubo#11376)
- fix(daemon): return config errors instead of calling log.Fatal (#11373) (ipfs/kubo#11373)
- test: cover ipfs get paths containing closing bracket (#11359) (ipfs/kubo#11359)
- fix(config): protect and derive PeerID during JSON replace (#11344) (ipfs/kubo#11344)
- chore: bump p2p-forge to v0.9.1 (#11368) (ipfs/kubo#11368)
- fix: return error instead of log.Fatal in HolePunching (#11365) (ipfs/kubo#11365)
- docs: clarify optimistic provide is default-on (#11363) (ipfs/kubo#11363)
- upgrade to go-ds-pebble v0.5.12 (#11361) (ipfs/kubo#11361)
- chore: upgrade to boxo v0.41.0 (#11356) (ipfs/kubo#11356)
- Merge release v0.42.0 (ipfs/kubo#11357)
- feat(libp2p): warn when behind CGNAT (#11352) (ipfs/kubo#11352)
- fix: avoid redundant cidset in dag stat (#11353) (ipfs/kubo#11353)
- fix: bound ipns caching and validate lifetimes (#11349) (ipfs/kubo#11349)
- chore: go 1.26.4 (#11350) (ipfs/kubo#11350)
- fix(libp2p): quieter dead-listener check (#11342) (ipfs/kubo#11342)
- feat: derive AgentSuffix from build origin (#11341) (ipfs/kubo#11341)
- chore(deps): bump p2p-forge to 0.9.0 (#11336) (ipfs/kubo#11336)
- chore: start v0.43.0 dev cycle
- github.com/ipfs/boxo (v0.40.0 -> v0.42.1):
- Release v0.42.1 (ipfs/boxo#1200)
- chore: upgrade to go-libp2p v0.49.0 (#1198) (ipfs/boxo#1198)
- fix: shorten /routing/v1 stale windows (#1195) (ipfs/boxo#1195)
- fix(bitswap): bracket IPv6 hosts in provider URLs (#1196) (ipfs/boxo#1196)
- fix: harden dag traversal and CAR responses (#1197) (ipfs/boxo#1197)
- Release v0.42.0 (ipfs/boxo#1193)
- refactor: use one same base32 package (#1192) (ipfs/boxo#1192)
- chore: update dependencies (#1191) (ipfs/boxo#1191)
- chore: bump go-libp2p-kad-dht to v0.42 (#1189) (ipfs/boxo#1189)
- fix(gateway): renew cache freshness on 304 (#1188) (ipfs/boxo#1188)
- feat(namesys): propagate DNSLink TXT TTL (#1167) (ipfs/boxo#1167)
- fix: update go-test (#1187) (ipfs/boxo#1187)
- update dependencies (#1186) (ipfs/boxo#1186)
- feat(mfs): bound under-lock DAG reads (#1185) (ipfs/boxo#1185)
- feat(blockstore): expose BloomCacheStatus and add bloom filter Rebuild (#1184) (ipfs/boxo#1184)
- fix(blockstore): don't activate bloom cache if build incomplete (#1183) (ipfs/boxo#1183)
- feat(path): add NewPathFromURI for ipfs:// URIs (#1182) (ipfs/boxo#1182)
- do not use dedup cache for reprovide queue (#1181) (ipfs/boxo#1181)
- feat(gateway): always answer empty identity probe (ipfs/boxo#1179)
- chore: improve reprovider with batch queue reads (ipfs/boxo#1173)
- Release v0.41.0 (#1175) (ipfs/boxo#1175)
- feat(dag): injectable visited-set in dag traverse (#1168) (ipfs/boxo#1168)
- chore: remove defunct old queue package (#1172) (ipfs/boxo#1172)
- chore: upgrade go-car/v2 to v2.17.0 (#1170) (ipfs/boxo#1170)
- chore: upgrade to go-ipld-prime v0.24.0 (#1169) (ipfs/boxo#1169)
- fix: bound ipns cache-control to record eol (#1166) (ipfs/boxo#1166)
- fix(bitswap): don't mark peer unresponsive on a single send failure (#1164) (ipfs/boxo#1164)
- change kubo PR name in release procedure (ipfs/boxo#1165)
- chore: bump OTLP exporters to v1.43.0 (#1162) (ipfs/boxo#1162)
- github.com/ipfs/go-block-format (v0.2.3 -> v0.2.4):
- new version (#71) (ipfs/go-block-format#71)
- feat: NewBlockWithPrefix constructor (#70) (ipfs/go-block-format#70)
- update dependencies and README (#69) (ipfs/go-block-format#69)
- github.com/ipfs/go-cid (v0.6.1 -> v0.6.2):
- update release version (#186) (ipfs/go-cid#186)
- use errors.New for error strings without formatting (#187) (ipfs/go-cid#187)
- revise README badges and remove maintainer info (#185) (ipfs/go-cid#185)
- chore: modernize code and update dependencies (#184) (ipfs/go-cid#184)
- github.com/ipfs/go-cidutil (v0.1.1 -> v0.1.2):
- new version (#61) (ipfs/go-cidutil#61)
- update dependencies and README (#60) (ipfs/go-cidutil#60)
- github.com/ipfs/go-datastore (v0.9.1 -> v0.9.2):
- bump version (#273) (ipfs/go-datastore#273)
- Update README.md by removing badge links
- chore: update error checks (#272) (ipfs/go-datastore#272)
- github.com/ipfs/go-ds-flatfs (v0.6.0 -> v0.6.1):
- new version (#152) (ipfs/go-ds-flatfs#152)
- modernize tests (#151) (ipfs/go-ds-flatfs#151)
- fix: make last batch operation take effect (#150) (ipfs/go-ds-flatfs#150)
- github.com/ipfs/go-ds-leveldb (v0.5.2 -> v0.5.3):
- chore: release v0.5.3 (#85) (ipfs/go-ds-leveldb#85)
- modernize tests (#84) (ipfs/go-ds-leveldb#84)
- update dependencies (#83) (ipfs/go-ds-leveldb#83)
- Update go datastore and README links (#77) (ipfs/go-ds-leveldb#77)
- github.com/ipfs/go-ds-measure (v0.2.2 -> v0.2.3):
- chore: release v0.2.3 (ipfs/go-ds-measure#63)
- github.com/ipfs/go-ds-pebble (v0.5.11 -> v0.5.12):
- update version (#89) (ipfs/go-ds-pebble#89)
- github.com/ipfs/go-ipld-cbor (v0.2.1 -> v0.3.0):
- chore: v0.3.0 bump (#125) (ipfs/go-ipld-cbor#125)
- feat: increased strictness in decoding (#124) (ipfs/go-ipld-cbor#124)
- chore: simplify hashing test (#123) (ipfs/go-ipld-cbor#123)
- github.com/ipfs/go-ipld-format (v0.6.3 -> v0.6.4):
- bump version (#107) (ipfs/go-ipld-format#107)
- update dependencies (#106) (ipfs/go-ipld-format#106)
- refactor: modernize code (#103) (ipfs/go-ipld-format#103)
- Revise README badges and sections (#101) (ipfs/go-ipld-format#101)
- github.com/ipfs/go-ipld-git (v0.1.1 -> v0.1.3):
- fix: validate object fields before use (#77) (ipfs/go-ipld-git#77)
- bump version (#76) (ipfs/go-ipld-git#76)
- chore: update dependencies (#74) (ipfs/go-ipld-git#74)
- sync: update CI config files (#56) (ipfs/go-ipld-git#56)
- sync: update CI config files (#54) (ipfs/go-ipld-git#54)
- github.com/ipfs/go-test (v0.3.0 -> v0.4.1):
- bump version to v0.4.1 (#41) (ipfs/go-test#41)
- release v0.4.0 (#39) (ipfs/go-test#39)
- feat: allow reuse of random source plus upgrades and fixes, (#37) (ipfs/go-test#37)
- github.com/ipfs/go-unixfsnode (v1.10.4 -> v1.10.6):
- fix: use bitfield.FromBytes for HAMT bitmaps (#100) (ipfs/go-unixfsnode#100)
- new version (#99) (ipfs/go-unixfsnode#99)
- update random name and data generation in tests (#98) (ipfs/go-unixfsnode#98)
- github.com/ipld/go-car/v2 (v2.16.1-0.20260428045700-c4b9f366f20c -> v2.17.0):
- chore: v2.17.0 bump (#672) (ipld/go-car#672)
- github.com/ipld/go-ipld-prime (v0.23.0 -> v0.24.0):
failed to fetch repo - github.com/ipshipyard/p2p-forge (v0.9.0 -> v0.10.1):
- fix(client): discard expired cert on startup (#95) (ipshipyard/p2p-forge#95)
- dns: repoint registration NS to new cloudflare account (#93) (ipshipyard/p2p-forge#93)
- feat(client): check broker health before issuance (#91) (ipshipyard/p2p-forge#91)
- fix(client): keep registration on one LB backend (#90) (ipshipyard/p2p-forge#90)
- github.com/libp2p/go-doh-resolver (v0.5.0 -> v0.6.0):
- feat: add LookupTXTWithTTL to expose TXT record TTL (#33) (libp2p/go-doh-resolver#33)
- chore!: bump go.mod to Go 1.25 and run go fix (#36) (libp2p/go-doh-resolver#36)
- github.com/libp2p/go-libp2p (v0.48.0 -> v0.49.0):
- Release v0.49.0
- chore: update deps
- test(basichost): cancel in-flight refresh probes
- refactor(autonatv2): unlock pickServer via defer
- docs(basichost): fix stale const name in comments
- fix(basichost): probe secondary addrs on the same 1h cadence as primaries
- fix(autonatv2): don't panic in GetReachability after Close
- test(basichost): actually spawn workers in refreshReachability cancellation test
- fix(basichost): score webrtc-direct addrs with P_WEBRTC_DIRECT
- fix(basichost): log updated host addrs, not local addrs
- fix(basichost): handle unsorted confirmed addrs from reachability tracker (#3526) (libp2p/go-libp2p#3526)
- fix(eventbus): fix concurrency bug for slow logs (#3518) (libp2p/go-libp2p#3518)
- feat(webrtc): support webrtc-direct v2 (#3520) (libp2p/go-libp2p#3520)
- feat(webrtc): stable /certhash across restarts (#3512) (libp2p/go-libp2p#3512)
- http/auth: close intermediate peer ID auth handshake responses (#3510) (libp2p/go-libp2p#3510)
- feat(websocket): share /ws and /wss port with HTTP Server (#3509) (libp2p/go-libp2p#3509)
- feat(autonatv2): expose AllowPrivateAddrs via an Option (#3513) (libp2p/go-libp2p#3513)
- refactor(swarm): move the connected / disconnected callbacks into the events emitter (#3503) (libp2p/go-libp2p#3503)
- fix(holepunch): defer mutex unlock to avoid deadlock on shutdown (#3504) (libp2p/go-libp2p#3504)
- p2p/protocol/identify: bound the number of protocols accepted from peers (#3501) (libp2p/go-libp2p#3501)
- Add ability to pass through TLS options to the QUIC transport. (#3481) (libp2p/go-libp2p#3481)
- fix(webrtc): cap remote addresses per ufrag (#3500) (libp2p/go-libp2p#3500)
- Interrupt websocket reads during close (#3496) (libp2p/go-libp2p#3496)
- fix(config): emit fx DI registration events at debug level (#3498) (libp2p/go-libp2p#3498)
- feat(pstore): cap unconnected addrs per peer (#3486) (libp2p/go-libp2p#3486)
- fix(peerstore): replace stale addrs on newer signed peer record (#3487) (libp2p/go-libp2p#3487)
- fix(peer): drop empty addrs in peer records (#3494) (libp2p/go-libp2p#3494)
- fix(routing): prevent QueryEvent publish races (#3490) (libp2p/go-libp2p#3490)
- feat: NonPublicAddrPublishing option (#3489) (libp2p/go-libp2p#3489)
- fix: relay candidate added into backoff list even if reservation on that relay candidate success (#3482) (libp2p/go-libp2p#3482)
- github.com/libp2p/go-libp2p-kad-dht (v0.40.0 -> v0.42.1):
- chore: release v0.42.1 (#1286) (libp2p/go-libp2p-kad-dht#1286)
- fix: validate local records in SearchValue (#1285) (libp2p/go-libp2p-kad-dht#1285)
- chore: release v0.42.0 (#1284) (libp2p/go-libp2p-kad-dht#1284)
- refactor: remove lifecycle context from constructors (#1282) (libp2p/go-libp2p-kad-dht#1282)
- refactor(records): consolidate records persistence (#1277) (libp2p/go-libp2p-kad-dht#1277)
- refactor(pb): bound the serialized size of a peer record (#1281) (libp2p/go-libp2p-kad-dht#1281)
- chore: migrate from math/rand to math/rand/v2 (#1280) (libp2p/go-libp2p-kad-dht#1280)
- test: give TestProvidesMany's lookups a deadline that fits a loaded machine (#1278) (libp2p/go-libp2p-kad-dht#1278)
- upgrade go-test to v0.4.0 (#1275) (libp2p/go-libp2p-kad-dht#1275)
- test: fix flaky TestOptimisticProvide timeout and peerIDs seeding (#1276) (libp2p/go-libp2p-kad-dht#1276)
- Update dependencies (#1273) (libp2p/go-libp2p-kad-dht#1273)
- fix: correct delete-error check in provider gc (#1271) (libp2p/go-libp2p-kad-dht#1271)
- fix: cap closer peers accepted per response (#1270) (libp2p/go-libp2p-kad-dht#1270)
- chore: release v0.41.0 (#1269) (libp2p/go-libp2p-kad-dht#1269)
- fix(provider): cover full keyspace when peers cluster under one prefix (#1265) (libp2p/go-libp2p-kad-dht#1265)
- fix(provider): reprovide all regions when resume is disabled (#1267) (libp2p/go-libp2p-kad-dht#1267)
- fix: cut reprovide peak memory with key count (#1259) (libp2p/go-libp2p-kad-dht#1259)
- tests: fix flaky TestBootStrapWhenRTIsEmpty (#1264) (libp2p/go-libp2p-kad-dht#1264)
- fix(keystore): non-colliding reset slot prefixes (#1262) (libp2p/go-libp2p-kad-dht#1262)
- github.com/libp2p/go-libp2p-kbucket (v0.8.0 -> v0.9.0):
- chore: release v0.9.0 (#155) (libp2p/go-libp2p-kbucket#155)
- refactor: modernize benchmarks and slices usage (#154) (libp2p/go-libp2p-kbucket#154)
- refactor: replace Sort interface with slices.SortFunc (#153) (libp2p/go-libp2p-kbucket#153)
- refactor: modernize code (libp2p/go-libp2p-kbucket#152)
- github.com/libp2p/go-libp2p-pubsub (v0.16.0 -> v0.17.0):
- Release v0.17.0 (#720) (libp2p/go-libp2p-pubsub#720)
- docfix: contribute.md in Readme.md (#682) (libp2p/go-libp2p-pubsub#682)
- rerun validation if node publishes a previously seen message (#719) (libp2p/go-libp2p-pubsub#719)
- refactor: apply go fix modernizers (#716) (libp2p/go-libp2p-pubsub#716)
- Limit control message size of RPCs (#707) (libp2p/go-libp2p-pubsub#707)
- test: use channel-based mutex in replayActor for synctest compatibility (#718) (libp2p/go-libp2p-pubsub#718)
- Migrate to Google's protobuf library (#706) (libp2p/go-libp2p-pubsub#706)
- Remove debug logs for partial messages (#714) (libp2p/go-libp2p-pubsub#714)
- PeerFeedback is now synchronous (#711) (libp2p/go-libp2p-pubsub#711)
- test: Add tests for syncEval
- Fix flaky test assertion (#709) (libp2p/go-libp2p-pubsub#709)
- Clean up empty topic state maps (#708) (libp2p/go-libp2p-pubsub#708)
- fix gossip when topic has only partial message peers (#700) (libp2p/go-libp2p-pubsub#700)
- gossipsub: clean peer gater stats on inbound close
- gossipsub: clean up unwanted message state
- cleanup unused and redundant code (#695) (libp2p/go-libp2p-pubsub#695)
- fix: attempt to initialize fanout when empty (#696) (libp2p/go-libp2p-pubsub#696)
- Migrate tests to simlibp2p + synctest (#686) (libp2p/go-libp2p-pubsub#686)
- github.com/libp2p/go-yamux/v5 (v5.0.1 -> v5.1.0):
- Release v5.1.0
- feat: Expose RTT information
- fix: deadlock on close (#130) (libp2p/go-yamux#130)
- github.com/multiformats/go-multiaddr-dns (v0.5.0 -> v0.6.0):
- feat: add LookupTXTWithTTL to Resolver (#75) (multiformats/go-multiaddr-dns#75)
👨👩👧👦 Contributors
| Contributor | Commits | Lines ± | Files Changed |
|---|---|---|---|
| @MarcoPolo | 16 | +10530/-9015 | 77 |
| @lidel | 66 | +10349/-1367 | 272 |
| @guillaumemichel | 19 | +6293/-1098 | 99 |
| @gammazero | 63 | +2882/-2124 | 213 |
| @sukunrt | 11 | +1145/-287 | 27 |
| @Sahil-4555 | 4 | +703/-101 | 12 |
| @Adel-Ayoub | 1 | +679/-15 | 11 |
| @D4ryl00 | 1 | +346/-2 | 4 |
| @blackflytech | 1 | +185/-40 | 3 |
| @morning-verlu | 1 | +143/-8 | 5 |
| @dennis-tra | 1 | +134/-14 | 4 |
| @rvagg | 5 | +107/-14 | 7 |
| @purusachdeva | 1 | +114/-0 | 2 |
| @chiragsoni81245 | 1 | +55/-3 | 3 |
| @reflecttypefor | 1 | +42/-3 | 3 |
| @gmelodie | 1 | +21/-21 | 3 |
| @web3-bot | 2 | +5/-4 | 3 |
| @laciferin2024 | 1 | +1/-1 | 1 |
| @aarshkshah1992 | 1 | +0/-2 | 1 |
Note
This release was brought to you by the Shipyard team.
- Overview
- 🔦 Highlights
- 🎯 Announce CIDs on demand with
ipfs provide once - 🧩 Export and import partial CARs with
--local-only - ⚙️
Provide.DHT.Interval=0no longer disables providing - 🐛 Fixed pin operations hanging under pinned reprovide strategies
- 🐛 Smoother first-run upgrades from very old repos
- 🐛 Reliable shutdown and container health checks
- 🚨 ERROR log for explicit listeners blocked by
Swarm.AddrFilters - 📊 OpenTelemetry: scope info now exposed as labels
- 🔧 Cleaner progress bars
- 📦️ Dependency updates
- 🎯 Announce CIDs on demand with
- 📝 Changelog
- 👨👩👧👦 Contributors
Overview
🔦 Highlights
🎯 Announce CIDs on demand with ipfs provide once
ipfs provide once <cid>... announces CIDs to the routing system immediately, without waiting for the next scheduled reprovide. Use it when you want fine-grained control over when specific CIDs are announced.
CIDs can be streamed in on stdin, so you can pipe arbitrarily large lists without growing daemon memory:
# Announce every locally pinned CID. ipfs pin ls | awk '{print $1}' | ipfs provide once
# Announce every block reachable from a root (here, ~350 GiB of Wikipedia). ipfs refs -r bafybeiaysi4s6lnjev27ln5icwm6tueaw2vdykrtjkwiphwekaywqhcjze | ipfs provide once
In a terminal, the command shows a running count of queued CIDs. With --enc=json it emits one {"Queued":"<cid>"} line per CID, so downstream scripts can consume events as they arrive.
ipfs routing provide keeps working but is deprecated. See ipfs provide once --help for usage and migration notes.
🧩 Export and import partial CARs with --local-only
ipfs dag export --local-only writes a CAR with only the blocks you have locally; any missing blocks (and their subtrees) are skipped instead of failing the export. ipfs dag import --local-only reads such a partial CAR without trying to pin its roots.
This is useful when:
- you want to share part of a DAG (for example an MFS tree) that is only partly cached locally
- you fetched a partial CAR from a gateway that supports IPIP-0402 and want to add what you got to your local store
--local-only sets the matching companion flag automatically: on export it implies --offline; on import it implies --pin-roots=false. See ipfs dag export --help and ipfs dag import --help for details.
⚙️ Provide.DHT.Interval=0 no longer disables providing
Provide.DHT.Interval=0 now disables only the periodic reprovide schedule. New CIDs still announce via fast-provide-root and ipfs provide once. To fully disable providing, set Provide.Enabled=false.
Important
The daemon now refuses to start when Provide.DHT.Interval=0 is set without an explicit Provide.Enabled. Operators upgrading from an earlier kubo version must opt in to one of the two semantics:
Provide.Enabled=falseto fully disable providing (the previous behaviour ofInterval=0).Provide.Enabled=trueto keep ad-hoc providing while skipping the periodic reprovide schedule.
The startup error names both options. Pick the one that matches your intent.
🐛 Fixed pin operations hanging under pinned reprovide strategies
ipfs pin ls, ipfs add, and other pin-touching operations could block for hours on nodes running with Provide.Strategy set to pinned, roots, or pinned+mfs (including +unique / +entities variants). The pin index held a read lock for the entire reprovide cycle, which on large pinsets takes many hours. Any pin operation issued during that window blocked, and further pin ls / ipfs add calls piled up behind it until the cycle finished.
The pinner now snapshots the index under the read lock and releases it before the reprovider starts, so pin operations are no longer blocked by the reprovide cycle. The default Provide.Strategy=all was not affected.
🐛 Smoother first-run upgrades from very old repos
The one-time migration for repos from go-ipfs or Kubo older than v0.27 now retries across several gateways with HTTP timeouts, so a single slow or blocked gateway no longer hangs the daemon. Set Migration.DownloadSources to use your own gateway list.
🐛 Reliable shutdown and container health checks
Sending SIGTERM or SIGINT to kubo could leave the daemon stuck "half-shutdown": internal subsystems had stopped, but the process kept running and answering the RPC API. Docker and Kubernetes health checks reported the node as healthy while it had quietly stopped serving content. Recovery required a manual docker restart. Separately, the pinner could log a pebble: closed panic trace when the datastore closed before ongoing pin operations finished.
What changed:
-
Bounded shutdown. A new
Internal.ShutdownTimeoutcaps how long a stuck shutdown can run, so a zombie daemon recovers instead of staying half-alive. Routine shutdowns finish in seconds; this is a belt-and-suspenders ceiling against unknown bugs and future regressions. The 12-hour default is high enough that no real-world deployment hits it and low enough to recycle a stuck node well before its DHT provider records expire (22 hours). On expiry, the daemon logs which subsystem failed and exits with status1. Set0to disable. -
ipfs diag healthysubcommand. Returns non-zero as soon as shutdown begins, even if the RPC API still answers. The kubo Docker image'sHEALTHCHECKnow uses it, so under--restart=on-failureor a Kubernetes liveness probe a half-shutdown daemon is recycled within seconds. -
Pinner shuts down cleanly. The pinner cancels and waits for ongoing pin work before the datastore closes, removing the
pebble: closedpanic trace from shutdown logs. -
DHT provider deadlines.
ipfs provide statnow returns promptly when the caller cancels, instead of blocking on a slow keystore lookup (previously seen at over an hour). Each provider record sent to a peer is capped byProvide.DHT.SendProviderRecordTimeout, so an unresponsive peer cannot stall a reprovide cycle.
🚨 ERROR log for explicit listeners blocked by Swarm.AddrFilters
If you list a specific address in Addresses.Swarm and a rule in Swarm.AddrFilters blocks it, no incoming connection reaches that listener. Kubo now logs one ERROR per such listener, naming the listener, the matching rule, and the field to remove the rule from.
The common trigger: a /ip4/127.0.0.1/tcp/.../ws listener fronted by nginx or Caddy on a server-profile node. The profile adds /ip4/127.0.0.0/ipcidr/8 to Swarm.AddrFilters, which rejects every proxy connection over loopback. See the reverse-proxy override row for the fix.
Wildcard listens (/ip4/0.0.0.0, /ip6/::) stay out of the ERROR log. Even if their interface expansion lands inside a filtered CIDR, the listener still accepts traffic on the interfaces outside that CIDR, so the filter is working as intended. These matches log at DEBUG instead, so you can still trace which interfaces an AddrFilters rule strips when you need to.
Addresses.NoAnnounce matches also log at DEBUG. Hiding addresses there is the point of the field, but the log line helps when you ask "why isn't this interface in my identify or DHT records?" and the answer is a CIDR rule you forgot you set.
📊 OpenTelemetry: scope info now exposed as labels
The Prometheus endpoint no longer emits the otel_scope_info metric. Each metric now carries otel_scope_name, otel_scope_version, and otel_scope_schema_url labels identifying the instrumentation library that produced it. Update dashboards or queries that read otel_scope_info to consume these labels instead. See docs/metrics.md for details.
🔧 Cleaner progress bars
ipfs add, ipfs cat, and ipfs get now hide their progress bar when stderr is piped or redirected, so a command like ipfs add file 2> log.txt no longer fills the log with progress-bar noise. Pass --progress=true to force the bar on, or --progress=false to hide it.
ipfs dag export and ipfs dag stat now correctly recognize MSYS2 and Git Bash terminals on Windows. Previously the bar was suppressed there even when running interactively.
📦️ Dependency updates
- update Go to 1.26.4 (incl. 1.26.3)
- update
go-libp2p-pubsubto v0.16.0 - update
go-libp2p-kad-dhtto v0.40.0 (incl. v0.39.2) - update
go-fuse/v2to v2.10.1 (incl. v2.10.0) - update
cheggaaa/pbto v3.1.7 - update
boxoto v0.40.0 - update
p2p-forge/clientto v0.9.0 (incl. v0.8.1)
📝 Changelog
Full Changelog
- github.com/ipfs/kubo:
- docs: move p2p-forge bump to v0.42 changelog
- docs: note AutoTLS local testing needs UPnP
- chore: go 1.26.4 (#11350) (ipfs/kubo#11350)
- fix(libp2p): quieter dead-listener check (#11342) (ipfs/kubo#11342)
- feat: derive AgentSuffix from build origin (#11341) (ipfs/kubo#11341)
- chore(deps): bump p2p-forge to 0.9.0 (#11336) (ipfs/kubo#11336)
- chore: set version to v0.42.0-rc1
- chore: upgrade to Boxo v0.40.0 (#11338) (ipfs/kubo#11338)
- feat(dag): add --local-only to dag export and import (#11229) (ipfs/kubo#11229)
- chore: bump go-libp2p-kad-dht to v0.40.0 (#11334) (ipfs/kubo#11334)
- refactor: migrate away from cheggaaa/pb v1 (#11322) (ipfs/kubo#11322)
- docs: firewall (ufw) walkthrough for port 4001 (#11332) (ipfs/kubo#11332)
- fix: migration fetcher robustness (#11305) (ipfs/kubo#11305)
- chore: update boxo to remove io.Seeker from files.File (#11254) (ipfs/kubo#11254)
- feat(provide): add
ipfs provide onceand support Interval=0 mode (#11321) (ipfs/kubo#11321) - feat: bound graceful shutdown, add diag healthy (#11329) (ipfs/kubo#11329)
- feat(pinner): close pinner before repo on shutdown (#11296) (ipfs/kubo#11296)
- chore(deps): bump go-libp2p-kad-dht to v0.39.2 (#11323) (ipfs/kubo#11323)
- docs: clarify denylist scope vs routing layer (#11320) (ipfs/kubo#11320)
- chore(deps): align deps with ipfs/boxo#1152 (#11313) (ipfs/kubo#11313)
- feat(config): dead listener check (#11299) (ipfs/kubo#11299)
- fix(libp2p): drop empty addrs in AddrsFactory (#11302) (ipfs/kubo#11302)
- docs: clarify blockstore cache sizing and flatfs sharding (#11303) (ipfs/kubo#11303)
- fix(test): mock GitHub API in TestUpdate (#11300) (ipfs/kubo#11300)
- fix: resolve wildcard swarm in http provides (#11297) (ipfs/kubo#11297)
- Merge release v0.41.0 (ipfs/kubo#11295)
- fix(pins): snapshot index before emitting pins (#11290) (ipfs/kubo#11290)
- Upgrade to Boxo v0.39.0 (#11294) (ipfs/kubo#11294)
- fix(log): scope provide logs to "provider" subsystem (#11289) (ipfs/kubo#11289)
- fix(defaultServerFilters): strip loopback and non-public (#11286) (ipfs/kubo#11286)
- chore: bump p2p-forge to v0.8.0 (#11285) (ipfs/kubo#11285)
- fix: queryevent addrinfo race in kad-dht (#11288) (ipfs/kubo#11288)
- fix(examples): avoid bitswap race, use ed25519 (#11282) (ipfs/kubo#11282)
- fix(fuse): accurate
st_blocksandst_blksize(#11280) (ipfs/kubo#11280) - chore: start v0.42.0 dev cycle
- github.com/ipfs/boxo (v0.39.0 -> v0.40.0):
- Release v0.40.0 (ipfs/boxo#1161)
- upgrade to go-libp2p-kad-dht v0.40.0 (ipfs/boxo#1159)
- Typos (ipfs/boxo#1158)
- fix(routing/http): cap records after filtering (#1157) (ipfs/boxo#1157)
- feat(path/resolver): populate retrieval state (#1153) (ipfs/boxo#1153)
- feat(pqm): opt-in findpeer fallback on dial fail (#1156) (ipfs/boxo#1156)
- chore: go-libp2p-kad-dht v0.39.2 (#1155) (ipfs/boxo#1155)
- fix(files): remove io.Seeker from File interface (#1128) (ipfs/boxo#1128)
- feat(pinner): add Close with ErrClosed lifecycle (#1150) (ipfs/boxo#1150)
- fix(files): support js/wasm and wasip1/wasm builds (#935) (ipfs/boxo#935)
- github.com/ipfs/go-ds-dynamodb (v0.2.2 -> v0.3.0):
- feat!: migrate to aws-sdk-go-v2 (#22) (ipfs/go-ds-dynamodb#22)
- github.com/ipfs/go-ds-pebble (v0.5.10 -> v0.5.11):
- update version for release v0.5.11 (#87) (ipfs/go-ds-pebble#87)
- github.com/ipfs/go-ipfs-cmds (v0.16.0 -> v0.16.1):
- new version (#339) (ipfs/go-ipfs-cmds#339)
- fix spelling errors (#336) (ipfs/go-ipfs-cmds#336)
- github.com/ipfs/go-log/v2 (v2.9.1 -> v2.9.2):
- v2.9.2 bump (#184) (ipfs/go-log#184)
- chore: flag WithGroup as a known no-op
- fix: resolve slog LogValuer in zap bridge
- fix: inline top-level empty-key slog.Group
- fix: support slog.Group in the zap bridge
- github.com/ipfs/go-unixfsnode (v1.10.3 -> v1.10.4):
- updete version (ipfs/go-unixfsnode#96)
- github.com/ipld/go-car/v2 (v2.16.0 -> v2.16.1-0.20260428045700-c4b9f366f20c):
- feat(cmd): Make "extract" arguments more closely mirror common archive tools (#653) (ipld/go-car#653)
- fix: use %w when wrapping errors to preserve error chain (#658) (ipld/go-car#658)
- chore(release): modernise goreleaser config
- fix: remove broken trailing data check in "inspect --full" for CARv1 (#654) (ipld/go-car#654)
- Allow the car binary to provide a version. (#645) (ipld/go-car#645)
- Add
car put-blockcommand (#629) (ipld/go-car#629)
- github.com/ipshipyard/p2p-forge (v0.8.0 -> v0.9.0):
- chore: release v0.9.0 (#89) (ipshipyard/p2p-forge#89)
- refactor: bump deps and migrate to aws-sdk-go-v2 (#88) (ipshipyard/p2p-forge#88)
- feat(client): add WithHTTPClient option (#87) (ipshipyard/p2p-forge#87)
- feat: run Corefile check before run (#77) (ipshipyard/p2p-forge#77)
- github.com/libp2p/go-libp2p-kad-dht (v0.39.1 -> v0.40.0):
- chore: release v0.40.0 (#1257) (libp2p/go-libp2p-kad-dht#1257)
- fix(ResettableKeystore): speed up reset process and keep worker responsive (#1256) (libp2p/go-libp2p-kad-dht#1256)
- fix(provider): hold cycleStatsLk in batchReprovide defer (#1255) (libp2p/go-libp2p-kad-dht#1255)
- fix(provider): per-peer timeout on ADD_PROVIDER sends (#1252) (libp2p/go-libp2p-kad-dht#1252)
- fix(provider)!: bound keystore.Size in Stats with a timeout (#1251) (libp2p/go-libp2p-kad-dht#1251)
- chore: release v0.39.2 (#1249) (libp2p/go-libp2p-kad-dht#1249)
- test: fix flaky TestStartProvidingSingle (#1247) (libp2p/go-libp2p-kad-dht#1247)
- feat(provider): allow WithReprovideInterval(0) for burst-only mode (#1246) (libp2p/go-libp2p-kad-dht#1246)
- github.com/libp2p/go-libp2p-pubsub (v0.15.0 -> v0.16.0):
- Release v0.16.0 (#693) (libp2p/go-libp2p-pubsub#693)
- fix: properly log topic string (#694) (libp2p/go-libp2p-pubsub#694)
- rename {Add/Remove}Peer to On{New/Closed}OutboundStream
- Fix leaked state with OnNewIncomingStream/onClosedIncomingStream
- test: Add failing test demonstrating leak
- partialmessages: init fanout if empty (#690) (libp2p/go-libp2p-pubsub#690)
- log on error when handling rpc in extensions (#668) (libp2p/go-libp2p-pubsub#668)
- feat: add WithMessageFilter option to filter messages early in the notification pipeline (#678) (libp2p/go-libp2p-pubsub#678)
- partialmsgs: remove unused struct
- partialmsgs: PeerRequestsPartial means PeerRequestsPartial
- partialmsgs: Change Gossip Callback to have application call PublishPartial
- feat: FanoutOnly topic option (#676) (libp2p/go-libp2p-pubsub#676)
- Partial Messages API refactor (#671) (libp2p/go-libp2p-pubsub#671)
- Revert "Refactor parts metadata to an interface (#669)"
- Add threadsafe dynamic direct peer handling to GossipSub (#673) (libp2p/go-libp2p-pubsub#673)
- Refactor parts metadata to an interface (#669) (libp2p/go-libp2p-pubsub#669)
- Add Rpc.From()
- partialmsgs: Implement Partial Message gossip
- partialmsgs: Add explicit EagerPartialMessageBytes method
- partialmsgs: remove outdated comment
- partialmessages: Send fewer partsMetadata messages
- partialmessages: Change EagerPush to EagerPushWithParts
- partialmessages: PublishPartial to peers in group state as well
- fix stale comment in partialmessages
- fix logic of omitting IDONTWANT to peers that support partial messages
- fix bug of not sending full messages to peers that requested partial
- rename PartialMessagesExtension for consistency
- partialmessages: rename field to reflect use
- partialmessages: add per peer bounds on peer initiated groups
- partialmessages: Add pairwise interaction test
- add test for SupportsPartial subscribe option
- Add support for
supportsPartial - pb: add
supportsPartialfield in SubOpts - support fanout topics for partial messages
- limit the number of peer initiated group states we track
- nit: rename method from old form
- Add ability to update peer scores if using partial messages
- refactor score methods to accept topic string
- set write deadline for outgoing messages
- ensure that the Hello Packet is the first rpc sent
- add todo
- don't send IDONTWANT to partial message peers
- Add documentation for the RequestPartialMessages topic option
- partialmessages: add explicit MergePartsMetadata function
- partialmessages: add basic bitmap package
- add partial messages to gossipsub router
- implement Partial Messages
- add structured rpc logging
- update protobufs for partial messages
👨👩👧👦 Contributors
| Contributor | Commits | Lines ± | Files Changed |
|---|---|---|---|
| @lidel | 42 | +7059/-920 | 188 |
| @MarcoPolo | 43 | +5818/-2113 | 122 |
| @guillaumemichel | 8 | +1422/-165 | 17 |
| @ChayanDass | 2 | +421/-18 | 10 |
| @parkan | 1 | +339/-0 | 3 |
| @gammazero | 12 | +142/-135 | 28 |
| @Vinayak9769 | 1 | +145/-78 | 10 |
| @laciferin2024 | 1 | +209/-0 | 3 |
| @rvagg | 4 | +160/-18 | 6 |
| @Wondertan | 1 | +154/-4 | 4 |
| @cortze | 1 | +125/-19 | 5 |
| @sukunrt | 3 | +58/-27 | 5 |
| @davidebeatrici | 1 | +55/-30 | 4 |
| @hsanjuan | 1 | +33/-15 | 5 |
| @willscott | 1 | +10/-2 | 2 |
Note
This release was brought to you by the Shipyard team.
- Overview
- 🔦 Highlights
- 🗑️ Faster Provide Queue Disk Reclamation
- ✨ New
ipfs cid inspectcommand - 🔤
--cid-basefixes across all commands - 🔄 Built-in
ipfs updatecommand - 🖥️ WebUI Improvements
- 🔧 Correct provider addresses for custom HTTP routing
- 🔀
Provide.Strategymodifiers:+uniqueand+entities - 📌
pin addandpin updatenow fast-provide root CID - 🌳 New
--fast-provide-dagflag for fine-tuned provide control - 🛡️ Hardened
Provide.Strategyparsing - 🔧 Filestore now respects
Provide.Strategy - 🛡️
ipfs object patchvalidates UnixFS node types - 🔗 MFS: fixed CidBuilder preservation
- 📂 FUSE Mount Improvements
- 📦 CARv2 import over HTTP API
- 🌐 HTTPS proxy support
- 🛡️
serverprofile no longer announces loopback and non-public IPv6 addresses - 🐹 Go 1.26, Once More with Feeling
- 🐛 Fixed long-standing random daemon crashes during DHT lookups
- 📦️ Dependency updates
- 📝 Changelog
- 👨👩👧👦 Contributors
Overview
🔦 Highlights
🗑️ Faster Provide Queue Disk Reclamation
Nodes with significant amount of data and DHT provide sweep enabled (Provide.DHT.SweepEnabled, the default since Kubo 0.39) could see their datastore/ directory grow continuously. Each reprovide cycle rewrote the provider keystore inside the shared repo datastore, generating tombstones faster than the storage engine could compact them, and in default configuration Kubo was slow to reclaim this space.
The provider keystore now lives in a dedicated datastore under $IPFS_PATH/provider-keystore/. After each reprovide cycle the old datastore is removed from disk entirely, so space is reclaimed immediately regardless
of storage backend.
On first start after upgrading, stale keystore data is cleaned up from the shared datastore automatically.
To learn more, see kubo#11096, kubo#11198, and go-libp2p-kad-dht#1233.
✨ New ipfs cid inspect command
New subcommand for breaking down a CID into its components. Works offline, supports --enc=json.
$ ipfs cid inspect bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi CID: bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi Version: 1 Multibase: base32 (b) Multicodec: dag-pb (0x70) Multihash: sha2-256 (0x12) Length: 32 bytes Digest: c3c4733ec8affd06cf9e9ff50ffc6bcd2ec85a6170004bb709669c31de94391a CIDv0: QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR CIDv1: bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi
See ipfs cid --help for all CID-related commands.
🔤 --cid-base fixes across all commands
--cid-base is now respected by every command that outputs CIDs. Previously block stat, block put, block rm, dag stat, refs local, pin remote, and files chroot ignored the flag.
CIDv0 values are now auto-upgraded to CIDv1 when a non-base58btc base is requested, because CIDv0 can only be represented in base58btc.
🔄 Built-in ipfs update command
Kubo now ships with a built-in ipfs update command that downloads release binaries from GitHub and swaps the current one in place. It supersedes the external ipfs-update tool, deprecated since v0.37.
$ ipfs update check Update available: 0.40.0 -> 0.41.0 Run 'ipfs update install' to install the latest version.
See ipfs update --help for the available subcommands (check, versions, install, revert, clean).
🖥️ WebUI Improvements
IPFS Web UI has been updated to v4.12.0.
IPv6 peer geolocation and Peers screen optimizations
The Peers screen now resolves IPv6 addresses to geographic locations, and the geolocation database has been updated to GeoLite2-City-CSV_20260220. (ipfs-geoip v9.3.0)
Peer locations load faster thanks to UX optimizations in the underlying ipfs-geoip library.
🔧 Correct provider addresses for custom HTTP routing
Nodes using custom routing (Routing.Type=custom) with IPIP-526 could end up publishing unresolved 0.0.0.0 addresses in provider records. Addresses are now resolved at provide-time, and when AutoNAT V2 has confirmed publicly reachable addresses, those are preferred automatically. See #11213.
🔀 Provide.Strategy modifiers: +unique and +entities
Experimental opt-in optimizations for content providers with large repositories where multiple recursive pins share most of their DAG structure (e.g. append-only datasets, versioned archives like dist.ipfs.tech).
+unique: bloom filter dedup across recursive pins. Shared subtrees are traversed only once per reprovide cycle instead of once per pin, cutting I/O from O(pins * blocks) to O(unique blocks) at ~4 bytes/CID.+entities: announces only entity roots (files, directories, HAMT shards), skipping internal file chunks. Far fewer DHT provider records while keeping all content discoverable by file/directory CID. Implies+unique.
Example: Provide.Strategy = "pinned+mfs+entities"
The default Provide.Strategy=all is unchanged. See Provide.Strategy for configuration details and caveats.
The bloom filter precision is tunable via Provide.BloomFPRate (default ~1 false positive per 4.75M lookups, ~4 bytes per CID).
📌 pin add and pin update now fast-provide root CID
ipfs pin add and ipfs pin update announce the pinned root CID to the routing system immediately after pinning, same as ipfs add and ipfs dag import. This matters for selective strategies like pinned+mfs, where previously the root CID was not announced until the next reprovide cycle (see Provide.DHT.Interval). With the default Provide.Strategy=all, the blockstore already provides every block on write, so this is a no-op.
Both commands now accept --fast-provide-root, --fast-provide-dag, and --fast-provide-wait flags, matching ipfs add and ipfs dag import. See Import for defaults and configuration.
🌳 New --fast-provide-dag flag for fine-tuned provide control
Users with a custom Provide.Strategy (e.g. pinned, pinned+mfs+entities) now have finer control over which CIDs are announced immediately on ipfs add, ipfs dag import, ipfs pin add, and ipfs pin update.
By default, only the root CID is provided right away (--fast-provide-root=true). Child blocks are deferred until the next reprovide cycle. This keeps bulk imports fast and avoids overwhelming online nodes with provide traffic.
Pass --fast-provide-dag=true (or set Import.FastProvideDAG) to provide the full DAG immediately during add, using the active Provide.Strategy to determine scope.
Provide.Strategy=all (default) is unaffected. It provides every block at the blockstore level regardless of this flag.
Note
Faster default imports for Provide.Strategy=pinned and pinned+mfs users. Previously, ipfs add --pin eagerly announced every block of newly added content as it was written, through an internal DAG service wrapper. This release routes add-time providing through the new --fast-provide-dag code path, which defaults to false. The result is faster bulk imports and less provide traffic during add: only the root CID is announced immediately (via Import.FastProvideRoot), and child blocks are picked up by the next reprovide cycle (see Provide.DHT.Interval, default 22h). To restore the previous eager-provide behavior on ipfs add, set Import.FastProvideDAG=true (or pass --fast-provide-dag=true per command); the walker honors the active Provide.Strategy. Provide.Strategy=all (the default) is unaffected.
🛡️ Hardened Provide.Strategy parsing
Unknown strategy tokens (e.g. typo "uniuqe"), malformed delimiters ("pinned+"), and invalid combinations ("all+pinned") now produce a clear error at startup instead of being silently ignored.
🔧 Filestore now respects Provide.Strategy
Blocks added via the filestore or urlstore (ipfs add --nocopy) used to ignore Provide.Strategy and were always announced at write time. The filestore is now gated on the strategy the same way the regular blockstore is, so selective strategies get the same fast-provide knobs for filestore-backed content that they already had for regular ipfs add.
🛡️ ipfs object patch validates UnixFS node types
As part of the ongoing deprecation of the legacy ipfs object API (which predates HAMTShard directories and CIDv1), the add-link and rm-link subcommands now validate the root node before mutating it.
These commands operate at the raw dag-pb level and can only safely mutate small, flat UnixFS directories. They are unable to update UnixFS metadata (HAMT bitfields, file Blocksizes), so using them on files or sharded directories would silently produce invalid DAGs. This is now rejected:
- File nodes: rejected (corrupts
Blocksizes, content lost on read-back) - HAMTShard nodes: rejected (HAMT bitfield not updated, corrupts directory)
- Non-UnixFS
dag-pbnodes: rejected by default - Directory nodes: allowed (the only safe case)
Use ipfs files commands (mkdir, cp, rm, mv) instead. They handle all directory types correctly, including large sharded directories.
A --allow-non-unixfs flag is available on both ipfs object patch commands to bypass validation.
🔗 MFS: fixed CidBuilder preservation
ipfs files commands now correctly preserve the configured CID version and hash function (Import.CidVersion, Import.HashFunction) in all MFS operations. Previously, the CidBuilder could be silently lost when modifying file contents, creating nested directories with mkdir -p, or restarting the daemon, causing some entries to fall back to CIDv0/sha2-256.
Additionally, the MFS root directory itself now respects Import.CidVersion and Import.HashFunction at daemon startup. Before this fix, the root always used CIDv0/sha2-256 regardless of config. Because the MFS root CID format is now managed by these config options, ipfs files chcid no longer accepts the root path /. It continues to work on subdirectories.
See boxo#1125 and kubo#11273.
📂 FUSE Mount Improvements
The FUSE implementation has been rewritten on top of hanwen/go-fuse v2, replacing the unmaintained bazil.org/fuse. This fixes long-standing architectural limitations and aligns FUSE mounts with what standard tools expect. FUSE support is still experimental. See docs/fuse.md for setup instructions, and report problems at kubo/issues.
fsyncworks. Editors (vim, emacs) and databases that callfsyncafter writing no longer get a silent no-op. Data is flushed through the open file descriptor to the DAG. The full vim save sequence (O_TRUNC + write + fsync + chmod) is tested.ftruncateworks. Tools likersync --inplacethat shrink or grow files viaftruncate(fd, size)no longer get ENOTSUP. Opening existing files withO_TRUNCalso works correctly.chmodandtouchno longer drop file content. WithMounts.StoreMode/StoreMtimeenabled, setting mode or mtime previously replaced the DAG node without preserving content links, leaving the file empty.- Symlink creation on writable mounts.
ln -s target linknow works on/mfsand/ipns. Symlinks are stored as UnixFS TSymlink nodes, the same format used byipfs add. - Rename-over-existing works. Renaming a file onto an existing name (the pattern used by rsync and atomic-save editors) now correctly replaces the target.
- Faster reads on
/ipfs. Files are read sequentially from the block graph instead of re-resolving from the root on every read call. - Interrupting a stuck
catworks. Ctrl-C orkillon a read cancels in-flight block fetches instead of hanging. - External unmount detected. Running
fusermount -ufrom outside the daemon now correctly marks the mount as inactive. - Files are no longer owned by root. Mounts report the uid/gid of the daemon process, so access works without
allow_other. - Offline IPNS writes succeed. IPNS records are stored locally and published when connectivity returns.
- Empty directories list correctly. Listing an empty directory on
/ipfsor/ipnsno longer returns an error. - Bare file CIDs work on
/ipfs. Accessing a file by its CID directly under the/ipfsmount now works. This was a long-standing regression. - Rename works on
/mfsand/ipns. Renaming a file within the same directory no longer leaves the source behind. - IPNS FUSE publish works. Writing files to
/ipns/local/now correctly publishes the updated DAG. Previously IPNS publishing from the FUSE mount was silently blocked. - Concurrent IPNS file operations no longer race. The
/ipnsfile handle serializes Read, Write, Flush, and Release, matching the/mfsmount. - IPNS directory operations flush immediately. Remove and Rename on
/ipnsflush changes to the MFS root, preventing data loss on daemon restart. - New files use the correct CID version. Files created on
/ipnsinherit the parent's CID settings instead of falling back to CIDv0. - UnixFS mode and mtime visible in stat. All three mounts show POSIX mode and mtime from UnixFS metadata when present. When absent, sensible POSIX defaults are used (files:
0644/0444, directories:0755/0555). - Opt-in
Mounts.StoreMtimeandMounts.StoreMode. Writable mounts can persist mtime on file creation/write and POSIX mode onchmodfor both files and directories.touchon directories also works, which tools liketarandrsyncrely on. Both flags are off by default because they change the resulting CID. SeeMounts.StoreMtimeandMounts.StoreMode. ipfs.cidxattr on all mounts. All three mounts expose the node's CID via theipfs.cidextended attribute on files and directories. The legacyipfs_cidxattr name (used in earlier versions of/mfs) is no longer supported; useipfs.cidinstead.statfsworks. All three mounts report the free space of the volume backing the local IPFS repo, so/mfscorrectly reflects how much new data fits. Fixes macOS Finder refusing copies with "not enough free space".- Per-entry
st_blocksandst_blksizereflect UnixFS. All three mounts fillst_blocksfrom the UnixFS file size sodu,ls -s,stat, and "size on disk" in file managers matchls -l. Directories report a nominal 1 block so tools that treat 0 as "unsupported" behave correctly.st_blksizeadvertises a chunk-aligned preferred I/O size:/mfsand/ipnsuseImport.UnixFSChunker, socp,dd, andrsyncbuffer writes at the chunker boundary;/ipfsuses a stable 1 MiB hint since published CIDs have no single chunker. - Platform compatibility. macOS detection updated from OSXFUSE 2.x to macFUSE 4.x. Linux no longer needs a
fusermountsymlink;hanwen/go-fusefindsfusermount3natively.
📦 CARv2 import over HTTP API
ipfs dag import of CARv2 files now works over the HTTP API. Previously it failed with operation not supported: the HTTP multipart stream falsely advertised seek support, which go-car needs for the CARv2 payload offset. See #11253.
🌐 HTTPS proxy support
Kubo's outbound HTTP clients and libp2p /ws+/wss peer dials have long honored the standard HTTPS_PROXY, HTTP_PROXY, and NO_PROXY environment variables; this release extends the WebSocket transport to also accept https:// proxy URLs (TLS to the proxy itself), matching what Kubo's HTTP clients already supported. See docs/environment-variables.md.
🛡️ server profile no longer announces loopback and non-public IPv6 addresses
The opt-in server profile now also blocks IPv4 loopback (127.0.0.0/8) and the IANA-reserved 0000::/3 IPv6 block. Since v0.40.0, libp2p has enumerated all local interfaces, causing public server-profile nodes (including the default IPFS bootstrappers) to leak loopback and unallocated IPv6 prefixes like 1e::/16 through libp2p identify and DHT self-records (see go-libp2p#3460).
Default-configured nodes are unaffected. To pick up the new entries on an existing server-profile node:
$ ipfs config profile apply serverThe command is idempotent. See the server profile docs for the full filter list, RFC references, and override guidance.
Warning
The server profile disables local peer discovery (Discovery.MDNS off, loopback filtered), so co-located daemons on the same host and peers on the same LAN will no longer find each other automatically. Apply only on public-internet nodes where that is intended.
🐹 Go 1.26, Once More with Feeling
Kubo first shipped with Go 1.26 in v0.40.0, but v0.40.1 had to downgrade to Go 1.25 because of a Windows crash in Go's overlapped I/O layer (#11214). Go 1.26.2 fixes that regression upstream (golang/go#78041), so Kubo is back on Go 1.26 across all platforms.
You should see lower memory usage and reduced GC pauses thanks to the new Green Tea garbage collector (10-40% less GC overhead). Reading block data and API responses is faster due to io.ReadAll improvements (~2x faster, ~50% less memory). On 64-bit platforms, heap base address randomization adds a layer of security hardening.
🐛 Fixed long-standing random daemon crashes during DHT lookups
Long-running daemons could exit with invalid memory address or nil pointer dereference or similar memory errors while handling DHT traffic. The cause was a data race in the routing layer that had been latent for years: PublishQueryEvent handed QueryEvent.Responses to subscribers (like findprovs) by pointer while the publisher kept mutating the same AddrInfo.Addrs slices.
Two recent changes likely tipped the race into frequent visible crashes: go-multiaddr v0.15 turned Multiaddr from an interface into a slice-backed struct, and Go 1.26 added heap base address randomization and a new garbage collector. Both likely made torn concurrent reads more likely to dereference unmapped memory.
This release picks up the targeted fix in go-libp2p-kad-dht#1244. A broader fix for the whole class of routing publish races is proposed upstream in go-libp2p#3490.
📦️ Dependency updates
- update
go-libp2pto v0.48.0 - update
go-libp2p-kad-dhtto v0.39.1 (incl. v0.39.0) - update
ipfs-webuito v4.12.0 - update
gateway-conformancetests to v0.13 (incl. v0.12, v0.11) - update
boxoto v0.39.0 (incl. v0.38.0) - update
go-cidto v0.6.1 (pulls ingo-multibasev0.3.0 with up to 5x faster base58 encoding for CIDv0) - update
p2p-forge/clientto v0.8.0
📝 Changelog
Full Changelog
- github.com/ipfs/kubo:
- fix(pins): snapshot index before emitting pins (#11290) (ipfs/kubo#11290)
- Upgrade to Boxo v0.39.0 (#11294) (ipfs/kubo#11294)
- fix(log): scope provide logs to "provider" subsystem (#11289) (ipfs/kubo#11289)
- chore: set version to v0.41.0-rc2
- fix(defaultServerFilters): strip loopback and non-public (#11286) (ipfs/kubo#11286)
- chore: bump p2p-forge to v0.8.0 (#11285) (ipfs/kubo#11285)
- fix: queryevent addrinfo race in kad-dht (#11288) (ipfs/kubo#11288)
- fix(examples): avoid bitswap race, use ed25519 (#11282) (ipfs/kubo#11282)
- docs: fix v0.41 changelog highlights
- fix(fuse): accurate
st_blocksandst_blksize(#11280) (ipfs/kubo#11280) - chore: set version to v0.41.0-rc1
- test(fuse): fix racy Statfs assertions
- fix(cli/rpc): --cid-base works in all commands (#11239) (ipfs/kubo#11239)
- feat(fuse): Statfs (#11261) (ipfs/kubo#11261)
- feat: add built-in
ipfs updatecommand (#11203) (ipfs/kubo#11203) - fix(filestore): respect Provide.Strategy (#11243) (ipfs/kubo#11243)
- feat(provide): +unique and +entities strategy modifiers (#11245) (ipfs/kubo#11245)
- fix(fuse): switch to hanwen/go-fuse (#11272) (ipfs/kubo#11272)
- Upgrade to Boxo v0.38.0 (#11276) (ipfs/kubo#11276)
- feat: go 1.26.2 (#11275) (ipfs/kubo#11275)
- fix(mfs): respect Import config (#11273) (ipfs/kubo#11273)
- fix(fuse): IPNS writes actually publish (#11271) (ipfs/kubo#11271)
- fix(mfs): fix fsync deadlock, set attrs, disable default caching (#11255) (ipfs/kubo#11255)
- ci: update gateway-conformance to v0.13 (#11262) (ipfs/kubo#11262)
- fix(rpc): CARv2 import over HTTP API (#11253) (ipfs/kubo#11253)
- chore: fix gofmt (#11256) (ipfs/kubo#11256)
- fix: replace deprecated otelhttp.WithMetricAttributesFn (#11257) (ipfs/kubo#11257)
- fix(rpc): validate UnixFS in
object patch(#11248) (ipfs/kubo#11248) - fix(cmd): use restrictive file permissions for exported keys (#11246) (ipfs/kubo#11246)
- chore: add go-libp2p and kad-dht bumps to v0.41 changelog
- feat(cmd): add 'ipfs cid inspect' command (#11241) (ipfs/kubo#11241)
- fix(provider): purge keystore datastore after reset (#11198) (ipfs/kubo#11198)
- fix: correct provider addresses for custom HTTP routing (#11234) (ipfs/kubo#11234)
- fix(rpc/pin): return error if listing an invalid, but known, pin type (#11238) (ipfs/kubo#11238)
- fix: validate --max-hamt-fanout CLI flag per UnixFS spec (#11230) (ipfs/kubo#11230)
- test: fix flaky tests on ci (#11236) (ipfs/kubo#11236)
- docs: use specs.ipfs.tech links for merged IPIPs (#11228) (ipfs/kubo#11228)
- chore: add changelog placeholder for v0.42
- chore: update webui to v4.12.0 (#11221) (ipfs/kubo#11221)
- fix(windows): revert update to Go 1.26 (#11215) (ipfs/kubo#11215)
- docs: streamline release checklist ordering and dependencies (#11193) (ipfs/kubo#11193)
- Merge release v0.40.0 (ipfs/kubo#11212)
- fix(metrics): disable otel exemplars to prevent rune overflow (#11211) (ipfs/kubo#11211)
- fix: drop high-cardinality server.address from http_server metrics (#11208) (ipfs/kubo#11208)
- test(gateway-conformance): update to v0.11 (#11207) (ipfs/kubo#11207)
- chore: update webui to v4.11.1 (#11204) (ipfs/kubo#11204)
- docs: add AGENTS.md with instructions for AI coding agents (#11200) (ipfs/kubo#11200)
- fix: improve
ipfs name putfor IPNS record republishing (#11199) (ipfs/kubo#11199) - Upgrade to Boxo v0.37.0 (#11201) (ipfs/kubo#11201)
- chore: prepare master for v0.41.0-dev cycle
- github.com/ipfs/bbloom (v0.0.4 -> v0.1.0):
- chore: bump version to v0.1.0
- docs: explain why this fork exists and how IPFS uses it
- docs: add examples and improve godoc for exported symbols
- chore: fix LICENSE for GitHub and pkg.go.dev detection
- feat: allow caller-provided SipHash keys (#30) (ipfs/bbloom#30)
- fix: make double-hash step always odd and non-zero (#29) (ipfs/bbloom#29)
- test: false positive bloom filter test and test data generated (#15) (ipfs/bbloom#15)
- docs: add doc.go and godoc comments for all public symbols (#28) (ipfs/bbloom#28)
- docs: update README and add benchmarks
- Update collision_test.go
- fix: stop using math/rand.Read
- sync: update CI config files (#16) (ipfs/bbloom#16)
- sync: update CI config files (#13) (ipfs/bbloom#13)
- cleanup: fix staticcheck failures (ipfs/bbloom#8)
- Add LICENSE (copied from upstream)
- github.com/ipfs/boxo (v0.37.0 -> v0.39.0):
- Release v0.39.0 (ipfs/boxo#1149)
- fix: pinner shutdown race (#1146) (ipfs/boxo#1146)
- fix(bitswap): prevent low-pending peer starvation (#1143) (ipfs/boxo#1143)
- fix(bitswap/bsnet): close streams in background (#1144) (ipfs/boxo#1144)
- fix(dspinner): snapshot index before emitting pins (#1140) (ipfs/boxo#1140)
- feat(gateway): add content size limits for responses (#1138) (ipfs/boxo#1138)
- test(dag/walker): fix flaky bloom FP assertion (#1139) (ipfs/boxo#1139)
- Release v0.38.0 (ipfs/boxo#1137)
- feat(ipns): Support adding custom metadata to IPNS record (#1085) (ipfs/boxo#1085)
- feat(dag/walker): opt-in BloomTracker to avoid duplicated walks (#1124) (ipfs/boxo#1124)
- fix(mfs): prevent flushUp from re-adding unlinked entries (#1134) (ipfs/boxo#1134)
- fix(mfs): serialize all FileDescriptor operations (#1133) (ipfs/boxo#1133)
- fix(mfs): prevent panic on concurrent flush and close (#1131) (ipfs/boxo#1131)
- fix(mfs): preserve CidBuilder object in setNodeData(), Mkdir() and NewRoot() (#1125) (ipfs/boxo#1125)
- test(gateway): cover bare CID etag match for dir listings (#1129) (ipfs/boxo#1129)
- chore(gateway): bump gateway-conformance to v0.13 (#1130) (ipfs/boxo#1130)
- docs: add missing godoc (#1122) (ipfs/boxo#1122)
- fix(bitswap/httpnet): infer default port for portless HTTP multiaddrs (#1123) (ipfs/boxo#1123)
- upgrade to go-libp2p v0.48.0 (#1120) (ipfs/boxo#1120)
- feat(routing/http/client): add WithProviderInfoFunc for lazy address resolution (#1115) (ipfs/boxo#1115)
- chore: remove stale boxo-migrate references from README (#1119) (ipfs/boxo#1119)
- fix(bitswap): ignore identity CIDs instead of killing connection (#1117) (ipfs/boxo#1117)
- chore(gateway): remove dead DoH resolver for .crypto TLD (#1118) (ipfs/boxo#1118)
- feat: custom chunker registry (#1116) (ipfs/boxo#1116)
- refactor: remove go-ipfs migration and deprecation code (#1113) (ipfs/boxo#1113)
- github.com/ipfs/go-cid (v0.6.0 -> v0.6.1):
- v0.6.1 bump (#183) (ipfs/go-cid#183)
- github.com/ipfs/go-ds-dynamodb (v0.2.0 -> v0.2.2):
- new version (#17) (ipfs/go-ds-dynamodb#17)
- update go-datastore (#16) (ipfs/go-ds-dynamodb#16)
- new version (#15) (ipfs/go-ds-dynamodb#15)
- use go-datastore without goprocess (#14) (ipfs/go-ds-dynamodb#14)
- github.com/ipfs/go-ds-pebble (v0.5.9 -> v0.5.10):
- new version (#84) (ipfs/go-ds-pebble#84)
- provide function to access underlying database (#82) (ipfs/go-ds-pebble#82)
- replace deprecated
iter.Valuewithiter.ValueAndErr(#80) (ipfs/go-ds-pebble#80)
- github.com/ipfs/go-ipld-legacy (v0.2.2 -> v0.3.0):
- new version (ipfs/go-ipld-legacy#29)
- Clean up README.md formatting and content
- modernize code (ipfs/go-ipld-legacy#28)
- github.com/ipfs/go-test (v0.2.3 -> v0.3.0):
- new version (#35) (ipfs/go-test#35)
- feat: functions to generate random AddrInfo (#34) (ipfs/go-test#34)
- github.com/ipld/go-ipld-prime (v0.22.0 -> v0.23.0):
failed to fetch repo - github.com/ipshipyard/p2p-forge (v0.7.0 -> v0.8.0):
- chore: v0.8.0 with dependency updates (#86) (ipshipyard/p2p-forge#86)
- fix: bump Dockerfile to Go 1.25 (#85) (ipshipyard/p2p-forge#85)
- feat: add ovh2 nameserver to libp2p.direct zone (#84) (ipshipyard/p2p-forge#84)
- github.com/libp2p/go-libp2p (v0.47.0 -> v0.48.0):
- Release v0.48.0
- refactor(webtransport): Use keygen package for deterministic ecdsa key generation.
- Bump transport interop Go toolchain
- basichost: advertise all interface addrs for unspecified listen addrs (#3468) (libp2p/go-libp2p#3468)
- fix(mocknet): make stream deadline methods noop instead of returning error (#3471) (libp2p/go-libp2p#3471)
- webrtc: upgrade pion deps (#3469) (libp2p/go-libp2p#3469)
- refactor: apply go fix modernizers from Go 1.26 (#3463) (libp2p/go-libp2p#3463)
- quicreuse: fix incorrect skip in TestReuseListenOnSpecificInterface (#3417) (libp2p/go-libp2p#3417)
- cleanup dcutr legacy behavior and add fallback
- Remove assertion that assumes a certain CI network environment
- github.com/libp2p/go-libp2p-kad-dht (v0.38.0 -> v0.39.1):
- chore: release v0.39.1 (#1245) (libp2p/go-libp2p-kad-dht#1245)
- fix: data race on AddrInfo.Addrs in queryPeer (#1244) (libp2p/go-libp2p-kad-dht#1244)
- fix(provider): reduce provide log verbosity (#1243) (libp2p/go-libp2p-kad-dht#1243)
- tests: fix flaky TestStartProvidingSingle (#1242) (libp2p/go-libp2p-kad-dht#1242)
- chore: release v0.39.0 (#1240) (libp2p/go-libp2p-kad-dht#1240)
- feat(provider/keystore): alt datastore wipe (#1233) (libp2p/go-libp2p-kad-dht#1233)
- Expose provider record TTL as options (#1237) (libp2p/go-libp2p-kad-dht#1237)
- github.com/multiformats/go-multibase (v0.2.0 -> v0.3.0):
- chore: release v0.3.0 (#70) (multiformats/go-multibase#70)
- test: update spec submodule (#69) (multiformats/go-multibase#69)
- chore: bump base58 version (#67) (multiformats/go-multibase#67)
👨👩👧👦 Contributors
| Contributor | Commits | Lines ± | Files Changed |
|---|---|---|---|
| @lidel | 71 | +18331/-4390 | 358 |
| @gammazero | 24 | +810/-1409 | 165 |
| @guillaumemichel | 4 | +1302/-105 | 15 |
| @wjmelements | 3 | +780/-160 | 26 |
| @davidebeatrici | 1 | +428/-211 | 7 |
| @phaseloop | 1 | +533/-7 | 6 |
| @jolo18 | 1 | +370/-5 | 4 |
| @alanshaw | 1 | +272/-31 | 6 |
| @sukunrt | 2 | +14/-208 | 6 |
| @snissn | 1 | +7/-157 | 2 |
| @phillebaba | 1 | +116/-30 | 5 |
| @HarukaMa | 1 | +125/-9 | 4 |
| @rayspock | 1 | +118/-14 | 3 |
| @MarcoPolo | 5 | +33/-66 | 6 |
| @jpserrat | 1 | +10/-45 | 3 |
| @aschmahmann | 2 | +35/-2 | 4 |
| @hsanjuan | 1 | +35/-0 | 1 |
| @walldiss | 1 | +6/-12 | 1 |
| @web3-bot | 4 | +4/-4 | 4 |
| @iand | 1 | +4/-2 | 1 |
| @mr-tron | 1 | +1/-1 | 1 |
Note
This patch release was brought to you by the Shipyard team.
This is a Windows bugfix release. If you use Linux or macOS v0.40.0 should be fine.
🚒 Bugfix for Windows
If you run Kubo on Windows, v0.40.0 can crash after running for a while. The daemon starts fine and works normally at first, but eventually hits a memory corruption in Go's network I/O layer and dies. This is likely caused by an upstream Go 1.26 regression in overlapped I/O handling that has known issues (go#77142, #11214).
This patch release downgrades the Go toolchain from 1.26 to 1.25, which does not have this bug. If you are running Kubo on Windows, upgrade to v0.40.1. We will switch back to Go 1.26.x once the upstream fix lands.
📝 Changelog
Full Changelog v0.40.1
- github.com/ipfs/kubo:
- chore: downgrade to Go 1.25 to fix Windows crash (ipfs/kubo#11215)
See v0.40.0 for full list of changes since v0.39.x.
@ Every self-hosted release, weekly
One Monday email with the week's stable releases across the directory.
More in File Sharing
Local Content ShareSelf-hosted, open-source tool for sharing snippets, files, and links across local devices. Features Markdown notepad, configurable TTL, and PWA support.
LufiSelf-hosted Docker deployment of Lufi, a file sharing service supporting temporary links, password protection, LDAP authentication, and multiple database backends.
lufinLufin is an open-source, self-hosted file sharing service with client-side encryption, password protection, and support for multiple databases and S3 storage.
MicroBinSelf-hosted, open-source paste bin in a single Rust binary: share text, files and URL redirects with five privacy levels, E2E encryption, expiry and QR codes.
minimalistic-PHP-UploadA simple self-hosted PHP upload script that lets users upload files and sends email notifications with download links. No database required.
mouseholeMousehole is a self-hosted service that keeps your MyAnonamouse seedbox IP updated automatically, with a web UI to manage the MAM cookie and trigger manual updates.
NextCloudPiA self-hosted, open-source Nextcloud package delivered as SD images, VM and LXC images, or a one-line Debian installer, with a web admin panel.
NzbDAVSelf-hosted WebDAV server that mounts NZB files as a virtual filesystem for direct streaming to Plex, Jellyfin, and Stremio via SABnzbd-compatible API.
ocisSelf-hosted, open-source file sync & share server by ownCloud: bundled web UI, OIDC login, WebDAV/CS3 APIs, office-app editing, scales from Raspberry Pi to Kubernetes.
OnionShareSelf-hosted, open-source app that runs Tor onion services from your own computer for anonymous file sharing, static website hosting, and private chat rooms.
OpenListOpenList is a self-hosted, open-source file list server unifying local disks and dozens of cloud drives behind one web UI, with previews, WebDAV, S3 and offline download.
OpenMediaVaultopenmediavault is an open-source, self-hosted NAS solution built on Debian that shares files over SMB, NFS and FTP and manages disks, RAID and snapshots from a web UI.


0 comments