Commit Graph

270 Commits

Author SHA1 Message Date
Steven Allen
bdbb79d30f fix: non-blocking peerlog logging
Avoid ever blocking new connections in the peer logger. Instead:

1. Send all new peers to a highly buffered channel.
2. Emit "dropped event" errors whenever we detect that we're dropping events and falling behind.
3. Don't log protocols, they're too large.
4. Don't log disconnects, we don't need them.
2020-04-27 19:15:25 -07:00
Steven Allen
314e83c38d
Merge pull request #7231 from ipfs/fix/7015
chore: update go-ipfs-provider
2020-04-27 18:12:16 -07:00
Steven Allen
b3b0a4eed4
Merge pull request #7229 from ipfs/feat/fixup-config-docs
doc: update go-ipfs docs for 0.5.0 release
2020-04-27 17:59:04 -07:00
Steven Allen
432520531e chore: update go-ipfs-provider
fixes #7015
2020-04-27 17:58:24 -07:00
Marten Seemann
f59b737f14 update go-libp2p-quic-transport to v0.3.5 2020-04-28 07:33:37 +07:00
Steven Allen
4ebe7e633d doc: fixup config docs
1. Update go-ipfs-config to fix default datastore.
2. Update TOC.
3. Update profiles list and indicate that badger isn't experimental.
2020-04-27 15:12:04 -07:00
Steven Allen
3c171c3bd2 chore: update circuit relay
Don't abort in Accept when a single relay connection aborts.
2020-04-26 11:49:34 -07:00
Steven Allen
69c438b581 fix: don't hang on bootstrap
fixes #7206
2020-04-26 11:32:55 -07:00
Steven Allen
8dceecae16 chore: update deps
* Don't forget observed addresses from connected peers.
* Avoid many possible identify protocol races.
* Fix some dht events.
2020-04-25 00:13:35 -07:00
Steven Allen
e32a9226c3 chore: update bitswap
Ensure we send cancels when closing the session.
2020-04-23 14:50:10 -07:00
Steven Allen
4ab17f50a8 chore: update ws transport to fix race 2020-04-23 01:23:24 -07:00
Steven Allen
817820a3fe chore: update bitswap to fix race 2020-04-23 01:23:06 -07:00
Steven Allen
c3b34e5443 chore: update dht
fixes a small bug in query notifications that was causing a test to fail
2020-04-23 01:17:54 -07:00
Steven Allen
5d13ac370b fix: fix duplicate block issue in bitswap
1. Increase broadcast timeout.
2. Fix use of sessions when pinning.

This also includes some bitswap changes to reduce some memory allocations and
optimize some hot spots.
2020-04-23 00:31:06 -07:00
Steven Allen
c52d353b4b chore: update bitswap
More performance improvements.
2020-04-21 22:52:14 -07:00
Will Scott
68372ba299 run against interface with sleeps before dht queries 2020-04-21 10:50:47 -07:00
Steven Allen
144306f970 fix: update the dht to fix yggdrasil
Specifically:

1. Don't add peers with IPv6 addresses outside the 2000::/3 range to the WAN
DHT. These peers are not on the public internet.
2. Do add these peers to the LAN DHT. Really, that's the "catch all other" DHT.
2020-04-20 21:53:07 -07:00
Steven Allen
ee741fece1 chore: update flatfs
Another attempt to fix #7115.
2020-04-17 14:45:00 -07:00
Steven Allen
d354ccdb60 chore: update deps 2020-04-17 12:54:49 -07:00
Marten Seemann
ac122ba4fd update go-libp2p-quic-transport to v0.3.4 2020-04-17 16:16:13 +07:00
Steven Allen
66643e0c9d chore: update the DHT
Reduces allocations
2020-04-15 15:53:59 -07:00
Steven Allen
1f23fc000c feat: add autonat config options
1. Enable AutoNATService on _all_ nodes by default. If it's an issue, we can
disable it in RC3 but this will give us the best testing results.
2. Expose options to configure AutoNAT rate limiting.
2020-04-14 20:54:58 -07:00
Steven Allen
9a9841074f chore: update bitswap
Remove some allocation hotspots
2020-04-14 16:41:13 -07:00
Steven Allen
e1f78e7929 chore: update deps 2020-04-13 19:51:22 -07:00
Steven Allen
28e31e17a8
Merge pull request #7127 from ipfs/feat/dual-dht
feat: introduce the dual WAN/LAN DHT
2020-04-13 19:01:12 -07:00
Steven Allen
fdd0ebac18 chore: update bitswap
Hopefully fixes the message queue bloat issue.
2020-04-10 17:37:01 -07:00
Steven Allen
8679954f9b chore: update flatfs
And remove retry logic. This was flatfs specific and we've moved the logic down
into flatfs itself.

