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

13441 Commits

Author SHA1 Message Date
82467bc936 refactor: rename to kubo 2022-07-06 18:40:37 +02:00
289e465f05 fix: correct cache-control in car responses
Context: https://github.com/ipfs/specs/pull/295
2022-07-06 18:34:12 +02:00
90b48db172 Merge pull request #9094 from ipfs/Jorropo/temp-1
chore: merge v0.13.1 back into master (correctly this time)

#9093 but not squashed
2022-07-06 17:42:47 +02:00
df34bad3c7 docs: v0.13.1 (#9093)
Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
2022-07-06 17:32:59 +02:00
db88daf584 chore: resolve go.mod conflicts with master 2022-07-06 17:20:25 +02:00
57d54624ea chore: reset version number back to v0.14.0-dev 2022-07-06 17:18:13 +02:00
8ffc7a8a6c Merge pull request #9092 from ipfs/release-v0.13.1
Release v0.13.1
v0.13.1
2022-07-06 09:57:25 -04:00
1b60d07d6c chore: bump version number to v0.13.1 2022-07-06 09:45:21 -04:00
af27e43632 chore: Add release notes for 0.13.1 2022-07-06 09:45:21 -04:00
bc4f854ade chore: update go-car
(cherry picked from commit cbf5fdae5517b06491deba2d3cc31b7ff41451fe)
2022-07-06 09:45:21 -04:00
1efa29d956 Merge pull request #9089 from Jorropo/chore/update-car
chore: update go-car
2022-07-06 09:41:53 -04:00
cbf5fdae55 chore: update go-car 2022-07-06 15:30:29 +02:00
123f1f61e0 Merge pull request #9038 from ipfs/update-libp2p-v020
update go-libp2p to v0.20.3
2022-06-30 15:21:23 -04:00
d5a7552014 Go mod tidy 2022-06-28 21:21:12 -07:00
9dcc4e224e Update go-libp2p and go-multistream 2022-06-28 14:46:33 -07:00
b6ded334ec docs: add SECURITY.md (#9062)
* docs: add SECURITY.md

This moves existing security policy from README to SECURITY.md
which has a special meaning on Github:
https://docs.github.com/en/code-security/getting-started/adding-a-security-policy-to-your-repository

* style: editoral fix

Co-authored-by: Steve Loeppky <biglep@protocol.ai>
2022-06-28 18:51:37 +02:00
862ce6bb8f Update .github/workflows/stale.yml 2022-06-27 10:45:42 +00:00
61f0710100 fix: remove mdns_legacy & Discovery.MDNS.Interval
* fix: remove mdns_legacy

We've been running both implementations for a long, long time.
It is time to remove legacy version and lower the number of LAN packets
IPFS node produces.

See https://github.com/ipfs/go-ipfs/pull/9048#discussion_r906814717
for the Interval removal rational.
2022-06-27 04:17:40 +02:00
6602dd704e refactor: prealloc slices with known sizes (#8892)
Often those are small slices and that cuts down the number
of (small) allocations from 2~7 to 1. 
This is consistent too, always only gets 1.
2022-06-24 21:19:19 +01:00
ec61dd410d update go-libp2p to v0.20.2 2022-06-24 19:48:11 +02:00
a3a6a59dbb chore: update go-multihash
This remove github.com/minio/blake2b-simd and replace it with golang.org/x/crypto/blake2b which slightly faster and reduce the code surface.

See https://github.com/multiformats/go-multihash/pull/157 for more info.
2022-06-22 16:03:28 -04:00
058803f167 docs: fix typo in cid/base32 2022-06-21 22:42:46 +02:00
88d88158c6 docs: mark Swarm.ResourceMgr as experimental 2022-06-16 14:34:13 -04:00
c4522199bd chore: update go-unixfs 2022-06-16 12:04:13 -04:00
a433064d72 chore: replace ioutil with io and os (#8969)
Co-authored-by: Håvard Anda Estensen <haavard.ae@gmail.com>
2022-06-14 12:37:02 -04:00
b38bbfa471 chore: update bitswap 2022-06-13 14:30:29 -04:00
910451a7da Add .github/workflows/stale.yml 2022-06-13 12:49:30 +00:00
04651e395d feat: add a public function on peering to get the state
PR #9030
2022-06-11 08:34:10 +01:00
33843bfe3a fix: honor url filename when downloading as CAR/BLOCK 2022-06-10 00:07:55 +02:00
1e1e4797a8 Merge branch 'release' 2022-06-09 16:27:55 -04:00
b36044be34 chore: GitHub format 2022-06-09 17:36:51 +02:00
20083ab328 fix(cmd/config): make config edit subcommand work on windows
Co-authored-by: Jorropo <jorropo.pgm@gmail.com>
2022-06-09 17:36:11 +02:00
c9d51bbe01 Merge pull request #9023 from ipfs/release-v0.13.0
Release v0.13.0
v0.13.0
2022-06-09 09:36:31 -04:00
3b88b441b0 Release v0.13.0 2022-06-08 15:35:37 -04:00
56145237bb docs: v0.13.0 release notes 2022-06-08 15:35:37 -04:00
6e1de05cd1 chore: bump Go to 1.18.3 (#9021)
(cherry picked from commit 9db6641efd46f48a3596409009f8001bad4d5917)
2022-06-08 15:35:21 -04:00
9db6641efd chore: bump Go to 1.18.3 (#9021) 2022-06-08 15:33:06 -04:00
85e3fa60c5 chore: upgrade to go-libp2p v0.19.4
(cherry picked from commit 2e170a4302152a54bd5ab07946854bbc731f31d5)
2022-06-08 14:24:44 -04:00
7449a4b918 feat: upgrade to go-libp2p-kad-dht@v0.16.0 (#9005)
* feat: upgrade to go-libp2p-kad-dht@v0.16.0

* rename "cid format --codec" to "cid format --mc"

* refactor(test): from --codec to --mc

Co-authored-by: Marcin Rataj <lidel@lidel.org>
(cherry picked from commit 8d7ed002dfd814651edacc0b11581d5571376ffb)
2022-06-08 14:24:43 -04:00
a1a729c5cd docs: fix typo in the swarm/peering help text
(cherry picked from commit 0a01574ff7860eedfc8dce9354da1780ce0ba91e)
2022-06-08 14:24:43 -04:00
0fe75d63ea feat: disable resource manager by default (#9003)
* feat: disable resource manager by default

We are disabling this by default for v0.13 as we work to improve the
UX around Resource Manager. It is still usable and can be enabled in
the IPFS config with "ipfs config --bool Swarm.ResourceMgr.Enabled true".

We intend to enable Resource Manager by default in a subsequent
release.

* docs(config): Swarm.ResourceMgr disabled by default

Co-authored-by: Marcin Rataj <lidel@lidel.org>
(cherry picked from commit b1c051d2507cec34a9d2b313ea43a092b3fdc4a4)
2022-06-08 14:24:43 -04:00
87fca8f225 fix: adjust rcmgr limits for accelerated DHT client rt refresh (#8982)
* fix: adjust rcmgr limits for accelerated DHT client rt refresh

The Accelerated DHT client periodically refreshes its routing table,
including at startup, and if Resource Manager throttling causes the
client's routing table to be incomplete, then content routing may be
degraded or broken for users.

This adjusts the default limits to a level that empirically doesn't
cause Resource Manager throttling during initial DHT client
bootstrapping. Ideally the Accelerated DHT client would handle this
scenario more gracefully, but this works for now to unblock the 0.13
release.

* Set default outbound conns unconditionally

This also sets the default overall conns as a function of the outbound
and inbound conns, since they are adjusted dynamically, and it makes
the intention of the value clear.

* increase min FD limit

(cherry picked from commit b8617b99665fe3b1ae8123fa9a71aad295771057)
2022-06-08 14:24:43 -04:00
8dffa84d77 chore: update go-libp2p to v0.19.3 (#8990)
(cherry picked from commit f720172a2a6c92cde058880b4ae0f38400dde70f)
2022-06-08 14:24:43 -04:00
bf06e54d44 fix(ci): make go-ipfs-as-a-library work without external peers (#8978)
* Do not connect to external nodes on ipfs as a lib example.

It was causing some build timeouts error because CircleCI
was throttling WAN connections.

It closes #8956

* style: rename node vars

since this is example, this should make things easier to follow

Co-authored-by: Marcin Rataj <lidel@lidel.org>
(cherry picked from commit e8f1ce07b3d8076da5baedd772d80368804e57a7)
2022-06-08 14:24:43 -04:00
cb72776dec feat: log when resource manager limits are exceeded (#8980)
This periodically logs how many times Resource Manager limits were
exceeded. If they aren't exceeded, then nothing is logged. The log
levels are at ERROR log level so that they are shown by default.

The motivation is so that users know when they have exceeded resource
manager limits. To find what is exceeding the limits, they'll need to
turn on debug logging and inspect the errors being logged. This could
collect the specific limits being reached, but that's more complicated
to implement and could result in much longer log messages.

(cherry picked from commit 5615715c55ae59a6b17877db84eac92821371c51)
2022-06-08 14:24:43 -04:00
4449909b2d fix: JS caching via Access-Control-Expose-Headers (#8984)
This fix safelists additional headers allowing JS running on websites to
read them when IPFS resource is downloaded via Fetch API.

These headers provide metadata necessary for making smart caching
decisions when IPFS resources are downloaded via Service Worker or a
similar middleware on the edge.

(cherry picked from commit 650bc246ab4a7c2a11a207e3bf9d74c07d190eb7)
2022-06-08 14:24:43 -04:00
1adb6eaff2 docs: fix abstractions typo
(cherry picked from commit a72753bade90c4a48c29aba6c0dc81c44785e9d2)
2022-06-08 14:24:43 -04:00
57706f218a fix: hanging goroutine in get fileArchive handler
Fixes #8957

The context was only checked while reading data.
Not while writing data to the http connection.
So since the data flow through an io.Pipe the closing didn't flowed through and left the writer open hanging.

Co-authored-by: Antonio Navarro Perez <antnavper@gmail.com>
(cherry picked from commit 7892cc91f9ed17f5a6e0348334ed09c8bdb3194f)
2022-06-08 14:24:42 -04:00
5a1ca27ec6 chore: mark fuse experimental (#8962)
It works only on some platforms, and does not work reliably.
This corrects our error of not setting expectations right.

(cherry picked from commit 53299e84e0995124c97fdb76571f8646cf03c6a7)
2022-06-08 14:24:42 -04:00
d8d7c215e8 Merge pull request #8965 from ipfs/schomatis/fix/disable-rcmg-checks
fix(node/libp2p): disable rcmgr checkImplicitDefaults

(cherry picked from commit e23a4611d82e29ea6cbe3427b84c6e8f51ea3a28)
2022-06-08 14:24:42 -04:00