Skip to content

Commit ad1055c

Browse files
authored
Merge pull request #10563 from ipfs/release-v0.32.0
Release v0.32.0
2 parents 5a32936 + 970fcb5 commit ad1055c

File tree

35 files changed

+1524
-718
lines changed

35 files changed

+1524
-718
lines changed

.github/workflows/docker-image.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ on:
1919
push:
2020
branches:
2121
- 'master'
22+
- 'staging'
2223
- 'bifrost-*'
2324
tags:
2425
- 'v*'

.github/workflows/gotest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
make -j "$PARALLEL" test/unit/gotest.junit.xml &&
4646
[[ ! $(jq -s -c 'map(select(.Action == "fail")) | .[]' test/unit/gotest.json) ]]
4747
- name: Upload coverage to Codecov
48-
uses: codecov/codecov-action@6d798873df2b1b8e5846dba6fb86631229fbcb17 # v4.4.0
48+
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
4949
if: failure() || success()
5050
with:
5151
name: unittests

.github/workflows/sharness.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
# increasing parallelism beyond 10 doesn't speed up the tests much
5656
PARALLEL: ${{ github.repository == 'ipfs/kubo' && 10 || 3 }}
5757
- name: Upload coverage report
58-
uses: codecov/codecov-action@6d798873df2b1b8e5846dba6fb86631229fbcb17 # v4.4.0
58+
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
5959
if: failure() || success()
6060
with:
6161
name: sharness

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Kubo Changelogs
22

3+
- [v0.32](docs/changelogs/v0.32.md)
34
- [v0.31](docs/changelogs/v0.31.md)
45
- [v0.30](docs/changelogs/v0.30.md)
56
- [v0.29](docs/changelogs/v0.29.md)

