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
Steven Allen
f28b8fce66
feat: tls by default
...
Switches to TLS as the default security transports.
2020-03-29 19:12:54 -07:00
Steven Allen
968e70f1e2
fix: downgrade to go 1.13
...
Go 1.14 has a timer reset deadlock (https://github.com/golang/go/issues/38070 ).
This also downgrades quic-go until either a go patch release fixes this issue or
a version of quic-go is released that works with go 1.13.
2020-03-29 18:41:47 -07:00
Steven Allen
3561de0740
Merge pull request #7047 from ipfs/dependabot/go_modules/github.com/ipfs/go-ds-badger-0.2.2
...
chore(deps): bump github.com/ipfs/go-ds-badger from 0.2.1 to 0.2.2
2020-03-27 22:41:43 -07:00
dependabot-preview[bot]
88bc8362a0
chore(deps): bump github.com/ipfs/go-ds-badger from 0.2.1 to 0.2.2
...
Bumps [github.com/ipfs/go-ds-badger](https://github.com/ipfs/go-ds-badger ) from 0.2.1 to 0.2.2.
- [Release notes](https://github.com/ipfs/go-ds-badger/releases )
- [Commits](https://github.com/ipfs/go-ds-badger/compare/v0.2.1...v0.2.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-28 03:37:46 +00:00
dependabot-preview[bot]
c18b3dafa0
chore(deps): bump github.com/libp2p/go-libp2p from 0.7.1 to 0.7.2
...
Bumps [github.com/libp2p/go-libp2p](https://github.com/libp2p/go-libp2p ) from 0.7.1 to 0.7.2.
- [Release notes](https://github.com/libp2p/go-libp2p/releases )
- [Changelog](https://github.com/libp2p/go-libp2p/blob/master/NEWS.md )
- [Commits](https://github.com/libp2p/go-libp2p/compare/v0.7.1...v0.7.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-28 03:37:07 +00:00
dependabot-preview[bot]
37f38de614
chore(deps): bump github.com/libp2p/go-libp2p-yamux from 0.2.5 to 0.2.6
...
Bumps [github.com/libp2p/go-libp2p-yamux](https://github.com/libp2p/go-libp2p-yamux ) from 0.2.5 to 0.2.6.
- [Release notes](https://github.com/libp2p/go-libp2p-yamux/releases )
- [Commits](https://github.com/libp2p/go-libp2p-yamux/compare/v0.2.5...v0.2.6 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-27 11:30:20 +00:00
Peter Rabbitson
027f08ccba
Upgrade go-ipfs-chunker
...
Closes #6953
2020-03-26 21:46:21 +01:00
dependabot-preview[bot]
b4b8401827
chore(deps): bump github.com/ipfs/go-bitswap from 0.2.6 to 0.2.7
...
Bumps [github.com/ipfs/go-bitswap](https://github.com/ipfs/go-bitswap ) from 0.2.6 to 0.2.7.
- [Release notes](https://github.com/ipfs/go-bitswap/releases )
- [Commits](https://github.com/ipfs/go-bitswap/compare/v0.2.6...v0.2.7 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-26 11:29:39 +00:00
Steven Allen
5129758122
chore: update deps
...
Specifically, fix an autonat issue where the service wouldn't actually start.
2020-03-25 12:32:22 -07:00
dependabot-preview[bot]
c88a2bfd59
chore(deps): bump github.com/ipfs/go-log from 1.0.2 to 1.0.3
...
Bumps [github.com/ipfs/go-log](https://github.com/ipfs/go-log ) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/ipfs/go-log/releases )
- [Commits](https://github.com/ipfs/go-log/compare/v1.0.2...v1.0.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-25 11:29:55 +00:00
Steven Allen
ad543f0724
feat: update go-libp2p & go-bitswap
...
Uses the new libp2p AutoNAT option.
2020-03-24 14:54:09 -07:00
Steven Allen
65fe1df37b
Merge pull request #7025 from ipfs/dependabot/go_modules/github.com/ipfs/go-blockservice-0.1.3
...
chore(deps): bump github.com/ipfs/go-blockservice from 0.1.2 to 0.1.3
2020-03-24 09:39:30 -07:00
dependabot-preview[bot]
a5ad19ae52
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.0 to 0.2.1.
- [Release notes](https://github.com/libp2p/go-libp2p-peerstore/releases )
- [Commits](https://github.com/libp2p/go-libp2p-peerstore/compare/v0.2.0...v0.2.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-24 11:30:21 +00:00
dependabot-preview[bot]
c6b2c66b20
chore(deps): bump github.com/ipfs/go-blockservice from 0.1.2 to 0.1.3
...
Bumps [github.com/ipfs/go-blockservice](https://github.com/ipfs/go-blockservice ) from 0.1.2 to 0.1.3.
- [Release notes](https://github.com/ipfs/go-blockservice/releases )
- [Commits](https://github.com/ipfs/go-blockservice/compare/v0.1.2...v0.1.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-24 11:29:55 +00:00
Cornelius Toole
62de9ba9d3
feat(file-ignore): add ignore opts to add cmd
...
- add the `gitignore` or `ignore options to the add command
2020-03-20 09:22:04 -07:00
dependabot-preview[bot]
26cd0d4a73
chore(deps): bump github.com/ipfs/go-bitswap from 0.2.4 to 0.2.5
...
Bumps [github.com/ipfs/go-bitswap](https://github.com/ipfs/go-bitswap ) from 0.2.4 to 0.2.5.
- [Release notes](https://github.com/ipfs/go-bitswap/releases )
- [Commits](https://github.com/ipfs/go-bitswap/compare/v0.2.4...v0.2.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-19 17:27:11 +00:00
dependabot-preview[bot]
b8261d6417
chore(deps): bump github.com/libp2p/go-libp2p from 0.6.0 to 0.6.1
...
Bumps [github.com/libp2p/go-libp2p](https://github.com/libp2p/go-libp2p ) from 0.6.0 to 0.6.1.
- [Release notes](https://github.com/libp2p/go-libp2p/releases )
- [Changelog](https://github.com/libp2p/go-libp2p/blob/master/NEWS.md )
- [Commits](https://github.com/libp2p/go-libp2p/compare/v0.6.0...v0.6.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-19 11:30:39 +00:00
Steven Allen
5b308bb30c
chore: update dependencies
2020-03-18 09:17:21 -07:00
Marcin Rataj
3ecccd6e1d
feat(gateway): subdomain and proxy gateway
...
License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
2020-03-18 08:50:38 -07:00
Peter Rabbitson
705bee7d3f
Support pipes when named on the cli explicitly
...
Still throws an error when a pipe is encountered during directory recursion
2020-03-16 17:25:33 -07:00
Steven Allen
f791f693b7
chore(dep): update bitswap
...
* better logging
* `ipfs bitswap wantlist` now returns both want-haves and want-blocks.
2020-03-16 14:50:31 -07:00