1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 11:31:54 +08:00

2253 Commits

Author SHA1 Message Date
8022e13a6b config: introduce Import section (#10421)
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2024-05-14 14:17:04 +00:00
IGP
ae05085644 feat: enables searching pins by name (#10412)
Co-authored-by: Henrique Dias <mail@hacdias.com>
2024-05-14 11:05:35 +00:00
9047fed8d5 core/commands!: remove deprecated object APIs (#10375) 2024-03-22 09:32:30 +01:00
0bdfe94272 docs: remove repetitive words (#10370)
Signed-off-by: shuangcui <fliter@qq.com>
2024-03-19 12:10:34 +01:00
e22f47ae4b core/corehttp!: remove /api/v0 from gateway port 2024-03-05 08:21:13 +00:00
eb7f663514 commands/add: return an error when using --only-hash and --to-files
In that situation, the data is not written to permanent storage, so a reference in MFS would be to p2p blocks at best.

The /add command in that situation is also likely to hang as it reads immediately the root node without being able to get it (it falls back to bitswap).
2024-02-08 17:49:43 +01:00
1ef8f83a41 core/commands: remove 'ipfs dht' commands, except 'query' (#10328) 2024-02-07 09:56:30 +00:00
c0d7da22a2 docs(cli): name inspect --verify (#10308)
Co-authored-by: Daniel Norman <1992255+2color@users.noreply.github.com>
2024-01-17 14:59:02 +00:00
2738b49c1a profile: add trace 2024-01-12 14:55:55 +01:00
8a421868f0 feat(pinning): allow for overwriting pin name 2024-01-09 10:25:35 +01:00
a8a6bbe929 feat: support optional pin names (#10261) 2024-01-04 14:25:06 +01:00
5c31db3a3d commands: remove several deprecated commands
Removes the following commands: ipfs tar, ipfs urlstore, ipfs repo fsck, ipfs file ls, ipfs dns.
2023-12-12 18:21:52 +01:00
8ab2de5ff0 feat: ipfs key sign|verify (#10235) 2023-12-04 09:51:26 +01:00
7b05b5dd33 docs(cli): fix spelling
this fixes lint errors in RPC docs that were raised by vole in
https://github.com/ipfs/ipfs-docs/pull/1772
so we don't get them in kubo 0.25
2023-12-04 09:40:21 +01:00
58c29399cf chore: clean migration 2023-11-29 12:29:59 +01:00
01cc5eab57 feat(rpc): Opt-in HTTP RPC API Authorization (#10218)
Context: https://github.com/ipfs/kubo/issues/10187
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2023-11-17 01:29:29 +01:00
670ce7043e fix: regression in 'ipfs dns'
this command used to work with domain without `/ipns/` prefix.

we've switched it to the same backend as `resolve` command,
which requires the prefix, so we add it if it is missing
2023-11-09 10:23:25 +01:00
846310e5ac fix: allow event emitting to happen in parallel with getting the query channel 2023-11-08 10:03:55 +01:00
9371d18b53 fixes to routing put command (#10205)
* fix(commands): routing put command returns the IPNS ID rather than the host's ID

* fix(commands): routing put command errors with the allow-offline hint if the error is an offline error

* fix: test expects correct error message

---------

Co-authored-by: Henrique Dias <hacdias@gmail.com>
2023-11-08 01:07:10 -05:00
a0f34b16dd feat: built-in content blocking based on IPIP-383 (#10161)
Fixes #8492

This introduces "nopfs" as a preloaded plugin into Kubo
with support for denylists from https://github.com/ipfs/specs/pull/383

It automatically makes Kubo watch *.deny files found in:

- /etc/ipfs/denylists
- $XDG_CONFIG_HOME/ipfs/denylists
- $IPFS_PATH/denylists

* test: Gateway.NoFetch and GatewayOverLibp2p

adds missing tests for "no fetch" gateways one can expose,
in both cases the offline mode is done by passing custom
blockservice/exchange into path resolver, which means
global path resolver that has nopfs intercept is not used,
and the content blocking does not happen on these gateways.

* fix: use offline path resolvers where appropriate

this fixes the problem described in
https://github.com/ipfs/kubo/pull/10161#issuecomment-1782175955
by adding explicit offline path resolvers that are backed
by offline exchange, and using them in NoFetch gateways
instead of the default online ones

---------

Co-authored-by: Henrique Dias <hacdias@gmail.com>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2023-10-28 05:34:14 +02:00
4695fd9fed refactor: namesys cleanup, gateway /ipns/ ttl (#10115) 2023-10-18 10:23:50 +02:00
a5668d22ba chore: update boxo for structification of ImmutablePath 2023-10-09 09:44:39 +02:00
a7c6518497 feat: path consolidation (#10063) 2023-10-06 16:14:44 +02:00
de173df9e3 fix(commands/cid): error on CIDv0 w/ custom -b, upgrade to CIDv1 w/ custom -b, empty -v
Co-authored-by: Henrique Dias <hacdias@gmail.com>
2023-09-27 10:36:49 +02:00
cc3c224c62 docs: fix typos 2023-09-22 11:08:26 +00:00
9fdb085605 refactor: stop using go-libp2p deprecated peer.ID.Pretty
Signed-off-by: Icarus9913 <icaruswu66@qq.com>
2023-09-18 15:58:15 +02:00
Kay
2c66ea6995 refactor: if statement (#10105) 2023-09-05 15:35:51 +02:00
ced348366c feat: add zsh completions (#10040)
Co-authored-by: Henrique Dias <hacdias@gmail.com>
2023-08-17 16:43:27 +02:00
cc79eeb91c style: remove commented imports [skip changelog] 2023-08-17 14:43:08 +02:00
Kay
f12b372af9 style: gofumpt and godot [skip changelog] (#10081) 2023-08-17 14:02:08 +02:00
b4f415088f chore: bump boxo for verifcid breaking changes
This is a Q&D fix to get kubo building again, this is completely equivalent to what we used to have.
I'll submit a patch that DI the verifcid.Allowlist interface with fx later but this is needed to unblock something else.
2023-08-17 13:41:30 +02:00
6be6630e4e libp2p: stop reporting ProtocolVersion 2023-07-26 14:48:19 +02:00
c08313f032 chore: update go-libp2p to v0.28.1
Co-authored-by: Jorropo <jorropo.pgm@gmail.com>
2023-07-26 14:48:19 +02:00
1fe17a4165 docs(commands): explain that swarm connect can reuse existing connections or known addresses (#10015) 2023-07-20 08:25:56 -07:00
394d72db4c refactor: replace boxo/ipld/car by ipld/go-car 2023-06-29 16:10:49 +02:00
5156f21162 feat(ipns): records with V2-only signatures (#9932) 2023-06-20 14:24:31 +02:00
82fd9ec329 cmds/dag/import: pin roots by default (#9966)
This is a partial revert of b685355ca8ceaaf55619ee3b8cffa612a4106569.
Closes #9765 with compromise agreed in https://github.com/ipfs/kubo/issues/9765#issuecomment-1593117410
2023-06-15 16:41:59 +02:00
b685355ca8 feat!: dag import - don't pin roots by default (#9926)
* feat!: dag import - don't pin roots by default

Fixes: https://github.com/ipfs/kubo/issues/9765

* test(ipip-402): dag import

this adds basic regression test that guards behavior
around partial cars with or without pinning

* docs(ipip-402): ipip and dag import changelog

---------

Co-authored-by: Marcin Rataj <lidel@lidel.org>
2023-06-14 20:45:34 +00:00
f5f6b664db fix(cmd): useful errors in dag import (#9945)
* fix: useful errors during dag import

Most of the time the error is either a bitflip in one of blocks,
or a truncation of car stream.

This allows user to understand what happened
and at which place in the car stream, making debug more humane.

* fix: correct message when root pin failed

this also correctly exits CLI commands with code 1 (was silent
false-positive 0 before)
2023-06-14 20:55:31 +02:00
e2128107f6 Revert "feat: adds secp256k1 keypair type to key gen command, adds test cases"
This reverts commit 67e1a173fcde1b7c4b09464184aea8ef86bedab2.
2023-06-12 15:44:12 +02:00
e7294cbdff feat: warn users who are falling behind reprovides
Fixes: #9704
Fixes: #9702
Fixes: #9703
Fixes: #9419
2023-06-08 10:05:30 +02:00
4ebde42ec8 feat: switch dag import command to use default go-ipld-legacy block decoder 2023-06-08 09:38:31 +02:00
d86e227a5d cmds/dag.stat: remove printf debug
Oops lol.
2023-06-06 16:22:08 +02:00
726eabead4 feat: add deduplication ratio to 'ipfs dag stat' (#9787) 2023-06-06 15:17:45 +02:00
8114573933 core/commands/pin: fix incorrect pointer type in encoder 2023-06-05 11:49:13 +02:00
a2c66abc52 pinning: fix pin listings 2023-06-02 18:55:36 +02:00
9b63ab6da6 client/rpc: bring up to speed with streaming pins 2023-06-02 16:55:51 +02:00
6eef0b4eef fix: 'ipfs routing findpeer' explicitly fails when searching for self (#9903) 2023-06-01 12:19:29 +02:00
67e1a173fc feat: adds secp256k1 keypair type to key gen command, adds test cases 2023-05-31 19:05:05 +02:00
61f8c7301a refactor: use reusable IPNS ValidateWithPeerID (#9867)
Co-authored-by: Henrique Dias <hacdias@gmail.com>
2023-05-10 11:49:31 +00:00