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: v0.25.0 [skip changelog] #10258

Merged
merged 343 commits into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
343 commits
Select commit Hold shift + click to select a range
f56bdca
coreapi: dht: remove option prefix
magik6k Aug 28, 2018
00a0dc6
gx update and fix code to use new Cid type
kevina Sep 12, 2018
4160bd5
gx: fix hashes
Stebalien Sep 12, 2018
7455bd6
resolve cmd: use coreapi
magik6k Sep 18, 2018
5411cc0
coreapi name: accept namesys options
magik6k Sep 19, 2018
e8e2f54
gx: update go-libp2p-routing
magik6k Sep 24, 2018
ba7a344
gx: update go-log go-ipld-cbor
Stebalien Sep 24, 2018
8404b82
coreapi: swarm interface
magik6k Mar 10, 2018
fc83863
coreapi: implement swarm api
magik6k Mar 10, 2018
e839e46
fix infinite loop in connInfo.ID
magik6k Apr 5, 2018
619855c
swarm cmd: port to new cmd lib
magik6k Sep 11, 2018
284fd89
coreapi swarm: rewire connect/disconnect
magik6k Sep 17, 2018
cb1f0c5
coreapi swarm: rewire address listing cmds
magik6k Sep 17, 2018
a95fe8e
coreapi swarm: missing docs, review
magik6k Oct 2, 2018
99c68ac
Cleanup instances of manual resolver construction
magik6k Sep 19, 2018
6423bc7
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#4803 from ipf…
Stebalien Oct 2, 2018
7d9ebdc
coreapi unixfs: use fileAdder directly
magik6k Sep 20, 2018
d7afe85
coreapi unixfs: cid prefix options
magik6k Sep 20, 2018
9e57389
coreapi unixfs: options for RawLeaves / Inline
magik6k Sep 20, 2018
82ef32d
coreapi unixfs: layout/chunker options
magik6k Sep 20, 2018
ac8ff30
coreapi unixfs: pin/local/hash-only options
magik6k Sep 20, 2018
7546c93
coreapi unixfs: cleanup options
magik6k Sep 20, 2018
8cea9f9
coreapi unixfs: docs on options
magik6k Sep 20, 2018
33bb770
coreapi unixfs: separate option to enable inlining
magik6k Oct 2, 2018
d3bbffb
coreapi unixfs: multi file support in unixfs coreapi
magik6k Oct 3, 2018
a7b8952
coreapi unixfs: unixfs.Get
magik6k Oct 3, 2018
ee45daf
coreapi unixfs: wrap option
magik6k Oct 3, 2018
f10ca5c
coreapi unixfs: hidden opiton
magik6k Oct 3, 2018
4876186
coreapi unixfs: stdin-name option
magik6k Oct 3, 2018
be5cccd
coreapi unixfs: progress events
magik6k Oct 3, 2018
dfb14f3
coreapi unixfs: filestore opts
magik6k Oct 3, 2018
e59b75a
coreapi unixfs: fix inline doc
magik6k Oct 4, 2018
4c5803a
coreapi name: add some missing options
magik6k Oct 4, 2018
db11d51
gx: update go-datastore, go-libp2p-swarm
Oct 3, 2018
cd6d305
gx update go-libp2p-peerstore
kevina Oct 4, 2018
59de96e
gx update libp2p/go-buffer-pool
kevina Oct 4, 2018
1aa388c
update unixfs inline option comment to give us room to change things
Stebalien Oct 5, 2018
b6e4e99
Merge remote-tracking branch 'origin/master' into feat/coreapi/unixfs
magik6k Oct 5, 2018
f9a9347
coreapi: pubsub interface
magik6k Mar 10, 2018
729bb03
coreapi: implement pubsub api
magik6k Mar 10, 2018
3f6b34d
coreapi pubsub: add tests
magik6k Sep 11, 2018
d5d6e5c
pubsub cmd: switch to coreapi
magik6k Sep 11, 2018
57fdb89
coreapi pubsub: fix review nits
magik6k Sep 26, 2018
fae1475
gx: update stuff
Stebalien Oct 5, 2018
95b09cf
Merge branch 'master' into feat/namestream
magik6k Oct 10, 2018
d54cf20
gx: update go-buffer-pool
Stebalien Oct 10, 2018
b3ad186
gx: update yamux and refmt
Stebalien Oct 12, 2018
ba5a18c
Merge remote-tracking branch 'origin/master' into feat/namestream
magik6k Oct 15, 2018
45b9ac5
namesys: review fixes
magik6k Oct 16, 2018
cfb18be
namesys: drop prefix args
magik6k Oct 16, 2018
9a680c8
gx: update to use extracted go-ipfs-files
magik6k Oct 18, 2018
d504ba9
Merge remote-tracking branch 'origin/master' into feat/namestream
magik6k Oct 18, 2018
278701f
coreapi unixfs: remove Cat, use sessions
magik6k Oct 9, 2018
7301aaa
coreapi unixfs: Return seeker from get
magik6k Oct 15, 2018
e6dbe55
gx update
Stebalien Oct 24, 2018
07161de
gx update go-libp2p
Stebalien Oct 24, 2018
213fdce
gx: update yamux
Stebalien Oct 24, 2018
1cd4f20
Bubble deps
hsanjuan Oct 27, 2018
7c9bf20
coreapi: fix errisdir
Stebalien Oct 30, 2018
a52ab71
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#5626 from ipf…
Stebalien Oct 30, 2018
a81292a
gx: update go-path
Stebalien Oct 30, 2018
1eb12c9
gx: update go-ipld-cbor
Stebalien Nov 2, 2018
3e33625
gx: update go-log and sha256
Stebalien Nov 3, 2018
187f6a3
Update go-ipfs-delay and assoc deps
hannahhoward Nov 11, 2018
dda7428
Gx update go-merkledag and related deps.
kevina Nov 28, 2018
f31d59e
gx: update go-libp2p-peer
Stebalien Dec 7, 2018
7505d2c
gx: update go-ipfs-files to 2.0
magik6k Oct 26, 2018
20631f7
files2.0: fix build errors
magik6k Oct 26, 2018
257add1
files2.0: updates for file type split
magik6k Nov 19, 2018
bee62f1
files2.0: address review
magik6k Dec 18, 2018
f24ab99
coreapi: Global options for api constructor
magik6k Dec 6, 2018
5da159b
coreapi.WithOptions
magik6k Dec 10, 2018
322654a
coreapi: drop nameopt.Local in favour of api.Offline
magik6k Dec 10, 2018
2230c18
coreapi: implement --local with Offline option
magik6k Dec 10, 2018
cd14497
coreapi WithOptions: apply on top of parent options
magik6k Dec 11, 2018
1208d73
coreapi/unixfs: Use path instead of raw hash in AddEvent
magik6k Dec 18, 2018
e60f2ba
coreapi: move tests to interface subpackage
magik6k Dec 20, 2018
373e313
coreapi: run tests from interface
magik6k Dec 20, 2018
cba8f3c
coreapi: Interface for external test providers
magik6k Dec 20, 2018
e5a2d8e
coreapi: make sure to cancel context in tests
magik6k Dec 20, 2018
f012ef0
coreapi: don't panic as much in tests
magik6k Jan 2, 2019
80aace0
Fix offline gateway directory logic
magik6k Jan 4, 2019
3702f18
coreapi: FetchBlocks option
magik6k Jan 4, 2019
dfd6253
CoreAPI: Don't panic when testing incomplete implementions
magik6k Jan 7, 2019
12b64d0
gx: update deps
Stebalien Jan 9, 2019
ba369e5
coreapi: replace coreiface.DagAPI with ipld.DAGService
magik6k Jan 12, 2019
c1541fd
coreapi: adjust some tests for go-ipfs-http-api
magik6k Jan 15, 2019
f2b47a6
ls: report real size by default
magik6k Jan 11, 2019
dbeaf11
ls: skip size for directories
magik6k Jan 11, 2019
5ca8f97
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#5926 from ipf…
Stebalien Jan 17, 2019
b9a33f1
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#5922 from ipf…
Stebalien Jan 21, 2019
20eafc5
coreapi: few more error check fixes
magik6k Jan 21, 2019
75fce9a
Port dag commansds to CoreAPI
magik6k Jan 22, 2019
a437ea3
Unixfs.Add nocopy test
magik6k Jan 14, 2019
f590838
Unixfs: enforce refs on files when using nocopy
magik6k Jan 14, 2019
d40a54c
gx: update go-unixfs to 1.2.14 and go-bitswap to 1.1.21
magik6k Jan 14, 2019
0f40b68
cmds/pin: use coreapi/pin
overbool Dec 13, 2018
bcc6216
cmds/pin: modify test
overbool Dec 15, 2018
e00e0df
gx: update go-unixfs to propagate archive changes
magik6k Jan 30, 2019
8f0b53d
coreapi: add some seeker tests
magik6k Jan 21, 2019
aeb9cdf
coreapi: use chan for returning results in Unixfs.Ls
magik6k Feb 1, 2019
9f4c147
coreapi: asunc ls option
magik6k Feb 1, 2019
ef58796
coreapi: resolve type/size in Unixfs.Ls
magik6k Feb 1, 2019
3dab843
ls: use CoreAPI
magik6k Feb 1, 2019
9f41461
coreapi: stream only ls, handle storting in command
magik6k Feb 2, 2019
3920450
coreapi ls: merge ResolveType and ResolveSize
magik6k Feb 2, 2019
eac8515
coreapi: mirror unixfs file types
magik6k Feb 2, 2019
abebd4e
block put --pin option
magik6k Feb 4, 2019
6e4a14d
coreapi: fix seek test on http impl
magik6k Feb 5, 2019
2186bb3
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#5971 from ipf…
Stebalien Feb 6, 2019
be9d4de
gx: update go-libp2p-peer
Stebalien Feb 8, 2019
23d84ed
coreapi: cleanup coredag references in interface
magik6k Feb 8, 2019
97c4333
coreapi: move namesys options to coreapi
magik6k Feb 8, 2019
46dbdf4
coreapi: fix failing dag test
magik6k Feb 8, 2019
af23d03
Update imports
magik6k Feb 9, 2019
152a54a
gx-go uw
magik6k Feb 9, 2019
0a6bdba
pubsub: fix race in test
magik6k Feb 12, 2019
8cc592c
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#3 from ipfs/f…
magik6k Feb 12, 2019
8542b65
errors: introduce a 'not supported' error
Stebalien Feb 19, 2019
2223b08
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#5 from ipfs/f…
Stebalien Feb 19, 2019
987a46a
tweak the Ls interface
Stebalien Mar 5, 2019
483caf7
file type: add stringer
Stebalien Mar 5, 2019
cc2b187
tests: add symlink target test
Stebalien Mar 5, 2019
30b344a
switch symlink target type to string
Stebalien Mar 5, 2019
5cdd4b3
remove target size requirement
Stebalien Mar 7, 2019
01b61d7
unixfs add: Changes for fixed wrap logic
magik6k Feb 25, 2019
a6fe800
unixfs add: Remove hidden file handling
magik6k Mar 10, 2019
726e8c0
unixfs: fix ls test for new add
magik6k Mar 11, 2019
905898b
unixfs add: remove StdinName
magik6k Mar 11, 2019
01a22ba
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#10 from ipfs/…
magik6k Mar 22, 2019
84faa01
remove Wrap
Stebalien Mar 22, 2019
52c10ba
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#21 from ipfs/…
Stebalien Mar 25, 2019
6190be2
make unrecoverable test errors fatal
Stebalien Mar 26, 2019
1f87fa6
tests: remove t.Fatal from goroutines
Stebalien Mar 26, 2019
ba5e78a
tests: remove ticker leak
Stebalien Mar 26, 2019
adddfdf
tests: fix unused variable lints
Stebalien Mar 26, 2019
6c4219a
don't close the top-level addr
Stebalien Mar 26, 2019
96a0e32
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#24 from ipfs/…
Stebalien Mar 27, 2019
2817364
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#25 from ipfs/…
Stebalien Mar 29, 2019
686f554
Update Pin.RmRecursive docs to clarify shared indirect pins are not r…
hinshun Mar 29, 2019
6f77341
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#26 from hinsh…
magik6k Apr 4, 2019
1a2e8ce
path: drop error from ParsePath
magik6k Mar 25, 2019
aca6f61
path: fix tests
magik6k Mar 25, 2019
51a937f
path: WIP
magik6k Mar 25, 2019
3669a77
path: rename ParsePath and ResolvedPath
magik6k Mar 26, 2019
eb58ebe
fix: cleanup TestDhtProvide
Stebalien Apr 16, 2019
dee1fd3
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#28 from ipfs/…
Stebalien Apr 16, 2019
b0a1bca
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#22 from ipfs/…
Stebalien Apr 17, 2019
ce49669
switch to base32 cidv1 by default
Stebalien May 7, 2019
7a56242
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#29 from ipfs/…
Stebalien May 13, 2019
79958dc
tests: expose TestSuite
magik6k May 17, 2019
9bef202
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#34 from ipfs/…
magik6k May 20, 2019
1f4d8c7
migrate to go-libp2p-core.
raulk May 28, 2019
dc6ca5a
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#35 from raulk…
Stebalien May 31, 2019
fafbedb
Bump go-libp2p-core, up test key size to 2048
bigs Aug 3, 2019
5b7c7cd
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#39 from ipfs/…
Stebalien Aug 3, 2019
09a4311
test: fix put with hash test
Stebalien Aug 23, 2019
8bc791e
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#41 from ipfs/…
Stebalien Aug 23, 2019
5168b59
test: test ReadAt if implemented
Stebalien Sep 11, 2019
259a989
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#43 from ipfs/…
Stebalien Sep 11, 2019
58df273
fix(test): fix a flaky pubsub test
Stebalien Sep 27, 2019
d3598ca
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#45 from ipfs/…
Stebalien Sep 27, 2019
c23fa6e
test(pinning): add pin ls tests for indirect pin traversal and pin ty…
aschmahmann Oct 11, 2019
1fc9cff
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#47 from ipfs/…
aschmahmann Nov 25, 2019
e3b5686
feat: make the CoreAPI expose a streaming pin interface
MichaelMure Nov 27, 2019
8eff544
fix some tests
MichaelMure Nov 29, 2019
e5059d9
fix(tests): put valid blocks
Stebalien Dec 2, 2019
80a898d
test: fail early on err to avoid an unrelated panic
MichaelMure Jan 22, 2020
b5eaa64
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#57 from Micha…
Stebalien Jan 23, 2020
cdd7cc4
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#49 from Micha…
Stebalien Feb 28, 2020
b520340
pin: add a IsPinned method
MichaelMure Nov 29, 2019
7f07bf0
pin: better doc, small cleaning
MichaelMure Mar 30, 2020
3a48c52
extra time for dht spin-up
willscott Apr 21, 2020
d15c066
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#61 from ipfs/…
Stebalien Apr 21, 2020
1babbda
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#50 from Micha…
Stebalien May 5, 2020
2517d0b
add id and key formatting utils; format keys as b36cid by default; up…
petar Jul 22, 2020
3826afd
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#65 from ipfs/…
aschmahmann Jul 29, 2020
fb0a7ed
fix staticcheck
marten-seemann Jun 2, 2021
c2ffa45
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#72 from ipfs/…
marten-seemann Jun 2, 2021
58c9824
IPLD In IPFS: Target Merge Branch (#67)
hannahhoward Aug 12, 2021
f909368
fix: check errors by string
Stebalien Aug 17, 2021
a83f5e6
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#76 from ipfs/…
Stebalien Aug 17, 2021
49e2b34
Update tests to use ipld.IsNotFound to check for notfound errors
hsanjuan Mar 2, 2022
29d0379
fix: document error (#74)
godcong Mar 25, 2022
9120e3f
fix: use IPLD.ErrNotFound instead of string comparison in tests
Jorropo Mar 31, 2022
caa42b5
refactor(block): CIDv1 and BlockPutSettings CidPrefix (#80)
schomatis Apr 21, 2022
f2614d9
sync: update CI config files (#87)
web3-bot Aug 25, 2022
46577b1
chore: update go-libp2p to v0.23.4
marten-seemann Nov 20, 2022
d2edb2e
feat: add UseCumulativeSize UnixfsLs option (#95)
hacdias Dec 12, 2022
5870752
chore: migrate files (#97)
hacdias Jan 12, 2023
b3cc938
feat: add namesys publish options (#94)
hacdias Jan 24, 2023
132206b
feat: add RoutingAPI to CoreAPI
hacdias Nov 14, 2022
3f7c35b
test: basic routing interface test
hacdias Feb 8, 2023
3b6647f
test: use two nodes in publish
Jorropo Feb 10, 2023
8c2ae9c
feat: Über Migration (and Boxo rename)
Jorropo Mar 23, 2023
1b154e2
feat(routing): allow-offline with routing put (#278)
laurentsenta May 3, 2023
18143e2
coreiface: add a testing.T argument to the provider
Jorropo May 30, 2023
0134124
pinner: change the interface to have async pin listing
MichaelMure Jun 2, 2023
d646486
feat(ipns): refactored IPNS package with lean records (#339)
hacdias Jun 20, 2023
1d797fd
Merge pull request ipfs/boxo#417 from ipfs/release-v0.11.0
Jorropo Jul 26, 2023
6df76ce
Merge pull request ipfs/boxo#418 from ipfs/release
Jorropo Jul 27, 2023
334308f
style: run gofumpt
Jorropo Aug 21, 2023
6cd69b1
Merge pull request ipfs/boxo#446 from ipfs/release-v0.12
hacdias Aug 22, 2023
bffa329
Merge pull request ipfs/boxo#448 from ipfs/merge-release-v0.12.0
hacdias Aug 22, 2023
f7be8b2
Merge pull request ipfs/boxo#465 from ipfs/release-v0.13.0
hacdias Sep 20, 2023
e67c8bc
Merge pull request ipfs/boxo#467 from ipfs/release
hacdias Sep 20, 2023
38ff3ab
Merge pull request ipfs/boxo#469 from ipfs/release-v0.13.1
hacdias Sep 21, 2023
4e0f9aa
Merge pull request ipfs/boxo#470 from ipfs/release
hacdias Sep 21, 2023
5bac37c
feat(path)!: consolidated path libraries (#334)
hacdias Oct 6, 2023
dafdce8
path: replace ImmutablePath interface with struct
Jorropo Oct 6, 2023
faac7c1
feat!: namesys refactor, ipns TTL bubbled up to gateway (#459)
hacdias Oct 18, 2023
04b27b2
Merge pull request ipfs/boxo#500 from ipfs/release-v0.14.0
hacdias Nov 1, 2023
1c21ccb
Merge pull request ipfs/boxo#501 from ipfs/release
hacdias Nov 1, 2023
0f6f02c
chore: update version
hacdias Nov 1, 2023
b47928b
Merge pull request #10191 from ipfs/version-update-v0.24
hacdias Nov 1, 2023
e238a86
docs: update EARLY_TESTERS.md (#10194)
BigLep Nov 3, 2023
4e34e60
Merge pull request ipfs/boxo#505 from ipfs/release-v0.15.0
hacdias Nov 3, 2023
69279f5
Merge pull request ipfs/boxo#506 from ipfs/release
hacdias Nov 3, 2023
f1fec71
chore: go-libp2p v0.32.0
hacdias Nov 3, 2023
9f3251c
feat: add WebRTC Direct support
hacdias Nov 3, 2023
884a3f3
docs: make it clear Web RTC Direct is experimental
hacdias Nov 3, 2023
f17a064
docs/config: remove extra commas in PublicGateways example entries
jonesman Nov 5, 2023
63e89d4
docs: fix accelerated-dht-client
lidel Nov 6, 2023
068f176
chore: update go-libp2p
Jorropo Nov 7, 2023
9371d18
fixes to routing put command (#10205)
aschmahmann Nov 8, 2023
846310e
fix: allow event emitting to happen in parallel with getting the quer…
aschmahmann Nov 8, 2023
03cbe5e
Merge branch 'master' into merge-release-v0.24.0
hacdias Nov 8, 2023
5b5e8c5
Merge pull request #10209 from ipfs/merge-release-v0.24.0
hacdias Nov 8, 2023
9655d92
chore: create next changelog
hacdias Nov 8, 2023
7834a26
docs(changelog): clarify webrtc in v0.24
lidel Nov 9, 2023
670ce70
fix: regression in 'ipfs dns'
lidel Nov 8, 2023
0770702
docs: clarify ipfs id agent version
lidel Nov 15, 2023
01cc5ea
feat(rpc): Opt-in HTTP RPC API Authorization (#10218)
hacdias Nov 17, 2023
48865a9
docs: move kubo-specific docs (#10226)
hacdias Nov 20, 2023
2b347a9
graphsync: remove support for the server
Jorropo Nov 17, 2023
6a51849
libp2p: remove mplex
Jorropo Aug 22, 2023
3ae04c5
docs: clarify WebRTCDirect cannot reuse the same port as QUIC
sukunrt Nov 22, 2023
fcbb319
Merge commits from ipfs/boxo/main
hacdias Nov 29, 2023
58c2939
chore: clean migration
hacdias Nov 29, 2023
2864f63
Merge pull request #10237 from ipfs/migrate-coreiface
hacdias Nov 29, 2023
d882642
feat: webui v4.2.0 (#10241)
SgtPooki Dec 3, 2023
7b05b5d
docs(cli): fix spelling
lidel Dec 1, 2023
8ab2de5
feat: ipfs key sign|verify (#10235)
hacdias Dec 4, 2023
d6d79ce
chore: bump to boxo 0.16.0
hacdias Dec 6, 2023
48e379a
chore: update dependencies
Jorropo Dec 6, 2023
0c6f08c
chore: update version
hacdias Dec 6, 2023
f93a386
fix: allow daemon to start correctly if the API is null (#10062)
Jorropo Dec 11, 2023
b46b5ea
chore: bump to go-libp2p 0.32.2
hacdias Dec 13, 2023
0ab1f1c
chore: update version
Jorropo Dec 14, 2023
87069b5
chore: update changelog for v0.25
Jorropo Dec 14, 2023
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Kubo Changelogs

- [v0.25](docs/changelogs/v0.25.md)
- [v0.24](docs/changelogs/v0.24.md)
- [v0.23](docs/changelogs/v0.23.md)
- [v0.22](docs/changelogs/v0.22.md)
Expand Down
2 changes: 1 addition & 1 deletion assets/assets.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"github.com/ipfs/kubo/core"
"github.com/ipfs/kubo/core/coreapi"

options "github.com/ipfs/boxo/coreiface/options"
"github.com/ipfs/boxo/files"
"github.com/ipfs/boxo/path"
cid "github.com/ipfs/go-cid"
options "github.com/ipfs/kubo/core/coreiface/options"
)

//go:embed init-doc
Expand Down
4 changes: 2 additions & 2 deletions client/rpc/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import (
"time"

"github.com/blang/semver/v4"
iface "github.com/ipfs/boxo/coreiface"
caopts "github.com/ipfs/boxo/coreiface/options"
"github.com/ipfs/boxo/ipld/merkledag"
"github.com/ipfs/go-cid"
legacy "github.com/ipfs/go-ipld-legacy"
ipfs "github.com/ipfs/kubo"
iface "github.com/ipfs/kubo/core/coreiface"
caopts "github.com/ipfs/kubo/core/coreiface/options"
dagpb "github.com/ipld/go-codec-dagpb"
_ "github.com/ipld/go-ipld-prime/codec/dagcbor"
"github.com/ipld/go-ipld-prime/node/basicnode"
Expand Down
4 changes: 2 additions & 2 deletions client/rpc/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"testing"
"time"

iface "github.com/ipfs/boxo/coreiface"
"github.com/ipfs/boxo/coreiface/tests"
"github.com/ipfs/boxo/path"
iface "github.com/ipfs/kubo/core/coreiface"
"github.com/ipfs/kubo/core/coreiface/tests"
"github.com/ipfs/kubo/test/cli/harness"
ma "github.com/multiformats/go-multiaddr"
"go.uber.org/multierr"
Expand Down
29 changes: 29 additions & 0 deletions client/rpc/auth/auth.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package auth

import "net/http"

var _ http.RoundTripper = &AuthorizedRoundTripper{}

type AuthorizedRoundTripper struct {
authorization string
roundTripper http.RoundTripper
}

// NewAuthorizedRoundTripper creates a new [http.RoundTripper] that will set the
// Authorization HTTP header with the value of [authorization]. The given [roundTripper] is
// the base [http.RoundTripper]. If it is nil, [http.DefaultTransport] is used.
func NewAuthorizedRoundTripper(authorization string, roundTripper http.RoundTripper) http.RoundTripper {
if roundTripper == nil {
roundTripper = http.DefaultTransport
}

return &AuthorizedRoundTripper{
authorization: authorization,
roundTripper: roundTripper,
}
}

func (tp *AuthorizedRoundTripper) RoundTrip(r *http.Request) (*http.Response, error) {
r.Header.Set("Authorization", tp.authorization)
return tp.roundTripper.RoundTrip(r)
}
4 changes: 2 additions & 2 deletions client/rpc/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"fmt"
"io"

iface "github.com/ipfs/boxo/coreiface"
caopts "github.com/ipfs/boxo/coreiface/options"
"github.com/ipfs/boxo/path"
"github.com/ipfs/go-cid"
iface "github.com/ipfs/kubo/core/coreiface"
caopts "github.com/ipfs/kubo/core/coreiface/options"
mc "github.com/multiformats/go-multicodec"
mh "github.com/multiformats/go-multihash"
)
Expand Down
2 changes: 1 addition & 1 deletion client/rpc/dag.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"fmt"
"io"

"github.com/ipfs/boxo/coreiface/options"
"github.com/ipfs/boxo/path"
blocks "github.com/ipfs/go-block-format"
"github.com/ipfs/go-cid"
format "github.com/ipfs/go-ipld-format"
"github.com/ipfs/kubo/core/coreiface/options"
multicodec "github.com/multiformats/go-multicodec"
)

Expand Down
2 changes: 1 addition & 1 deletion client/rpc/dht.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"encoding/json"

caopts "github.com/ipfs/boxo/coreiface/options"
"github.com/ipfs/boxo/path"
caopts "github.com/ipfs/kubo/core/coreiface/options"
"github.com/libp2p/go-libp2p/core/peer"
"github.com/libp2p/go-libp2p/core/routing"
)
Expand Down
56 changes: 54 additions & 2 deletions client/rpc/key.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
package rpc

import (
"bytes"
"context"
"errors"

iface "github.com/ipfs/boxo/coreiface"
caopts "github.com/ipfs/boxo/coreiface/options"
"github.com/ipfs/boxo/ipns"
"github.com/ipfs/boxo/path"
iface "github.com/ipfs/kubo/core/coreiface"
caopts "github.com/ipfs/kubo/core/coreiface/options"
"github.com/libp2p/go-libp2p/core/peer"
"github.com/multiformats/go-multibase"
)

type KeyAPI HttpApi
Expand Down Expand Up @@ -141,3 +143,53 @@ func (api *KeyAPI) Remove(ctx context.Context, name string) (iface.Key, error) {
func (api *KeyAPI) core() *HttpApi {
return (*HttpApi)(api)
}

func (api *KeyAPI) Sign(ctx context.Context, name string, data []byte) (iface.Key, []byte, error) {
var out struct {
Key keyOutput
Signature string
}

err := api.core().Request("key/sign").
Option("key", name).
FileBody(bytes.NewReader(data)).
Exec(ctx, &out)
if err != nil {
return nil, nil, err
}

key, err := newKey(out.Key.Name, out.Key.Id)
if err != nil {
return nil, nil, err
}

_, signature, err := multibase.Decode(out.Signature)
if err != nil {
return nil, nil, err
}

return key, signature, nil
}

func (api *KeyAPI) Verify(ctx context.Context, keyOrName string, signature, data []byte) (iface.Key, bool, error) {
var out struct {
Key keyOutput
SignatureValid bool
}

err := api.core().Request("key/verify").
Option("key", keyOrName).
Option("signature", toMultibase(signature)).
FileBody(bytes.NewReader(data)).
Exec(ctx, &out)
if err != nil {
return nil, false, err
}

key, err := newKey(out.Key.Name, out.Key.Id)
if err != nil {
return nil, false, err
}

return key, out.SignatureValid, nil
}
4 changes: 2 additions & 2 deletions client/rpc/name.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"fmt"
"io"

iface "github.com/ipfs/boxo/coreiface"
caopts "github.com/ipfs/boxo/coreiface/options"
"github.com/ipfs/boxo/ipns"
"github.com/ipfs/boxo/namesys"
"github.com/ipfs/boxo/path"
iface "github.com/ipfs/kubo/core/coreiface"
caopts "github.com/ipfs/kubo/core/coreiface/options"
)

type NameAPI HttpApi
Expand Down
4 changes: 2 additions & 2 deletions client/rpc/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import (
"fmt"
"io"

iface "github.com/ipfs/boxo/coreiface"
caopts "github.com/ipfs/boxo/coreiface/options"
"github.com/ipfs/boxo/ipld/merkledag"
ft "github.com/ipfs/boxo/ipld/unixfs"
"github.com/ipfs/boxo/path"
"github.com/ipfs/go-cid"
ipld "github.com/ipfs/go-ipld-format"
iface "github.com/ipfs/kubo/core/coreiface"
caopts "github.com/ipfs/kubo/core/coreiface/options"
)

type ObjectAPI HttpApi
Expand Down
4 changes: 2 additions & 2 deletions client/rpc/pin.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"io"
"strings"

iface "github.com/ipfs/boxo/coreiface"
caopts "github.com/ipfs/boxo/coreiface/options"
"github.com/ipfs/boxo/path"
"github.com/ipfs/go-cid"
iface "github.com/ipfs/kubo/core/coreiface"
caopts "github.com/ipfs/kubo/core/coreiface/options"
"github.com/pkg/errors"
)

Expand Down
4 changes: 2 additions & 2 deletions client/rpc/pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"encoding/json"
"io"

iface "github.com/ipfs/boxo/coreiface"
caopts "github.com/ipfs/boxo/coreiface/options"
iface "github.com/ipfs/kubo/core/coreiface"
caopts "github.com/ipfs/kubo/core/coreiface/options"
"github.com/libp2p/go-libp2p/core/peer"
mbase "github.com/multiformats/go-multibase"
)
Expand Down
2 changes: 1 addition & 1 deletion client/rpc/routing.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"encoding/base64"
"encoding/json"

"github.com/ipfs/boxo/coreiface/options"
"github.com/ipfs/kubo/core/coreiface/options"
"github.com/libp2p/go-libp2p/core/routing"
)

Expand Down
2 changes: 1 addition & 1 deletion client/rpc/swarm.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"time"

iface "github.com/ipfs/boxo/coreiface"
iface "github.com/ipfs/kubo/core/coreiface"
"github.com/libp2p/go-libp2p/core/network"
"github.com/libp2p/go-libp2p/core/peer"
"github.com/libp2p/go-libp2p/core/protocol"
Expand Down
4 changes: 2 additions & 2 deletions client/rpc/unixfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import (
"fmt"
"io"

iface "github.com/ipfs/boxo/coreiface"
caopts "github.com/ipfs/boxo/coreiface/options"
"github.com/ipfs/boxo/files"
unixfs "github.com/ipfs/boxo/ipld/unixfs"
unixfs_pb "github.com/ipfs/boxo/ipld/unixfs/pb"
"github.com/ipfs/boxo/path"
"github.com/ipfs/go-cid"
iface "github.com/ipfs/kubo/core/coreiface"
caopts "github.com/ipfs/kubo/core/coreiface/options"
mh "github.com/multiformats/go-multihash"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/ipfs/add_migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import (
"os"
"path/filepath"

coreiface "github.com/ipfs/boxo/coreiface"
"github.com/ipfs/boxo/coreiface/options"
"github.com/ipfs/boxo/files"
"github.com/ipfs/boxo/path"
"github.com/ipfs/kubo/core"
"github.com/ipfs/kubo/core/coreapi"
coreiface "github.com/ipfs/kubo/core/coreiface"
"github.com/ipfs/kubo/core/coreiface/options"
"github.com/ipfs/kubo/repo/fsrepo/migrations"
"github.com/ipfs/kubo/repo/fsrepo/migrations/ipfsfetcher"
"github.com/libp2p/go-libp2p/core/peer"
Expand Down
15 changes: 11 additions & 4 deletions cmd/ipfs/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (

multierror "github.com/hashicorp/go-multierror"

options "github.com/ipfs/boxo/coreiface/options"
cmds "github.com/ipfs/go-ipfs-cmds"
mprome "github.com/ipfs/go-metrics-prometheus"
version "github.com/ipfs/kubo"
Expand All @@ -27,6 +26,7 @@ import (
commands "github.com/ipfs/kubo/core/commands"
"github.com/ipfs/kubo/core/coreapi"
corehttp "github.com/ipfs/kubo/core/corehttp"
options "github.com/ipfs/kubo/core/coreiface/options"
corerepo "github.com/ipfs/kubo/core/corerepo"
libp2p "github.com/ipfs/kubo/core/node/libp2p"
nodeMount "github.com/ipfs/kubo/fuse/node"
Expand Down Expand Up @@ -175,7 +175,7 @@ Headers.
cmds.BoolOption(enablePubSubKwd, "DEPRECATED"),
cmds.BoolOption(enableIPNSPubSubKwd, "Enable IPNS over pubsub. Implicitly enables pubsub, overrides Ipns.UsePubsub config."),
cmds.BoolOption(enableMultiplexKwd, "DEPRECATED"),
cmds.StringOption(agentVersionSuffix, "Optional suffix to the AgentVersion presented by `ipfs id` and also advertised through BitSwap."),
cmds.StringOption(agentVersionSuffix, "Optional suffix to the AgentVersion presented by `ipfs id` and exposed via libp2p identify protocol."),

// TODO: add way to override addresses. tricky part: updating the config if also --init.
// cmds.StringOption(apiAddrKwd, "Address for the daemon rpc API (overrides config)"),
Expand Down Expand Up @@ -676,6 +676,10 @@ func serveHTTPApi(req *cmds.Request, cctx *oldcmds.Context) (<-chan error, error
listeners = append(listeners, apiLis)
}

if len(cfg.API.Authorizations) > 0 && len(listeners) > 0 {
fmt.Printf("RPC API access is limited by the rules defined in API.Authorizations\n")
}

for _, listener := range listeners {
// we might have listened to /tcp/0 - let's see what we are listing on
fmt.Printf("RPC API server listening on %s\n", listener.Multiaddr())
Expand Down Expand Up @@ -723,8 +727,11 @@ func serveHTTPApi(req *cmds.Request, cctx *oldcmds.Context) (<-chan error, error
return nil, fmt.Errorf("serveHTTPApi: ConstructNode() failed: %s", err)
}

if err := node.Repo.SetAPIAddr(rewriteMaddrToUseLocalhostIfItsAny(listeners[0].Multiaddr())); err != nil {
return nil, fmt.Errorf("serveHTTPApi: SetAPIAddr() failed: %w", err)
if len(listeners) > 0 {
// Only add an api file if the API is running.
if err := node.Repo.SetAPIAddr(rewriteMaddrToUseLocalhostIfItsAny(listeners[0].Multiaddr())); err != nil {
return nil, fmt.Errorf("serveHTTPApi: SetAPIAddr() failed: %w", err)
}
}

errc := make(chan error)
Expand Down
2 changes: 1 addition & 1 deletion cmd/ipfs/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import (
"github.com/ipfs/kubo/core/commands"
fsrepo "github.com/ipfs/kubo/repo/fsrepo"

options "github.com/ipfs/boxo/coreiface/options"
"github.com/ipfs/boxo/files"
cmds "github.com/ipfs/go-ipfs-cmds"
config "github.com/ipfs/kubo/config"
options "github.com/ipfs/kubo/core/coreiface/options"
)

const (
Expand Down
8 changes: 8 additions & 0 deletions cmd/ipfs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ import (
cmdhttp "github.com/ipfs/go-ipfs-cmds/http"
logging "github.com/ipfs/go-log"
ipfs "github.com/ipfs/kubo"
"github.com/ipfs/kubo/client/rpc/auth"
"github.com/ipfs/kubo/cmd/ipfs/util"
oldcmds "github.com/ipfs/kubo/commands"
config "github.com/ipfs/kubo/config"
"github.com/ipfs/kubo/core"
corecmds "github.com/ipfs/kubo/core/commands"
"github.com/ipfs/kubo/core/corehttp"
Expand Down Expand Up @@ -325,6 +327,12 @@ func makeExecutor(req *cmds.Request, env interface{}) (cmds.Executor, error) {
return nil, fmt.Errorf("unsupported API address: %s", apiAddr)
}

apiAuth, specified := req.Options[corecmds.ApiAuthOption].(string)
if specified {
authorization := config.ConvertAuthSecret(apiAuth)
tpt = auth.NewAuthorizedRoundTripper(authorization, tpt)
}

httpClient := &http.Client{
Transport: otelhttp.NewTransport(tpt),
}
Expand Down
4 changes: 2 additions & 2 deletions commands/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (
coreapi "github.com/ipfs/kubo/core/coreapi"
loader "github.com/ipfs/kubo/plugin/loader"

coreiface "github.com/ipfs/boxo/coreiface"
options "github.com/ipfs/boxo/coreiface/options"
cmds "github.com/ipfs/go-ipfs-cmds"
logging "github.com/ipfs/go-log"
config "github.com/ipfs/kubo/config"
coreiface "github.com/ipfs/kubo/core/coreiface"
options "github.com/ipfs/kubo/core/coreiface/options"
)

var log = logging.Logger("command")
Expand Down
Loading
Loading