32 KiB
Kubo changelog v0.35
This release was brought to you by the Shipyard team.
v0.35.0
- Overview
- 🔦 Highlights
- Opt-in HTTP Retrieval client
- Dedicated
Reprovider.Strategyfor MFS - Experimental support for MFS as a FUSE mount point
- Grid view in WebUI
- Enhanced DAG-Shaping Controls
DatastoreMetrics Now Opt-In- Improved performance of data onboarding
- New
Bitswapconfiguration options - New
Routingconfiguration options - New Pebble database format config
- New environment variables
- 📦️ Important dependency updates
- 📝 Changelog
- 👨👩👧👦 Contributors
Overview
This release brings significant UX and performance improvements to data onboarding, provisioning, and retrieval systems.
New configuration options let you customize the shape of UnixFS DAGs generated during the data import, control the scope of DAGs announced on the Amino DHT, select which delegated routing endpoints are queried, and choose whether to enable HTTP retrieval alongside Bitswap over Libp2p.
Continue reading for more details.
🔦 Highlights
Opt-in HTTP Retrieval client
This release adds experimental support for retrieving blocks directly over HTTPS (HTTP/2), complementing the existing Bitswap over Libp2p.
The opt-in client enables Kubo to use delegated routing results with /tls/http multiaddrs, connecting to HTTPS servers that support Trustless HTTP Gateway's Block Responses (?format=raw, application/vnd.ipld.raw). Fetching blocks via HTTPS (HTTP/2) simplifies infrastructure and reduces costs for storage providers by leveraging HTTP caching and CDNs.
To enable this feature for testing and feedback, set:
$ ipfs config --json HTTPRetrieval.Enabled true
See HTTPRetrieval for more details.
Dedicated Reprovider.Strategy for MFS
The Mutable File System (MFS) in Kubo is a UnixFS filesystem managed with ipfs files commands. It supports familiar file operations like cp and mv within a folder-tree structure, automatically updating a MerkleDAG and a "root CID" that reflects the current MFS state. Files in MFS are protected from garbage collection, offering a simpler alternative to ipfs pin. This makes it a popular choice for tools like IPFS Desktop and the WebUI.
Previously, the pinned reprovider strategy required manual pin management: each dataset update meant pinning the new version and unpinning the old one. Now, new strategies—mfs and pinned+mfs—let users limit announcements to data explicitly placed in MFS. This simplifies updating datasets and announcing only the latest version to the Amino DHT.
Users relying on the pinned strategy can switch to pinned+mfs and use MFS alone to manage updates and announcements, eliminating the need for manual pinning and unpinning. We hope this makes it easier to publish just the data that matters to you.
See Reprovider.Strategy for more details.
Experimental support for MFS as a FUSE mount point
The MFS root (filesystem behind the ipfs files API) is now available as a read/write FUSE mount point at Mounts.MFS. This filesystem is mounted in the same way as Mounts.IPFS and Mounts.IPNS when running ipfs mount or ipfs daemon --mount.
Note that the operations supported by the MFS FUSE mountpoint are limited, since MFS doesn't store file attributes.
See Mounts and docs/fuse.md for more details.
Grid view in WebUI
The WebUI, accessible at http://127.0.0.1:5001/webui/, now includes support for the grid view on the Files screen:
Enhanced DAG-Shaping Controls
This release advances CIDv1 support by introducing fine-grained control over UnixFS DAG shaping during data ingestion with the ipfs add command.
Wider DAG trees (more links per node, higher fanout, larger thresholds) are beneficial for large files and directories with many files, reducing tree depth and lookup latency in high-latency networks, but they increase node size, straining memory and CPU on resource-constrained devices. Narrower trees (lower link count, lower fanout, smaller thresholds) are preferable for smaller directories, frequent updates, or low-power clients, minimizing overhead and ensuring compatibility, though they may increase traversal steps for very large datasets.
Kubo now allows users to act on these tradeoffs and customize the width of the DAG created by ipfs add command.
New DAG-Shaping ipfs add Options
Three new options allow you to override default settings for specific import operations:
--max-file-links: Sets the maximum number of child links for a single file chunk.--max-directory-links: Defines the maximum number of child entries in a "basic" (single-chunk) directory.- Note: Directories exceeding this limit or the
Import.UnixFSHAMTDirectorySizeThresholdare converted to HAMT-based (sharded across multiple blocks) structures.
- Note: Directories exceeding this limit or the
--max-hamt-fanout: Specifies the maximum number of child nodes for HAMT internal structures.
Persistent DAG-Shaping Import.* Configuration
You can set default values for these options using the following configuration settings:
Import.UnixFSFileMaxLinksImport.UnixFSDirectoryMaxLinksImport.UnixFSHAMTDirectoryMaxFanoutImport.UnixFSHAMTDirectorySizeThreshold
Updated DAG-Shaping Import Profiles
The release updated configuration profiles to incorporate these new Import.* settings:
- Updated Profile:
test-cid-v1now includes current defaults as explicitImport.UnixFSFileMaxLinks=174,Import.UnixFSDirectoryMaxLinks=0,Import.UnixFSHAMTDirectoryMaxFanout=256andImport.UnixFSHAMTDirectorySizeThreshold=256KiB - New Profile:
test-cid-v1-wideadopts experimental directory DAG-shaping defaults, increasing the maximum file DAG width from 174 to 1024, HAMT fanout from 256 to 1024, and raising the HAMT directory sharding threshold from 256KiB to 1MiB, aligning with 1MiB file chunks.- Feedback: Try it out and share your thoughts at discuss.ipfs.tech/t/should-we-profile-cids or ipfs/specs#499.
Tip
Apply one of CIDv1 test profiles with
ipfs config profile apply test-cid-v1[-wide].
Datastore Metrics Now Opt-In
To reduce overhead in the default configuration, datastore metrics are no longer enabled by default when initializing a Kubo repository with ipfs init.
Metrics prefixed with <dsname>_datastore (e.g., flatfs_datastore_..., leveldb_datastore_...) are not exposed unless explicitly enabled. For a complete list of affected default metrics, refer to prometheus_metrics_added_by_measure_profile.
Convenience opt-in profiles can be enabled at initialization time with ipfs init --profile: flatfs-measure, pebbleds-measure, badgerds-measure
It is also possible to manually add the measure wrapper. See examples in Datastore.Spec documentation.
Improved performance of data onboarding
This Kubo release significantly improves both the speed of ingesting data via ipfs add and announcing newly produced CIDs to Amino DHT.
Fast ipfs add in online mode
Adding a large directory of data when ipfs daemon was running in online mode took a long time. A significant amount of this time was spent writing to and reading from the persisted provider queue. Due to this, many users had to shut down the daemon and perform data import in offline mode. This release fixes this known limitation, significantly improving the speed of ipfs add.
Important
Performing
ipfs addof 10GiB file would take about 30 minutes. Now it takes close to 30 seconds.
Kubo v0.34:
$ time kubo/cmd/ipfs/ipfs add -r /tmp/testfiles-100M > /dev/null
100.00 MiB / 100.00 MiB [=====================================================================] 100.00%
real 0m6.464s
$ time kubo/cmd/ipfs/ipfs add -r /tmp/testfiles-1G > /dev/null
1000.00 MiB / 1000.00 MiB [===================================================================] 100.00%
real 1m10.542s
$ time kubo/cmd/ipfs/ipfs add -r /tmp/testfiles-10G > /dev/null
10.00 GiB / 10.00 GiB [=======================================================================] 100.00%
real 24m5.744s
Kubo v0.35:
$ time kubo/cmd/ipfs/ipfs add -r /tmp/testfiles-100M > /dev/null
100.00 MiB / 100.00 MiB [=====================================================================] 100.00%
real 0m0.326s
$ time kubo/cmd/ipfs/ipfs add -r /tmp/testfiles-1G > /dev/null
1.00 GiB / 1.00 GiB [=========================================================================] 100.00%
real 0m2.819s
$ time kubo/cmd/ipfs/ipfs add -r /tmp/testfiles-10G > /dev/null
10.00 GiB / 10.00 GiB [=======================================================================] 100.00%
real 0m28.405s
Optimized, dedicated queue for providing fresh CIDs
From kubo v0.33.0,
Bitswap stopped advertising newly added and received blocks to the DHT. Since
then boxo/provider is responsible for the first time provide and the recurring reprovide logic. Prior
to v0.35.0, provides and reprovides were handled together in batches, leading
to delays in initial advertisements (provides).
Provides and Reprovides now have separate queues, allowing for immediate provide of new CIDs and optimised batching of reprovides.
New Provider configuration options
This change introduces a new configuration options:
Provider.Enabledis a global flag for disabling both Provider and Reprovider systems (announcing new/old CIDs to amino DHT).Provider.WorkerCountfor limiting the number of concurrent provide operations, allows for fine-tuning the trade-off between announcement speed and system load when announcing new CIDs.- Removed
Experimental.StrategicProviding. Superseded byProvider.Enabled,Reprovider.IntervalandReprovider.Strategy.
Tip
Users who need to provide large volumes of content immediately should consider setting
Routing.AcceleratedDHTClienttotrue. If that is not enough, consider adjustingProvider.WorkerCountto a higher value.
Deprecated ipfs stats provider
Since the ipfs stats provider command was displaying statistics for both
provides and reprovides, this command isn't relevant anymore after separating
the two queues.
The successor command is ipfs stats reprovide, showing the same statistics,
but for reprovides only.
Note
ipfs stats providerstill works, but is marked as deprecated and will be removed in a future release. Be mindful that the command provides only statistics about reprovides (similar toipfs stats reprovide) and not the new provide queue (this will be fixed as a part of wider refactor planned for a future release).
New Bitswap configuration options
Bitswap.Libp2pEnableddetermines whether Kubo will use Bitswap over libp2p (both client and server).Bitswap.ServerEnabledcontrols whether Kubo functions as a Bitswap server to host and respond to block requests.Internal.Bitswap.ProviderSearchMaxResultsfor adjusting the maximum number of providers bitswap client should aim at before it stops searching for new ones.
New Routing configuration options
Routing.IgnoreProvidersallows ignoring specific peer IDs when returned by the content routing system as providers of content.- Simplifies testing
HTTPRetrieval.Enabledin setups where Bitswap over Libp2p and HTTP retrieval is served under different PeerIDs.
- Simplifies testing
Routing.DelegatedRoutersallows customizing HTTP routers used by Kubo whenRouting.Typeis set toautoorautoclient.- Users are now able to adjust the default routing system and directly query custom routers for increased resiliency or when dataset is too big and CIDs are not announced on Amino DHT.
Tip
For example, to use Pinata's routing endpoint in addition to IPNI at
cid.contact:$ ipfs config --json Routing.DelegatedRouters '["https://cid.contact","https://indexer.pinata.cloud"]'
New Pebble database format config
This Kubo release provides node operators with more control over Pebble's FormatMajorVersion. This allows testing a new Kubo release without automatically migrating Pebble datastores, keeping the ability to switch back to older Kubo.
When IPFS is initialized to use the pebbleds datastore (opt-in via ipfs init --profile=pebbleds), the latest pebble database format is configured in the pebble datastore config as "formatMajorVersion". Setting this in the datastore config prevents automatically upgrading to the latest available version when Kubo is upgraded. If a later version becomes available, the Kubo daemon prints a startup message to indicate this. The user can them update the config to use the latest format when they are certain a downgrade will not be necessary.
Without the "formatMajorVersion" in the pebble datastore config, the database format is automatically upgraded to the latest version. If this happens, then it is possible a downgrade back to the previous version of Kubo will not work if new format is not compatible with the pebble datastore in the previous version of Kubo.
When installing a new version of Kubo when "formatMajorVersion" is configured, automatic repository migration (ipfs daemon with --migrate=true) does not upgrade this to the latest available version. This is done because a user may have reasons not to upgrade the pebble database format, and may want to be able to downgrade Kubo if something else is not working in the new version. If the configured pebble database format in the old Kubo is not supported in the new Kubo, then the configured version must be updated and the old Kubo run, before installing the new Kubo.
See other caveats and configuration options at kubo/docs/datastores.md#pebbleds
New environment variables
The environment-variables.md was extended with two new features:
Improved Log Output Setting
When stderr and/or stdout options are configured or specified by the GOLOG_OUTPUT environ variable, log only to the output(s) specified. For example:
GOLOG_OUTPUT="stderr"logs only to stderrGOLOG_OUTPUT="stdout"logs only to stdoutGOLOG_OUTPUT="stderr+stdout"logs to both stderr and stdout
New Repo Lock Optional Wait
The environment variable IPFS_WAIT_REPO_LOCK specifies the amount of time to wait for the repo lock. Set the value of this variable to a string that can be parsed as a golang time.Duration. For example:
IPFS_WAIT_REPO_LOCK="15s"
If the lock cannot be acquired because someone else has the lock, and IPFS_WAIT_REPO_LOCK is set to a valid value, then acquiring the lock is retried every second until the lock is acquired or the specified wait time has elapsed.
📦️ Important dependency updates
- update
boxoto v0.30.0 - update
ipfs-webuito v4.7.0 - update
go-ds-pebbleto v0.5.0- update
pebbleto v2.0.3
- update
- update
go-libp2p-pubsubto v0.13.1 - update
go-libp2p-kad-dhtto v0.33.1 (incl. v0.33.0, v0.32.0, v0.31.0) - update
go-logto v2.6.0 - update
p2p-forge/clientto v0.5.1
📝 Changelog
Full Changelog
- github.com/ipfs/kubo:
- chore(version): 0.35.0
- fix: go-libp2p-kad-dht v0.33.1 (#10814) (ipfs/kubo#10814)
- fix: p2p-forge v0.5.1 ignoring /p2p-circuit (#10813) (ipfs/kubo#10813)
- chore(version): 0.35.0-rc2
- fix(fuse): ipns error handling and friendly errors (#10807) (ipfs/kubo#10807)
- fix(config): wire up
Provider.Enabledflag (#10804) (ipfs/kubo#10804) - docs(changelog): go-libp2p-kad-dht
- chore(version): 0.35.0-rc1
- feat: IPFS_WAIT_REPO_LOCK (#10797) (ipfs/kubo#10797)
- logging: upgrade to go-log/v2 v2.6.0 (#10798) (ipfs/kubo#10798)
- chore: ensure /mfs is present in docker
- feat(fuse): Expose MFS as FUSE mount point (#10781) (ipfs/kubo#10781)
- feat: opt-in http retrieval client (#10772) (ipfs/kubo#10772)
- Update go-libp2p-pubsub to v0.13.1 (#10795) (ipfs/kubo#10795)
- feat(config): ability to disable Bitswap fully or just server (#10782) (ipfs/kubo#10782)
- refactor: make datastore metrics opt-in (#10788) (ipfs/kubo#10788)
- feat(pebble): support pinning
FormatMajorVersion(#10789) (ipfs/kubo#10789) - feat:
Provider.WorkerCountandstats reprovide(#10779) (ipfs/kubo#10779) - Upgrade to Boxo v0.30.0 (#10794) (ipfs/kubo#10794)
- docs: use latest fuse package (#10791) (ipfs/kubo#10791)
- remove duplicate words (#10790) (ipfs/kubo#10790)
- feat(config):
ipfs addandImportoptions for controlling UnixFS DAG Width (#10774) (ipfs/kubo#10774) - feat(config): expose ProviderSearchMaxResults (#10773) (ipfs/kubo#10773)
- feat: ipfs-webui v4.7.0 (#10780) (ipfs/kubo#10780)
- feat: partial DAG provides with Reprovider.Strategy=mfs|pinned+mfs (#10754) (ipfs/kubo#10754)
- chore: update url
- docs: known issues with file/urlstores (#10768) (ipfs/kubo#10768)
- fix: Add IPFS & IPNS path details to error (re. #10762) (#10770) (ipfs/kubo#10770)
- docs: Fix typo in v0.34 changelog (#10771) (ipfs/kubo#10771)
- Support WithIgnoreProviders() in provider query manager (ipfs/kubo#10765)
- Merge release v0.34.1 (ipfs/kubo#10766)
- fix: reprovides warning (#10761) (ipfs/kubo#10761)
- Merge release v0.34.0 (ipfs/kubo#10759)
- feat: ipfs-webui v4.6 (#10756) (ipfs/kubo#10756)
- docs(readme): update min. requirements + cleanup (#10750) (ipfs/kubo#10750)
- Upgrade to Boxo v0.29.1 (#10755) (ipfs/kubo#10755)
- Nonfunctional (#10753) (ipfs/kubo#10753)
- provider: buffer pin providers (ipfs/kubo#10746)
- chore: 0.35.0-dev
- github.com/ipfs/boxo (v0.29.1 -> v0.30.0):
- Release v0.30.0 (ipfs/boxo#915)
- feat(bitswap): add option to disable Bitswap server (#911) (ipfs/boxo#911)
- provider: dedicated provide queue (#907) (ipfs/boxo#907)
- provider: deduplicate cids in queue (#910) (ipfs/boxo#910)
- feat(unixfs/mfs): support MaxLinks and MaxHAMTFanout (#906) (ipfs/boxo#906)
- feat(ipld/unixfs): DagModifier: allow specifying MaxLinks per file (#898) (ipfs/boxo#898)
- feat: NewDAGProvider to walk partial DAGs in offline mode (#905) (ipfs/boxo#905)
- gateway: check for UseSubdomains with IP addresses (#903) (ipfs/boxo#903)
- feat(gateway): add cid copy button to directory listings (#899) (ipfs/boxo#899)
- Improve performance of data onboarding (#888) (ipfs/boxo#888)
- bitswap: add requestsInFlight metric (ipfs/boxo#904)
- provider: simplify reprovide (#890) (ipfs/boxo#890)
- Upgrade to go-libp2p v0.41.1 (ipfs/boxo#896)
- Update RELEASE.md (ipfs/boxo#892)
- changelog: document bsnet import path change (ipfs/boxo#891)
- fix(gateway): preserve query parameters on _redirects (ipfs/boxo#886)
- bitswap/httpnet: Add WithDenylist option (ipfs/boxo#877)
- github.com/ipfs/go-block-format (v0.2.0 -> v0.2.1):
- Update version (#60) (ipfs/go-block-format#60)
- Update go-ipfs-util to use boxo (#52) (ipfs/go-block-format#52)
- github.com/ipfs/go-ds-pebble (v0.4.4 -> v0.5.0):
- new version (#53) (ipfs/go-ds-pebble#53)
- Upgrade to pebble v2.0.3 (#45) (ipfs/go-ds-pebble#45)
- github.com/ipfs/go-fs-lock (v0.0.7 -> v0.1.1):
- new version (#48) (ipfs/go-fs-lock#48)
- Return original error when WaitLock times out (#47) (ipfs/go-fs-lock#47)
- new version (#45) (ipfs/go-fs-lock#45)
- Add WaitLock function (#44) (ipfs/go-fs-lock#44)
- sync: update CI config files (ipfs/go-fs-lock#30)
- sync: update CI config files (#27) (ipfs/go-fs-lock#27)
- sync: update CI config files (ipfs/go-fs-lock#25)
- github.com/ipfs/go-log/v2 (v2.5.1 -> v2.6.0):
- new version (#155) (ipfs/go-log#155)
- feat: only log to stderr or to stdout or both if configured (#154) (ipfs/go-log#154)
- ci: uci/copy-templates (ipfs/go-log#145)
- sync: update CI config files (#137) (ipfs/go-log#137)
- github.com/libp2p/go-libp2p-kad-dht (v0.30.2 -> v0.33.1):
- chore: release v0.33.1 (#1088) (libp2p/go-libp2p-kad-dht#1088)
- fix(fullrt): mutex cleanup (#1087) (libp2p/go-libp2p-kad-dht#1087)
- fix: use correct mutex for reading keyToPeerMap (#1086) (libp2p/go-libp2p-kad-dht#1086)
- fix: fullrt kMapLk unlock (#1085) (libp2p/go-libp2p-kad-dht#1085)
- chore: release v0.33.0 (#1083) (libp2p/go-libp2p-kad-dht#1083)
- fix/updates to use context passed in New function for context cancellation (#1081) (libp2p/go-libp2p-kad-dht#1081)
- chore: release v0.31.1 (#1079) (libp2p/go-libp2p-kad-dht#1079)
- fix: netsize warning (#1077) (libp2p/go-libp2p-kad-dht#1077)
- fix: use correct message type attribute in metrics (#1076) (libp2p/go-libp2p-kad-dht#1076)
- chore: bump go-log to v2 (#1074) (libp2p/go-libp2p-kad-dht#1074)
- release v0.31.0 (#1072) (libp2p/go-libp2p-kad-dht#1072)
- query: ip diversity filter (#1070) (libp2p/go-libp2p-kad-dht#1070)
- tests: fix flaky TestProvidesExpire (#1069) (libp2p/go-libp2p-kad-dht#1069)
- refactor: replace fmt.Errorf with errors.New when not formatting is required (#1067) (libp2p/go-libp2p-kad-dht#1067)
- fix: error on no valid provs (#1065) (libp2p/go-libp2p-kad-dht#1065)
- cleanup: remove deprecated opt package (#1064) (libp2p/go-libp2p-kad-dht#1064)
- cleanup: fullrt (libp2p/go-libp2p-kad-dht#1062)
- fix: remove peerstore no-op (#1063) (libp2p/go-libp2p-kad-dht#1063)
- tests: flaky TestSearchValue (dual) (#1060) (libp2p/go-libp2p-kad-dht#1060)
- github.com/libp2p/go-libp2p-kbucket (v0.6.5 -> v0.7.0):
- chore: release v0.7.0 (#143) (libp2p/go-libp2p-kbucket#143)
- peerdiversity: export IPGroupKey (#141) (libp2p/go-libp2p-kbucket#141)
- fix: flaky TestUsefulNewPeer (#140) (libp2p/go-libp2p-kbucket#140)
- fix: flaky TestTableFindMultipleBuckets (#139) (libp2p/go-libp2p-kbucket#139)
- github.com/libp2p/go-libp2p-pubsub (v0.13.0 -> v0.13.1):
- feat: WithValidatorData publishing option (#603) (libp2p/go-libp2p-pubsub#603)
- feat: avoid repeated checksum calculations (#599) (libp2p/go-libp2p-pubsub#599)
- github.com/libp2p/go-yamux/v4 (v4.0.1 -> v4.0.2):
- Release v4.0.2 (#124) (libp2p/go-yamux#124)
- fix: remove noisy logs (#116) (libp2p/go-yamux#116)
- check deadline before sending a message (#114) (libp2p/go-yamux#114)
- only check KeepAliveInterval if keep-alive are enabled (#113) (libp2p/go-yamux#113)
- ci: uci/copy-templates (libp2p/go-yamux#109)
👨👩👧👦 Contributors
| Contributor | Commits | Lines ± | Files Changed |
|---|---|---|---|
| Hector Sanjuan | 16 | +2662/-590 | 71 |
| Guillaume Michel | 27 | +1339/-714 | 69 |
| Andrew Gillis | 22 | +1056/-377 | 54 |
| Sergey Gorbunov | 1 | +962/-42 | 26 |
| Marcin Rataj | 19 | +714/-133 | 47 |
| IGP | 2 | +419/-35 | 11 |
| GITSRC | 1 | +90/-1 | 3 |
| guillaumemichel | 1 | +21/-43 | 1 |
| blockchainluffy | 1 | +27/-26 | 8 |
| web3-bot | 9 | +21/-22 | 13 |
| VersaliX | 1 | +31/-2 | 4 |
| gammazero | 5 | +18/-5 | 5 |
| Hlib Kanunnikov | 1 | +14/-4 | 1 |
| diogo464 | 1 | +6/-7 | 1 |
| Asutorufa | 2 | +7/-1 | 2 |
| Russell Dempsey | 1 | +6/-1 | 1 |
| Steven Allen | 1 | +1/-5 | 1 |
| Michael Vorburger | 2 | +3/-3 | 2 |
| Aayush Rajasekaran | 1 | +2/-2 | 1 |
| sukun | 1 | +1/-1 | 1 |