This update:

* Retries in more cases when we run out of file descriptors.
* Ensures we don't leak temporary files on batch put.
2020-04-10 16:42:29 -07:00
Steven Allen
924e8704a0 chore: update flatfs
fixes #7115
2020-04-09 21:42:15 -07:00
Steven Allen
8a002250dc feat: introduce the dual WAN/LAN DHT
And only join the WAN DHT if we're publicly reachable.
2020-04-09 21:41:38 -07:00
Steven Allen
791156e734 chore(dep): update quic and kad-dht
* QUIC: update to a new protocol version
* DHT: add some extra checks
2020-04-08 20:10:32 -07:00
Peter Rabbitson
90c58d6cac Dag import functionality only ( no progress )
This still works over "loosely defined" .car files
Please refer to the sharness tests for extra info

We can tighten this up if the sentiment is "Postel was wrong"
2020-04-08 14:54:49 -07:00
Peter Rabbitson
871c70a31c Ditch urfave/cli 2020-04-08 14:54:49 -07:00
Peter Rabbitson
7b489bed80 Depend on now-released go-car tag 2020-04-08 14:54:49 -07:00
Peter Rabbitson
c2f9849a2b Fastify with go-car version taking a session 2020-04-08 14:54:49 -07:00
Peter Rabbitson
635e333d60 Dag export command, silent, no progress 2020-04-08 14:54:49 -07:00
Steven Allen
b530543599 chore: update go-ds-badger
fixes https://github.com/ipfs/go-ipfs/issues/6986
2020-04-07 20:08:28 -07:00
Steven Allen
70fe64581d feat(dht): update to cypress DHT in backwards compatibility mode
This upgrades to the next DHT version, but in backwards compatibility mode.
2020-04-06 18:53:14 -07:00
Steven Allen
0e39f3da6e chore: update deps 2020-04-06 13:09:23 -07:00
Hector Sanjuan
1b490476e5 HTTP API: Disallow GET requests on API
This commit upgrades go-ipfs-cmds and configures the commands HTTP API Handler
to only allow POST/OPTIONS, disallowing GET and others in the handling of
command requests in the IPFS HTTP API (where before every type of request
method was handled, with GET/POST/PUT/PATCH being equivalent).

The Read-Only commands that the HTTP API attaches to the gateway endpoint will
additional handled GET as they did before (but stop handling PUT,DELETEs).

By limiting the request types we address the possibility that a website
accessed by a browser abuses the IPFS API by issuing GET requests to it which
have no Origin or Referrer set, and are thus bypass CORS and CSRF protections.

This is a breaking change for clients that relay on GET requests against the
HTTP endpoint (usually :5001). Applications integrating on top of the
gateway-read-only API should still work (including cross-domain access).

