Marten Seemann
a00f5cae23
chore: update go-libp2p to v0.25.1
2023-02-14 22:19:46 +01:00
Henrique Dias
fb7f7b15b3
fix: restore wire format for /api/v0/routing/get|put ( #9639 )
...
Closes #9638
2023-02-10 02:41:45 +01:00
Henrique Dias
b58356939e
refactor(gw): move Host (DNSLink and subdomain) handling to go-libipfs ( #9624 )
...
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2023-02-07 03:44:24 +01:00
Henrique Dias
14649aa8ba
refactor: new go-libipfs/gateway API, deprecate Gateway.Writable ( #9616 )
2023-02-02 02:50:46 +01:00
Henrique Dias
8d3b3154c9
refactor: use gateway from go-libipfs ( #9588 )
2023-01-31 11:02:31 +01:00
Antonio Navarro Perez
633c497f63
Adjust inbound connection limits depending on memory.
2023-01-30 11:01:03 +01:00
Dan McQuillan
7cb8082bbe
feat: ipfs-webui 2.22.0
2023-01-28 08:32:50 +01:00
Jorropo
b3c98bb085
chore: bump go-libipfs remove go-bitswap
2023-01-27 23:07:01 +01:00
Henrique Dias
a3c70a11e6
feat(gateway): IPNS record response format (IPIP-351) ( #9399 )
...
* feat(gateway): IPNS record response format
* docs(rpc): mark as experimental: routing provide, get, put
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2023-01-27 04:46:50 +01:00
Henrique Dias
94e7f79805
fix(ipns): honour --ttl flag in 'ipfs name publish' ( #9471 )
...
* fix: honour --ttl flag in 'ipfs name publish'
* docs(cli): ipfs name inspect --help
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2023-01-27 02:33:13 +01:00
Mohsin Zaidi
9652f24f6c
feat: Pubsub.SeenMessagesStrategy ( #9543 )
...
* feat: expire messages from the cache based on last seen time
* docs: Pubsub.SeenMessagesStrategy
Ref. https://github.com/libp2p/go-libp2p-pubsub/pull/513
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2023-01-27 00:24:35 +01:00
Jorropo
f20c980f2d
chore: bump go-libipfs to replace go-block-format
...
Includes changes from:
- https://github.com/ipfs/go-block-format/pull/37
- https://github.com/ipfs/go-libipfs/pull/58
2023-01-26 16:55:48 +01:00
Steve Loeppky
9327ee64ce
fix: clarity: no user supplied rcmgr limits of 0 ( #9563 )
...
Co-authored-by: Antonio Navarro Perez <antnavper@gmail.com>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2023-01-22 20:04:18 +01:00
Henrique Dias
c706c638fc
fix(gateway): undesired conversions to dag-json and friends ( #9566 )
...
* fix(gateway): do not convert unixfs/raw into dag-* unless explicit
* fix(gateway): keep only dag-json|dag-cbor handling
* fix: allow requesting dag-json as application/json
- adds bunch of additional tests including JSON file on UnixFS
- fix: dag-json codec (0x0129) can be returned as plain json
- fix: json codec (0x0200) cna be retrurned as plain json
* fix: using ?format|Accept with CID w/ codec works
* docs(changelog): cbor and json on gateway
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2023-01-21 04:21:18 +01:00
Jorropo
8328bab28d
fix: ensure connmgr is smaller then autoscalled ressource limits
...
Fixes #9545
2023-01-20 19:25:38 +01:00
Jorropo
b84cd11566
fix: typo in ensureConnMgrMakeSenseVsResourcesMgr
2023-01-20 15:29:54 +01:00
Jorropo
73ebad1892
fix: refuse to start if connmgr is smaller than ressource limits and not using none connmgr
...
Fixes : #9548
2023-01-19 01:40:48 +01:00
Henrique Dias
255e64e49e
chore: migrate from go-ipfs-files to go-libipfs/files ( #9535 )
2023-01-13 14:27:03 +01:00
Antonio Navarro Perez
3bc9b675a0
fix: stats dht command when Routing.Type=auto ( #9538 )
...
Fixes default auto mode, but Routing.Type=custom needs more work.
Continued in https://github.com/ipfs/kubo/issues/9482
2023-01-13 00:38:38 +01:00
Marcin Rataj
f6825ab662
fix(gateway): JSON when Accept is a list
...
Block/CAR responses always had single explicit type, and we did not bother
with implementing/testing lists.
With the introduction of JSON people may start passing a list.
This is the most basic fix which will return on the first matching
type (in order). This does not implements weights (can be added in
future, if needed).
Closes #9520
2023-01-11 22:18:52 +01:00
Antonio Navarro Perez
8cdc86d8c4
fix: disable provide over HTTP with Routing.Type=auto ( #9511 )
...
Closes https://github.com/ipfs/kubo/issues/9504
2023-01-04 13:56:15 +01:00
Jorropo
ffb635d797
Merge pull request #9492 from ipfs/default-webtransport
...
feat: turn on WebTransport by default
2022-12-12 22:57:09 +01:00
Jorropo
e927dc8e59
fix: correct libp2p transports TODO comments
2022-12-12 22:26:48 +01:00
Jorropo
16d189b8b8
feat: turn on WebTransport by default
...
Fixes #9292
2022-12-12 21:56:55 +01:00
Henrique Dias
7bdb341132
feat: fast directory listings with DAG Size column ( #9481 )
...
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-12-12 21:45:13 +01:00
Jorropo
a3e09af203
fix: silence staticcheck warning for fx.Extract usage
...
See https://github.com/ipfs/kubo/pull/9423#issuecomment-1341038770
2022-12-12 03:47:17 +01:00
Jorropo
f08b439d48
update go-libp2p to v0.24.0
2022-12-12 03:47:17 +01:00
Marcin Rataj
15093a0011
fix: support /quic-v1 in webui v0.21
...
https://github.com/ipfs/ipfs-webui/releases/tag/v2.21.0
2022-12-10 00:45:50 +01:00
Marcin Rataj
70e604ff99
feat: Routing.Type=auto (DHT+IPNI) ( #9475 )
...
This changes the default routing to use both DHT and IPNI
at the same time. Closes #9454 Closes #9422
Full context:
https://github.com/ipfs/kubo/issues/9454
https://github.com/ipfs/kubo/issues/9422
Co-authored-by: Steve Loeppky <biglep@protocol.ai>
Co-authored-by: Gus Eggert <gus@gus.dev>
Co-authored-by: Steve Loeppky <biglep@protocol.ai>
2022-12-08 23:20:24 +01:00
Mikel Cortes
72bad5c060
feat: increase default Reprovider.Interval ( #9326 )
...
* increase republish interval based on RFM17
* refactor(config): switch to implicit default
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-12-08 21:28:40 +01:00
Steve Loeppky
01e0bfa359
docs: libp2p resource management ( #9468 )
...
Co-authored-by: Antonio Navarro Perez <antnavper@gmail.com>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-12-08 16:18:04 +01:00
Antonio Navarro Perez
9662c8e3f9
Fix sharness test
...
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
2022-12-07 18:30:21 +01:00
Antonio Navarro Perez
be9539db03
Added a message when RM is disabled.
...
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
2022-12-07 18:30:21 +01:00
Antonio Navarro Perez
a54cf2a95a
Requested changes.
...
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
2022-12-07 18:30:21 +01:00
Antonio Navarro Perez
67886f7bd3
Fix: RM: Improve init RM message and fix final memory value.
...
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
2022-12-07 18:30:21 +01:00
Antonio Navarro Perez
d16e63a23e
Fix: Resource Manager: Filter stats correctly by %
...
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
2022-12-07 18:05:15 +01:00
Antonio Navarro Perez
7a8639ee33
Apply suggestions from code review
...
Co-authored-by: Steve Loeppky <biglep@protocol.ai>
2022-12-07 16:47:37 +01:00
Antonio Navarro Perez
22a03bda6d
Increase MaxMemory param to use half of total memory.
...
Previously it was using 1/8 of the total memory.
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
2022-12-07 16:47:37 +01:00
Antonio Navarro Perez
df828c0a47
feature: delegated-routing: Add HTTP delegated routing.
...
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
2022-12-07 16:34:59 +01:00
Antonio Navarro Perez
4587d1c1cb
Fix: Change RM log output to WARN level
...
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
2022-12-07 16:30:43 +01:00
Antonio Navarro Perez
96bbd53033
Fix: RM: Set no-limit value to 1e9 (1000000000).
...
Added a comment next to the value to make possible to people to grep
over the code and find where that value is set.
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
2022-12-07 15:56:41 +01:00
Marcin Rataj
5047c02d9a
fix: apply agent-version-suffix to libp2p identify
...
Closes #9456
2022-12-06 12:52:54 +01:00
Gus Eggert
b9a4d4592d
chore: migrate ipfs/tar-utils to libipfs
2022-12-05 21:28:30 -05:00
Henrique Dias
fdd19656c4
feat(gateway): JSON and CBOR response formats (IPIP-328) ( #9335 )
...
https://github.com/ipfs/kubo/pull/9335
https://github.com/ipfs/specs/pull/328
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-12-05 20:22:26 +01:00
Jorropo
4d4841f41c
Merge pull request #9318 from ipfs/rvagg/go-merkledag-0.8
2022-12-05 15:15:12 +01:00
Jorropo
807b98537d
Revert "fix: ensure hasher is registered when using a hashing function"
...
This has been superseeded by 7d0ea08289 .
This reverts commit 773c246232 .
2022-12-05 15:03:16 +01:00
Marcin Rataj
09765951ea
fix(rcmgr): improve error phrasing
...
limits were not exceeded, manager protects us from that
https://github.com/ipfs/kubo/issues/9432#issuecomment-1334160936
2022-12-02 11:13:42 +01:00
Rod Vagg
cb1ba70a9b
fix: handle new ProtoNode errors
2022-12-02 10:16:10 +11:00
Mohsin Zaidi
51f60ea05a
feat(config): Pubsub.SeenMessagesTTL ( #9372 )
...
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-11-29 00:05:44 +01:00
Steve Loeppky
83034d840c
Doc improvements and changelog for resource manager ( #9413 )
...
Co-authored-by: Antonio Navarro Perez <antnavper@gmail.com>
2022-11-16 13:09:12 +01:00