-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release v0.13 #8640
Comments
Changelog and ContributorsThis release has so many changes that GitHub refuses to put them into a single post. The changes can be seen in https://raw.githubusercontent.com/ipfs/go-ipfs/v0.13.0-rc1/CHANGELOG.md. |
@BigLep Is there any updated ETA for this release? The question came up in our discussion about hole punching measurements today. |
Thanks for the ping @marten-seemann . This issue is outdated. Updated. Estimated RC date is 2022-04-22. The risk here is if go-libp2p resource manager work exposes more issues than we estimated. |
We agreed today to release RC1 as soon as we have the UX changes for libp2p resource manager locked down, instead of waiting to test with our infra, to gather community feedback about the RM defaults while we continue to test, with the expectation of releasing an RC2 if we need to make further changes. |
2022-05-03 conversation:
|
Known issues in RC1:
Not new but additional bug fixes that will be added:
|
The IPFS service was throwing `403: Forbidden` when trying to hit the API. We fix this by adding a script to the`container-init.d` folder which is part of v0.13 (not released yet). See ipfs/kubo#8640
The IPFS service was throwing `403: Forbidden` when trying to hit the API. We fix this by adding a script to the`container-init.d` folder which is part of v0.13 (not released yet). See ipfs/kubo#8640
go-ipfs v0.13.0 Release
We're happy to announce go-ipfs 0.13.0, packed full of changes and improvements!
As usual, this release includes important fixes, some of which may be critical for security. Unless the fix addresses a bug being exploited in the wild, the fix will not be called out in the release notes. Please make sure to update ASAP. See our release process for details.
Overview
Below is an outline of all that is in this release, so you get a sense of all that's included.
ipfs block put
commandipfs cid codecs
commandipfs cid format
commandSwarm
configurationls
requests for/multistream/1.0.0
are removedSwarm.ResourceMgr
)Swarm.RelayClient
)Etag
andIf-None-Match
for bandwidth savingsipfs diag profile
to ease debugging🛠 BREAKING CHANGES
ipfs block put
commandipfs block put
command returns a CIDv1 withraw
codec by default now.ipfs block put --cid-codec
makesblock put
return CID with alternative codecipfs block put --format
is deprecated. It used incorrect codec names and should be avoided for new deployments. Use it only if you need the old, invalid behavior, namely:ipfs block put --format=v0
will produce CIDv0 (implicit dag-pb)ipfs block put --format=cbor
will produce CIDv1 with dag-cbor (!)ipfs block put --format=protobuf
will produce CIDv1 with dag-pb (!)ipfs cid codecs
commandipfs cid codecs --supported
can be passed to only show codecs supported in various go-ipfs commands.ipfs cid format
command--codec
was removed and replaced with--mc
to ensure existing users are aware of the following changes:--mc protobuf
now correctly points to code0x50
(was0x70
, which isdab-pg
)--mc cbor
now correctly points to code0x51
(was0x71
, which isdag-cbor
)Swarm
configurationSwarm.EnableAutoRelay
orSwarm.DisableRelay
is set totrue
.Swarm.Transports.Network.Relay
is disabled, thenSwarm.RelayService
andSwarm.RelayClient
are also disabled (unless they have been explicitly enabled).Circuit Relay V1 is deprecated
Swarm.RelayClient
does not use Circuit Relay V1. Circuit V1 support is only enabled whenSwarm.RelayClient.StaticRelays
are specified.ls
requests for/multistream/1.0.0
are removedls
command (PR). If you are still using it for internal testing, it is time to refactor (example)Gateway Behavior
Directory listings returned by the HTTP Gateway won't have size column if the directory is bigger than
Gateway.FastDirIndexThreshold
config (default is 100).To understand the wider context why we made these changes, read Highlights below.
🔦 Highlights
🧑💼 libp2p Network Resource Manager (
Swarm.ResourceMgr
)You can now easily bound how much resource usage libp2p consumes! This aids in protecting nodes from consuming more resources then are available to them.
The libp2p Network Resource Manager is enabled by default, but can be disabled via:
ipfs config --json Swarm.ResourceMgr.Enabled false
When enabled, it applies some safe defaults that can be inspected and adjusted with:
ipfs swarm stats --help
ipfs swarm limit --help
User changes persist to config at
Swarm.ResourceMgr
.🔃 Relay V2 client with auto discovery (
Swarm.RelayClient
)All the pieces are enabled for hole-punching by default, improving connecting with nodes behind NATs and Firewalls!
This release enables
Swarm.RelayClient
by default, along with circuit v2 relay discovery provided by go-libp2p v0.19.0. This means:/p2p-circuit
address from a public relay.Notes:
Swarm.RelayClient
does not use Circuit Relay V1 nodes any more. Circuit V1 support is only enabled when static relays are specified inSwarm.RelayClient.StaticRelays
.Swarm.EnableHolePunching
.🌉 HTTP Gateway improvements
HTTP Gateway enables seamless interop with the existing Web, clients, user agents, tools, frameworks and libraries.
This release ships the first batch of improvements that enable creation of faster and smarter CDNs, and unblocks creation of light clients for Mobile and IoT.
Details below.
🍱 Support for Block and CAR response formats
Alternative response formats from Gateway can be requested to avoid needing to trust a gateway.
For now,
{format}
is limited to two options:raw
– fetching single blockcar
– fetching entire DAG behind a CID as a CARv1 streamWhen not set, the default UnixFS response is returned.
Why these two formats? Requesting Block or CAR for
/ipfs/{cid}
allows a client to use gateways in a trustless fashion. These types of gateway responses can be verified locally and rejected if digest inside of requested CID does not match received bytes. This enables creation of "light IPFS clients" which use HTTP Gateways as inexpensive transport for content-addressed data, unlocking use in Mobile and IoT contexts.Future releases will add support for dag-json and dag-cbor responses.
There are two ways for requesting CID specific response format:
Accept: application/vnd.ipld.{format}
?format=
Usage examples:
See also:
🐎 Fast listing generation for huge directories
Added
Gateway.FastDirIndexThreshold
configuration, which allows for fast listings of big directories, without the linear slowdown caused by reading size metadata from child nodes.As an example, the CID
bafybeiggvykl7skb2ndlmacg2k5modvudocffxjesexlod2pfvg5yhwrqm
represents UnixFS directory with over 10k (10100) of files.Opening it with go-ipfs 0.12 would require fetching size information of each file, which would take a long long time, most likely causing timeout in the browser or CDN, and introducing unnecessary burden on the gateway node.
go-ipfs 0.13 opens it instantly, because the number of items is bigger than the default
Gateway.FastDirIndexThreshold
and only the root UnixFS node needs to be resolved before the HTML Dir Index is returned to the user.Notes:
ipfs ls -s --size=false --resolve-type=false /ipfs/bafybeiggvykl7skb2ndlmacg2k5modvudocffxjesexlod2pfvg5yhwrqm
. Now the same speed is available on the gateways.🎫 Improved
Etag
andIf-None-Match
for bandwidth savingsEvery response type has an unique
Etag
which can be used by the client or CDN to save bandwidth, as a gateway does not need to resend a full response if the content was not changed.Gateway evaluates Etags sent by a client in
If-None-Match
and returns status code 304 (Not Modified) on strong or weak match (RFC 7232, 2.3).⛓️ Added X-Ipfs-Roots for smarter HTTP caches
X-Ipfs-Roots
is now returned with every Gateway response. It is a way to indicate all CIDs required for resolving path segments fromX-Ipfs-Path
. Together, these two headers are meant to improve interop with existing HTTP software (load-balancers, caches, CDNs).This additional information allows HTTP caches and CDNs to make better decisions around cache invalidation: not just invalidate everything under specific IPNS website when the root changes, but do more fine-grained cache invalidation by detecting when only a specific subdirectory (branch of a DAG) changes.
🌡️ Added metrics per response type
New metrics can be found at
/debug/metrics/prometheus
on the RPC API port (127.0.0.1:5001
is the default):gw_first_content_block_get_latency_seconds
– the time until the first content block is received on GET from the gateway (no matter the content or response types)gw_unixfs_file_get_duration_seconds
– the time to serve an entire UnixFS file from the gatewaygw_unixfs_gen_dir_listing_get_duration_seconds
– the time to serve a generated UnixFS HTML directory listing from the gatewaygw_car_stream_get_duration_seconds
– the time to GET an entire CAR stream from the gatewaygw_raw_block_get_duration_seconds
– The time to GET an entire raw Block from the gateway🕵️ OpenTelemetry tracing
Opt-in tracing support with many spans for tracing the duration of specific tasks performed by go-ipfs.
See Tracing for details.
We will continue to add tracing instrumentation throughout IPFS subcomponents over time.
How to use Jaeger UI for visual tracing?
One can use the
jaegertracing/all-in-one
Docker image to run a full Jaeger stack and configure go-ipfs to publish traces to it (here, in an ephemeral container):Then, in other terminal, start go-ipfs with Jaeger tracing enabled:
Finally, the Jaeger UI is available at http://localhost:16686
Below are examples of visual tracing for Gateway requests. (Note: this a preview how useful this insight is. Details may look different now, as we are constantly improving tracing annotations across the go-ipfs codebase.)
🩺 Built-in
ipfs diag profile
to ease debuggingThe
diag profile
command has been expanded to include all information that was previously included in thecollect-profiles.sh
script, and the script has been removed. Profiles are now collected in parallel, so that profile collection is much faster. Specific profiles can also be selected for targeted debugging.See
ipfs diag profile --help
for more details.For general debugging information, see the debug guide.
🔑 Support for PEM/PKCS8 for key import/export
It is now possible to import or export private keys wrapped in interoperable PEM PKCS8 by passing
--format=pem-pkcs8-cleartext
toipfs key import
andexport
commands.This improved interop allows for key generation outside of the IPFS node:
Or using external tools like the standard
openssl
to get a PEM file with the public key:🧹 Using standard IPLD codec names across the CLI/HTTP API
This release makes necessary (breaking) changes in effort to use canonical codec names from multicodec/table.csv. We also switched to CIDv1 in
block put
. The breaking changes are discussed above.🐳 Custom initialization for Docker
Docker images published at https://hub.docker.com/r/ipfs/go-ipfs/ now support custom initialization by mounting scripts in the
/container-init.d
directory in the container. Scripts can set custom configuration usingipfs config
, or otherwise customize the container before the daemon is started.Scripts are executed sequentially and in lexicographic order, before the IPFS daemon is started and after
ipfs init
is run and the swarm keys are copied (if the IPFS repo needs initialization).For more information, see:
RPC API docs for experimental and deprecated commands
https://docs.ipfs.io/reference/http/api/ now includes separate sections for experimental and deprecated commands.
We also display a warning in the command line:
Yamux over Mplex
The more fully featured yamux stream multiplexer is now prioritized over mplex for outgoing connections.
✅ Release Checklist
For each RC published in each stage:
version.go
has been updated (in therelease-vX.Y.Z
branch).vX.Y.Z-rcN
Checklist:
release-vX.Y.Z
) frommaster
and make any further release related changes to this branch. If any "non-trivial" changes (see the footnotes of docs/releases.md for a definition) get added to the release, uncheck all the checkboxes and return to this stage.version.go
in themaster
branch tovX.(Y+1).0-dev
.make test
)make test_go_lint
)./bin/mkreleaselog
to generate a nice starter listversion.go
has been updated.release-vX.Y.Z
into therelease
branch.release
branch) withvX.Y.Z
.wget "https://ipfs.io/api/v0/get?arg=/ipns/dist.ipfs.io/go-ipfs/$(curl -s https://dist.ipfs.io/go-ipfs/versions | tail -n 1)"
release
branch back intomaster
, ignoring the changes toversion.go
(keep the-dev
version from master).The best place to ask your questions about IPFS, how it works and what you can do with it is at discuss.ipfs.io. We are also available at the
#ipfs
channel on Freenode, which is also accessible through our Matrix bridge.Release improvements for next time
< Add any release improvements that were observed this cycle here so they can get incorporated into future releases. >
The text was updated successfully, but these errors were encountered: