Skip to content
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 0.33.0 #10636

Merged
merged 73 commits into from
Jan 29, 2025
Merged
Changes from 1 commit
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
c5586d5
chore: bump master to 0.33.0-dev
lidel Oct 30, 2024
1ca0ae0
fix(autotls): store certificates at the location from the repo path (…
aschmahmann Oct 30, 2024
d4ae7fa
chore: update deps (#10569)
aschmahmann Nov 4, 2024
14ec550
chore(github): update bug-report.yml
lidel Nov 4, 2024
e17dc21
chore: go-ipfs-cmds@v0.14.0 (#10571)
lidel Nov 5, 2024
4009ad3
chore: stop using go-homedir (#10568)
gammazero Nov 5, 2024
1512ec5
chore: boxo v0.24.3 and p2p-forge v0.0.2 (#10572)
lidel Nov 7, 2024
5d2f536
feat: ipfs-webui v4.4.0 (#10574)
lidel Nov 7, 2024
71048b7
chore(ci): adjust timeout in docker job
lidel Nov 7, 2024
e80e821
fix: go-libp2p-kad-dht v0.28.0 (#10578)
lidel Nov 13, 2024
9b3b191
Merge branch 'master' into merge-release-v0.32.0
lidel Nov 14, 2024
7ca1063
chore: changelog for 0.33
lidel Nov 14, 2024
8351cf9
Merge pull request #10579 from ipfs/merge-release-v0.32.0
lidel Nov 14, 2024
720663d
docs: update RELEASE_CHECKLIST.md (#10564)
lidel Nov 14, 2024
83b06f1
fix: go-libp2p-kad-dht v0.28.1 (#10581)
lidel Nov 15, 2024
c292203
fix(ci): timeout and retry docker smoke test
lidel Nov 15, 2024
d924428
Merge branch 'master' into merge-release-v0.32.1
lidel Nov 15, 2024
f5b8555
Merge pull request #10585 from ipfs/merge-release-v0.32.1
lidel Nov 15, 2024
3a1b8ee
refactor: update to boxo without goprocess (#10567)
gammazero Nov 19, 2024
d506003
Typos Update config.md (#10591)
0xbryer Nov 19, 2024
d1f6541
fix: increase provider sample size (#10589)
lidel Nov 25, 2024
0bd0edc
feat(bootstrap): add JS-based va1.bootstrap.libp2p.io (#10575)
lidel Nov 25, 2024
ef58568
fix some typos in docs (#10598)
gammazero Nov 25, 2024
37c5060
Update to boxo with refactored providerQueryManager. (#10595)
hsanjuan Nov 26, 2024
fb58b0a
tests/cli: fix flapping tests (#10600)
hsanjuan Nov 26, 2024
466f72f
docs: typos (#10602)
hsanjuan Nov 26, 2024
23ef1d7
fix: go-libp2p v0.37.2 (#10603)
lidel Nov 26, 2024
3b2c269
chore: p2p-forge/client v0.1.0 (#10605)
lidel Nov 27, 2024
02995d5
tests(cli/harness): use unused Verbose flag to pipe daemon outputs (#…
hsanjuan Nov 27, 2024
9433105
docs(changelog/v0.33): bitswap reprovide changes (#10604)
hsanjuan Nov 27, 2024
fa769f7
chore(deps): bump codecov/codecov-action from 4.6.0 to 5.0.7 (#10597)
dependabot[bot] Nov 27, 2024
778a418
refactor(rcmgr): use default libp2p rcmgr metrics (#9947)
marten-seemann Nov 27, 2024
8654538
chore: fix broken url in comment (#10606)
hishope Nov 29, 2024
53e793a
fix: ipfs-webui v4.4.1 (#10608)
lidel Dec 3, 2024
224d6a3
refactor(cmds): do not return errors embedded in result type (#10527)
gammazero Dec 3, 2024
433444b
fix(cmds/add): disallow --wrap with --to-files (#10612)
hsanjuan Dec 3, 2024
19dc712
chore: boxo v0.25.0 (#10619)
gammazero Dec 9, 2024
642e58e
chore: use errors.New to replace fmt.Errorf with no parameters (#10617)
ChengenH Dec 10, 2024
c797fbc
chore(deps): bump codecov/codecov-action from 5.0.7 to 5.1.1 (#10620)
dependabot[bot] Dec 13, 2024
53af049
deps: update nopfs
hsanjuan Dec 13, 2024
b42eb5a
Update deps (#10624)
gammazero Dec 13, 2024
09d5789
mod tidy examples
gammazero Dec 13, 2024
335a278
Merge branch 'master' into update-nopfs
gammazero Dec 13, 2024
07b8742
Merge pull request #10625 from ipfs/update-nopfs
hsanjuan Dec 13, 2024
898f024
[skip changelog] pinmfs: mitigate slow mfs writes when it triggers (#…
hsanjuan Dec 17, 2024
7c49860
Upgrade to Boxo v0.26.0 (#10631)
gammazero Dec 19, 2024
ecb2558
cmd/files: flush parent folders (#10630)
hsanjuan Dec 19, 2024
519ae27
feat: expose BlockKeyCacheSize and enable WriteThrough datastore opti…
hsanjuan Dec 19, 2024
295fd96
docs: clarify Swarm.ResourceMgr.MaxMemory (#10622)
lidel Dec 19, 2024
4e91ea3
Minor spelling and wording changes (#10634)
gammazero Dec 20, 2024
f2c1905
feat(flatfs): default to sync=false (#10632)
lidel Dec 20, 2024
397c346
feat(libp2p): shared TCP listeners and AutoTLS.AutoWSS (#10565)
aschmahmann Dec 20, 2024
9282f08
fix: ipfs-webui v4.4.2 (#10635)
lidel Dec 20, 2024
1b5aa0b
chore: 0.33.0-rc1
lidel Dec 20, 2024
5379200
collection of typo fixes (#10647)
gammazero Dec 30, 2024
258c5e4
Add example of setting array to config command help
gammazero Jan 2, 2025
5e1bacc
fix/gateway: escape directory redirect url (#10649)
gammazero Jan 4, 2025
a0c57cb
chore: fix typos and comment formatting (#10653)
gammazero Jan 7, 2025
9386fdc
fix(cli): support HTTPS in ipfs --api (#10659)
lidel Jan 10, 2025
89c6e7e
chore: p2p-forge v0.2.2 + go-libp2p-kad-dht v0.28.2 (#10663)
lidel Jan 13, 2025
6aa7d99
fix(dns): update default DNSLink resolvers (#10655)
lidel Jan 14, 2025
2e15a20
update dependencies (#10664)
gammazero Jan 21, 2025
3dd1232
Upgrade to Boxo v0.27.0 (#10665)
gammazero Jan 21, 2025
7d878bb
Upgrade to go-ds-pebble v0.4.2 (#10667)
gammazero Jan 22, 2025
c51d7cd
update changelog for boxo and go-libp2p (#10668)
gammazero Jan 22, 2025
00cb388
fix(autotls): renewal and AutoTLS.ShortAddrs (#10669)
lidel Jan 22, 2025
5fdd87c
Upgrade to Boxo v0.27.1 (#10671)
gammazero Jan 22, 2025
6426e19
chore: 0.33.0-rc2
lidel Jan 22, 2025
62ff2e6
Upgrade to Boxo v0.27.2 (#10672)
gammazero Jan 23, 2025
033de22
fix: quic-go v0.49.0 (#10673)
lidel Jan 23, 2025
4c23919
chore: 0.33.0-rc3
lidel Jan 23, 2025
c5e9015
test: fix the socat tests after the ubuntu 24.04 upgrade (#10683)
galargh Jan 29, 2025
b4b5d78
docs: 0.33.0
lidel Jan 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(autotls): renewal and AutoTLS.ShortAddrs (#10669)
* fix(autotls): renewal and AutoTLS.ShortAddrs

updates to p2p-forge/client with fix from
ipshipyard/p2p-forge#42

we also add AutoTLS.ShortAddrs flag and enable it by default
to benefit from shorter addrs discusses in
ipshipyard/p2p-forge#40

* test: fix flaky NewRandPort

reducing chance of bind: address already in use

(cherry picked from commit 256a739)
  • Loading branch information
lidel committed Jan 22, 2025
commit 00cb38865ff1190c0b8b74221b5622984015a4c1
4 changes: 4 additions & 0 deletions config/autotls.go
Original file line number Diff line number Diff line change
@@ -23,6 +23,9 @@ type AutoTLS struct {

// Optional override of CA ACME API used by p2p-forge system
CAEndpoint *OptionalString `json:",omitempty"`

// Optional, controls if features like AutoWSS should generate shorter /dnsX instead of /ipX/../sni/..
ShortAddrs Flag `json:",omitempty"`
}

const (
@@ -31,4 +34,5 @@ const (
DefaultRegistrationEndpoint = p2pforge.DefaultForgeEndpoint
DefaultCAEndpoint = p2pforge.DefaultCAEndpoint
DefaultAutoWSS = true // requires AutoTLS.Enabled
DefaultAutoTLSShortAddrs = true // requires AutoTLS.Enabled
)
8 changes: 5 additions & 3 deletions core/node/libp2p/addrs.go
Original file line number Diff line number Diff line change
@@ -136,11 +136,12 @@ func ListenOn(addresses []string) interface{} {
func P2PForgeCertMgr(repoPath string, cfg config.AutoTLS, atlsLog *logging.ZapEventLogger) interface{} {
return func() (*p2pforge.P2PForgeCertMgr, error) {
storagePath := filepath.Join(repoPath, "p2p-forge-certs")
rawLogger := atlsLog.Desugar()

// TODO: this should not be necessary, but we do it to help tracking
// down any race conditions causing
// TODO: this should not be necessary after
// https://github.com/ipshipyard/p2p-forge/pull/42 but keep it here for
// now to help tracking down any remaining conditions causing
// https://github.com/ipshipyard/p2p-forge/issues/8
rawLogger := atlsLog.Desugar()
certmagic.Default.Logger = rawLogger.Named("default_fixme")
certmagic.DefaultACME.Logger = rawLogger.Named("default_acme_client_fixme")

@@ -153,6 +154,7 @@ func P2PForgeCertMgr(repoPath string, cfg config.AutoTLS, atlsLog *logging.ZapEv
p2pforge.WithForgeAuth(cfg.RegistrationToken.WithDefault(os.Getenv(p2pforge.ForgeAuthEnv))),
p2pforge.WithUserAgent(version.GetUserAgentVersion()),
p2pforge.WithCertificateStorage(certStorage),
p2pforge.WithShortForgeAddrs(cfg.ShortAddrs.WithDefault(config.DefaultAutoTLSShortAddrs)),
)
if err != nil {
return nil, err
2 changes: 1 addition & 1 deletion docs/changelogs/v0.33.md
Original file line number Diff line number Diff line change
@@ -104,7 +104,7 @@ We have fixed a number of issues that were triggered by writing or copying many
- update `boxo` to [v0.27.0](https://github.com/ipfs/boxo/releases/tag/v0.27.0) (incl. [v0.25.0](https://github.com/ipfs/boxo/releases/tag/v0.25.0) + [v0.26.0](https://github.com/ipfs/boxo/releases/tag/v0.26.0) )
- update `go-libp2p` to [v0.38.2](https://github.com/libp2p/go-libp2p/releases/tag/v0.38.2) (incl. [v0.37.1](https://github.com/libp2p/go-libp2p/releases/tag/v0.37.1) + [v0.37.2](https://github.com/libp2p/go-libp2p/releases/tag/v0.37.2) + [v0.38.0](https://github.com/libp2p/go-libp2p/releases/tag/v0.38.0) + [v0.38.1](https://github.com/libp2p/go-libp2p/releases/tag/v0.38.1))
- update `go-libp2p-kad-dht` to [v0.28.2](https://github.com/libp2p/go-libp2p-kad-dht/releases/tag/v0.28.2)
- update `p2p-forge/client` to [v0.2.2](https://github.com/ipshipyard/p2p-forge/releases/tag/v0.2.2) (incl. [v0.1.0](https://github.com/ipshipyard/p2p-forge/releases/tag/v0.1.0), [v0.2.0](https://github.com/ipshipyard/p2p-forge/releases/tag/v0.2.0), [v0.2.1](https://github.com/ipshipyard/p2p-forge/releases/tag/v0.2.1))
- update `p2p-forge/client` to [v0.3.0](https://github.com/ipshipyard/p2p-forge/releases/tag/v0.3.0) (incl. [v0.1.0](https://github.com/ipshipyard/p2p-forge/releases/tag/v0.1.0), [v0.2.0](https://github.com/ipshipyard/p2p-forge/releases/tag/v0.2.0), [v0.2.1](https://github.com/ipshipyard/p2p-forge/releases/tag/v0.2.1), [v0.2.2](https://github.com/ipshipyard/p2p-forge/releases/tag/v0.2.2))
- update `ipfs-webui` to [v4.4.2](https://github.com/ipfs/ipfs-webui/releases/tag/v4.4.2) (incl. [v4.4.1](https://github.com/ipfs/ipfs-webui/releases/tag/v4.4.1))

#### Escape Redirect URL for Directory
12 changes: 12 additions & 0 deletions docs/config.md
Original file line number Diff line number Diff line change
@@ -30,6 +30,7 @@ config file at runtime.
- [`AutoTLS`](#autotls)
- [`AutoTLS.Enabled`](#autotlsenabled)
- [`AutoTLS.AutoWSS`](#autotlsautowss)
- [`AutoTLS.ShortAddrs`](#autotlsshortaddrs)
- [`AutoTLS.DomainSuffix`](#autotlsdomainsuffix)
- [`AutoTLS.RegistrationEndpoint`](#autotlsregistrationendpoint)
- [`AutoTLS.RegistrationToken`](#autotlsregistrationtoken)
@@ -530,6 +531,17 @@ Default: `true` (active only if `AutoTLS.Enabled` is `true` as well)

Type: `flag`

### `AutoTLS.ShortAddrs`

Optional. Controls if final AutoTLS listeners are announced under shorter `/dnsX/A.B.C.D.peerid.libp2p.direct/tcp/4001/tls/ws` addresses instead of fully resolved `/ip4/A.B.C.D/tcp/4001/tls/sni/A-B-C-D.peerid.libp2p.direct/tls/ws`.

> [!TIP]
> The main use for AutoTLS is allowing connectivity from Secure Context in a web browser, and DNS lookup needs to happen there anyway, making `/dnsX` a more compact, more interoperable option without obvious downside.

Default: `true`

Type: `flag`

### `AutoTLS.DomainSuffix`

Optional override of the parent domain suffix that will be used in DNS+TLS+WebSockets multiaddrs generated by [p2p-forge] client.
2 changes: 1 addition & 1 deletion docs/examples/kubo-as-a-library/go.mod
Original file line number Diff line number Diff line change
@@ -112,7 +112,7 @@ require (
github.com/ipld/go-car/v2 v2.14.2 // indirect
github.com/ipld/go-codec-dagpb v1.6.0 // indirect
github.com/ipld/go-ipld-prime v0.21.0 // indirect
github.com/ipshipyard/p2p-forge v0.2.2 // indirect
github.com/ipshipyard/p2p-forge v0.3.0 // indirect
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
github.com/jbenet/go-temp-err-catcher v0.1.0 // indirect
github.com/jbenet/goprocess v0.1.4 // indirect
4 changes: 2 additions & 2 deletions docs/examples/kubo-as-a-library/go.sum
Original file line number Diff line number Diff line change
@@ -407,8 +407,8 @@ github.com/ipld/go-ipld-prime v0.21.0 h1:n4JmcpOlPDIxBcY037SVfpd1G+Sj1nKZah0m6QH
github.com/ipld/go-ipld-prime v0.21.0/go.mod h1:3RLqy//ERg/y5oShXXdx5YIp50cFGOanyMctpPjsvxQ=
github.com/ipld/go-ipld-prime/storage/bsadapter v0.0.0-20230102063945-1a409dc236dd h1:gMlw/MhNr2Wtp5RwGdsW23cs+yCuj9k2ON7i9MiJlRo=
github.com/ipld/go-ipld-prime/storage/bsadapter v0.0.0-20230102063945-1a409dc236dd/go.mod h1:wZ8hH8UxeryOs4kJEJaiui/s00hDSbE37OKsL47g+Sw=
github.com/ipshipyard/p2p-forge v0.2.2 h1:S8NlZ++AMIiXpOPjRGXg6Ob3Bb1K8wuBxRm2f9eRQWE=
github.com/ipshipyard/p2p-forge v0.2.2/go.mod h1:L0TJMzniMEDjX8G+RB201U2woHvASwbsujNVDNVivDo=
github.com/ipshipyard/p2p-forge v0.3.0 h1:mdeFqiq8ljX149OCQvveV0vOlKeIt4PWkJjXVfux/GE=
github.com/ipshipyard/p2p-forge v0.3.0/go.mod h1:L0TJMzniMEDjX8G+RB201U2woHvASwbsujNVDNVivDo=
github.com/jackpal/go-nat-pmp v1.0.2 h1:KzKSgb7qkJvOUTqYl9/Hg/me3pWgBmERKrTGD7BdWus=
github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc=
github.com/jbenet/go-cienv v0.1.0/go.mod h1:TqNnHUmJgXau0nCzC7kXWeotg3J9W34CUv5Djy1+FlA=
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@ require (
github.com/ipld/go-car/v2 v2.14.2
github.com/ipld/go-codec-dagpb v1.6.0
github.com/ipld/go-ipld-prime v0.21.0
github.com/ipshipyard/p2p-forge v0.2.2
github.com/ipshipyard/p2p-forge v0.3.0
github.com/jbenet/go-temp-err-catcher v0.1.0
github.com/jbenet/goprocess v0.1.4
github.com/julienschmidt/httprouter v1.3.0
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -475,8 +475,8 @@ github.com/ipld/go-ipld-prime v0.21.0 h1:n4JmcpOlPDIxBcY037SVfpd1G+Sj1nKZah0m6QH
github.com/ipld/go-ipld-prime v0.21.0/go.mod h1:3RLqy//ERg/y5oShXXdx5YIp50cFGOanyMctpPjsvxQ=
github.com/ipld/go-ipld-prime/storage/bsadapter v0.0.0-20230102063945-1a409dc236dd h1:gMlw/MhNr2Wtp5RwGdsW23cs+yCuj9k2ON7i9MiJlRo=
github.com/ipld/go-ipld-prime/storage/bsadapter v0.0.0-20230102063945-1a409dc236dd/go.mod h1:wZ8hH8UxeryOs4kJEJaiui/s00hDSbE37OKsL47g+Sw=
github.com/ipshipyard/p2p-forge v0.2.2 h1:S8NlZ++AMIiXpOPjRGXg6Ob3Bb1K8wuBxRm2f9eRQWE=
github.com/ipshipyard/p2p-forge v0.2.2/go.mod h1:L0TJMzniMEDjX8G+RB201U2woHvASwbsujNVDNVivDo=
github.com/ipshipyard/p2p-forge v0.3.0 h1:mdeFqiq8ljX149OCQvveV0vOlKeIt4PWkJjXVfux/GE=
github.com/ipshipyard/p2p-forge v0.3.0/go.mod h1:L0TJMzniMEDjX8G+RB201U2woHvASwbsujNVDNVivDo=
github.com/jackpal/go-nat-pmp v1.0.2 h1:KzKSgb7qkJvOUTqYl9/Hg/me3pWgBmERKrTGD7BdWus=
github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc=
github.com/jbenet/go-cienv v0.1.0 h1:Vc/s0QbQtoxX8MwwSLWWh+xNNZvM3Lw7NsTcHrvvhMc=
8 changes: 8 additions & 0 deletions test/cli/harness/peering.go
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@ package harness
import (
"fmt"
"math/rand"
"net"
"testing"

"github.com/ipfs/kubo/config"
@@ -14,6 +15,13 @@ type Peering struct {
}

func NewRandPort() int {
if a, err := net.ResolveTCPAddr("tcp", "localhost:0"); err == nil {
var l *net.TCPListener
if l, err = net.ListenTCP("tcp", a); err == nil {
defer l.Close()
return l.Addr().(*net.TCPAddr).Port
}
}
n := rand.Int()
return 3000 + (n % 1000)
}
2 changes: 1 addition & 1 deletion test/dependencies/go.mod
Original file line number Diff line number Diff line change
@@ -131,7 +131,7 @@ require (
github.com/ipfs/kubo v0.31.0 // indirect
github.com/ipld/go-codec-dagpb v1.6.0 // indirect
github.com/ipld/go-ipld-prime v0.21.0 // indirect
github.com/ipshipyard/p2p-forge v0.2.2 // indirect
github.com/ipshipyard/p2p-forge v0.3.0 // indirect
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
github.com/jbenet/go-temp-err-catcher v0.1.0 // indirect
github.com/jbenet/goprocess v0.1.4 // indirect
4 changes: 2 additions & 2 deletions test/dependencies/go.sum
Original file line number Diff line number Diff line change
@@ -364,8 +364,8 @@ github.com/ipld/go-codec-dagpb v1.6.0 h1:9nYazfyu9B1p3NAgfVdpRco3Fs2nFC72DqVsMj6
github.com/ipld/go-codec-dagpb v1.6.0/go.mod h1:ANzFhfP2uMJxRBr8CE+WQWs5UsNa0pYtmKZ+agnUw9s=
github.com/ipld/go-ipld-prime v0.21.0 h1:n4JmcpOlPDIxBcY037SVfpd1G+Sj1nKZah0m6QH9C2E=
github.com/ipld/go-ipld-prime v0.21.0/go.mod h1:3RLqy//ERg/y5oShXXdx5YIp50cFGOanyMctpPjsvxQ=
github.com/ipshipyard/p2p-forge v0.2.2 h1:S8NlZ++AMIiXpOPjRGXg6Ob3Bb1K8wuBxRm2f9eRQWE=
github.com/ipshipyard/p2p-forge v0.2.2/go.mod h1:L0TJMzniMEDjX8G+RB201U2woHvASwbsujNVDNVivDo=
github.com/ipshipyard/p2p-forge v0.3.0 h1:mdeFqiq8ljX149OCQvveV0vOlKeIt4PWkJjXVfux/GE=
github.com/ipshipyard/p2p-forge v0.3.0/go.mod h1:L0TJMzniMEDjX8G+RB201U2woHvASwbsujNVDNVivDo=
github.com/jackpal/go-nat-pmp v1.0.2 h1:KzKSgb7qkJvOUTqYl9/Hg/me3pWgBmERKrTGD7BdWus=
github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc=
github.com/jbenet/go-cienv v0.1.0/go.mod h1:TqNnHUmJgXau0nCzC7kXWeotg3J9W34CUv5Djy1+FlA=
Loading