bin/get-docker-tags.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ set -euo pipefail
1818
if [[ $# -lt 1 ]] ; then
1919
echo 'At least 1 arg required.'
2020
echo 'Usage:'
21-
echo './push-docker-tags.sh <build number> [git commit sha1] [git branch name] [git tag name]'
21+
echo './get-docker-tags.sh <build number> [git commit sha1] [git branch name] [git tag name]'
2222
exit 1
2323
fi
2424

@@ -50,9 +50,9 @@ elif [[ $GIT_BRANCH =~ ^bifrost-.* ]]; then
5050
branch=$(echo "$GIT_BRANCH" | tr '/' '-' | tr --delete --complement '[:alnum:]-')
5151
echoImageName "${branch}-${BUILD_NUM}-${GIT_SHA1_SHORT}"
5252

53-
elif [ "$GIT_BRANCH" = "master" ]; then
54-
echoImageName "master-${BUILD_NUM}-${GIT_SHA1_SHORT}"
55-
echoImageName "master-latest"
53+
elif [ "$GIT_BRANCH" = "master" ] || [ "$GIT_BRANCH" = "staging" ]; then
54+
echoImageName "${GIT_BRANCH}-${BUILD_NUM}-${GIT_SHA1_SHORT}"
55+
echoImageName "${GIT_BRANCH}-latest"
5656

5757
else
5858
echo "Nothing to do. No docker tag defined for branch: $GIT_BRANCH, tag: $GIT_TAG"

bin/push-docker-tags.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
2-
2+
#
3+
# TODO: this script is legacy, use get-docker-tags.sh instead.
4+
#
35
# push-docker-tags.sh
46
#
57
# Run from ci to tag images based on the current branch or tag name.
@@ -68,9 +70,9 @@ elif [[ $GIT_BRANCH =~ ^bifrost-.* ]]; then
6870
branch=$(echo "$GIT_BRANCH" | tr '/' '-' | tr --delete --complement '[:alnum:]-')
6971
pushTag "${branch}-${BUILD_NUM}-${GIT_SHA1_SHORT}"
7072

71-
elif [ "$GIT_BRANCH" = "master" ]; then
72-
pushTag "master-${BUILD_NUM}-${GIT_SHA1_SHORT}"
73-
pushTag "master-latest"
73+
elif [ "$GIT_BRANCH" = "master" ] || [ "$GIT_BRANCH" = "staging" ]; then
74+
pushTag "${GIT_BRANCH}-${BUILD_NUM}-${GIT_SHA1_SHORT}"
75+
pushTag "${GIT_BRANCH}-latest"
7476

7577
else
7678
echo "Nothing to do. No docker tag defined for branch: $GIT_BRANCH, tag: $GIT_TAG"

client/rpc/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ import (
2020
ipfs "github.com/ipfs/kubo"
2121
iface "github.com/ipfs/kubo/core/coreiface"
2222
caopts "github.com/ipfs/kubo/core/coreiface/options"
23+
"github.com/ipfs/kubo/misc/fsutil"
2324
dagpb "github.com/ipld/go-codec-dagpb"
2425
_ "github.com/ipld/go-ipld-prime/codec/dagcbor"
2526
"github.com/ipld/go-ipld-prime/node/basicnode"
26-
"github.com/mitchellh/go-homedir"
2727
ma "github.com/multiformats/go-multiaddr"
2828
manet "github.com/multiformats/go-multiaddr/net"
2929
)
@@ -82,7 +82,7 @@ func NewPathApi(ipfspath string) (*HttpApi, error) {
8282

8383
// ApiAddr reads api file in specified ipfs path.
8484
func ApiAddr(ipfspath string) (ma.Multiaddr, error) {
85-
baseDir, err := homedir.Expand(ipfspath)
85+
baseDir, err := fsutil.ExpandHome(ipfspath)
8686
if err != nil {
8787
return nil, err
8888
}

cmd/ipfswatch/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ import (
1616
core "github.com/ipfs/kubo/core"
1717
coreapi "github.com/ipfs/kubo/core/coreapi"
1818
corehttp "github.com/ipfs/kubo/core/corehttp"
19+
"github.com/ipfs/kubo/misc/fsutil"
1920
fsrepo "github.com/ipfs/kubo/repo/fsrepo"
2021

2122
fsnotify "github.com/fsnotify/fsnotify"
2223
"github.com/ipfs/boxo/files"
2324
process "github.com/jbenet/goprocess"
24-
homedir "github.com/mitchellh/go-homedir"
2525
)
2626

2727
var (
@@ -57,7 +57,7 @@ func run(ipfsPath, watchPath string) error {
5757
proc := process.WithParent(process.Background())
5858
log.Printf("running IPFSWatch on '%s' using repo at '%s'...", watchPath, ipfsPath)
5959

60-
ipfsPath, err := homedir.Expand(ipfsPath)
60+
ipfsPath, err := fsutil.ExpandHome(ipfsPath)
6161
if err != nil {
6262
return err
6363
}

config/autotls.go

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package config
2+
3+
import p2pforge "github.com/ipshipyard/p2p-forge/client"
4+
5+
// AutoTLS includes optional configuration of p2p-forge client of service
6+
// for obtaining a domain and TLS certificate to improve connectivity for web
7+
// browser clients. More: https://github.com/ipshipyard/p2p-forge#readme
8+
type AutoTLS struct {
9+
// Enables the p2p-forge feature
10+
Enabled Flag `json:",omitempty"`
11+
12+
// Optional override of the parent domain that will be used
13+
DomainSuffix *OptionalString `json:",omitempty"`
14+
15+
// Optional override of HTTP API that acts as ACME DNS-01 Challenge broker
16+
RegistrationEndpoint *OptionalString `json:",omitempty"`
17+
18+
// Optional Authorization token, used with private/test instances of p2p-forge
19+
RegistrationToken *OptionalString `json:",omitempty"`
20+
21+
// Optional override of CA ACME API used by p2p-forge system
22+
CAEndpoint *OptionalString `json:",omitempty"`
23+
}
24+
25+
const (
26+
DefaultAutoTLSEnabled = false // experimental, opt-in for now (https://github.com/ipfs/kubo/pull/10521)
27+
DefaultDomainSuffix = p2pforge.DefaultForgeDomain
28+
DefaultRegistrationEndpoint = p2pforge.DefaultForgeEndpoint
29+
DefaultCAEndpoint = p2pforge.DefaultCAEndpoint
30+
)

config/config.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"path/filepath"
1010
"strings"
1111

12-
"github.com/mitchellh/go-homedir"
12+
"github.com/ipfs/kubo/misc/fsutil"
1313
)
1414

1515
// Config is used to load ipfs config files.
@@ -26,6 +26,7 @@ type Config struct {
2626
API API // local node's API settings
2727
Swarm SwarmConfig
2828
AutoNAT AutoNATConfig
29+
AutoTLS AutoTLS
2930
Pubsub PubsubConfig
3031
Peering Peering
3132
DNS DNS
@@ -58,7 +59,7 @@ func PathRoot() (string, error) {
5859
dir := os.Getenv(EnvDir)
5960
var err error
6061
if len(dir) == 0 {
61-
dir, err = homedir.Expand(DefaultPathRoot)
62+
dir, err = fsutil.ExpandHome(DefaultPathRoot)
6263
}
6364
return dir, err
6465
}

0 commit comments

Comments
 (0)