Co-Authored-By: Steven Allen <steven@stebalien.com>
Co-Authored-By: Marcin Rataj <lidel@lidel.org>
2020-04-05 09:57:57 +02:00
Steven Allen
8fc9ddfe1b chore: update libp2p deps
Prepare for an RC. This also re-re-disables stream write coalescing till we get
a chance to thoroughly profile it.
2020-04-02 23:25:38 -07:00
Steven Allen
fc8307fe6e
Merge pull request #7075 from ipfs/dependabot/go_modules/github.com/ipfs/go-ds-flatfs-0.4.1
chore(deps): bump github.com/ipfs/go-ds-flatfs from 0.4.0 to 0.4.1
2020-04-02 12:09:14 -07:00
dependabot-preview[bot]
32838843e4
chore(deps): bump github.com/ipfs/go-ds-flatfs from 0.4.0 to 0.4.1
Bumps [github.com/ipfs/go-ds-flatfs](https://github.com/ipfs/go-ds-flatfs) from 0.4.0 to 0.4.1.
- [Release notes](https://github.com/ipfs/go-ds-flatfs/releases)
- [Commits](https://github.com/ipfs/go-ds-flatfs/compare/v0.4.0...v0.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-02 18:23:07 +00:00
Steven Allen
871bded47a
Merge pull request #7076 from ipfs/dependabot/go_modules/go.uber.org/fx-1.11.0
chore(deps): bump go.uber.org/fx from 1.10.0 to 1.11.0
2020-04-02 11:23:02 -07:00
Steven Allen
b90870ea6e
Merge pull request #7070 from ipfs/dependabot/go_modules/github.com/hashicorp/go-multierror-1.1.0
chore(deps): bump github.com/hashicorp/go-multierror from 1.0.0 to 1.1.0
2020-04-02 11:18:20 -07:00
dependabot-preview[bot]
cb063a28a3
chore(deps): bump github.com/ipfs/go-ds-badger from 0.2.2 to 0.2.3
Bumps [github.com/ipfs/go-ds-badger](https://github.com/ipfs/go-ds-badger) from 0.2.2 to 0.2.3.
- [Release notes](https://github.com/ipfs/go-ds-badger/releases)
- [Commits](https://github.com/ipfs/go-ds-badger/compare/v0.2.2...v0.2.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-02 11:26:25 +00:00
dependabot-preview[bot]
c7ab790547
chore(deps): bump go.uber.org/fx from 1.10.0 to 1.11.0
Bumps [go.uber.org/fx](https://github.com/uber-go/fx) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/uber-go/fx/releases)
- [Changelog](https://github.com/uber-go/fx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber-go/fx/compare/v1.10.0...v1.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-02 11:25:50 +00:00
dependabot-preview[bot]
9570efb204
chore(deps): bump github.com/hashicorp/go-multierror from 1.0.0 to 1.1.0
Bumps [github.com/hashicorp/go-multierror](https://github.com/hashicorp/go-multierror) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/hashicorp/go-multierror/releases)
- [Commits](https://github.com/hashicorp/go-multierror/compare/v1.0.0...v1.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-01 11:24:42 +00:00
Steven Allen
474ade1f49
Merge pull request #7057 from ipfs/dependabot/go_modules/github.com/libp2p/go-libp2p-peerstore-0.2.2
chore(deps): bump github.com/libp2p/go-libp2p-peerstore from 0.2.1 to 0.2.2
2020-03-29 19:53:12 -07:00
dependabot-preview[bot]
8531b242c3
chore(deps): bump github.com/libp2p/go-libp2p-peerstore
Bumps [github.com/libp2p/go-libp2p-peerstore](https://github.com/libp2p/go-libp2p-peerstore) from 0.2.1 to 0.2.2.
- [Release notes](https://github.com/libp2p/go-libp2p-peerstore/releases)
- [Commits](https://github.com/libp2p/go-libp2p-peerstore/compare/v0.2.1...v0.2.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-30 02:36:03 +00:00
dependabot-preview[bot]
2f565f1723
chore(deps): bump github.com/ipfs/go-ipfs-files from 0.0.7 to 0.0.8
Bumps [github.com/ipfs/go-ipfs-files](https://github.com/ipfs/go-ipfs-files) from 0.0.7 to 0.0.8.
- [Release notes](https://github.com/ipfs/go-ipfs-files/releases)
- [Commits](https://github.com/ipfs/go-ipfs-files/compare/v0.0.7...v0.0.8)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-30 02:35:24 +00:00