Commit Graph

11736 Commits

Author SHA1 Message Date
Steven Allen
978091a626 feat: implement peering service
MVP for #6097

This feature will repeatedly reconnect (with a randomized exponential backoff)
to peers in a set of "peered" peers.

In the future, this should be extended to:

1. Include a CLI for modifying this list at runtime.
2. Include additional options for peers we want to _protect_ but not connect to.
3. Allow configuring timeouts, backoff, etc.
4. Allow groups? Possibly through textile threads.
5. Allow for runtime-only peering rules.
6. Different reconnect policies.

But this MVP should be a significant step forward.
2020-05-25 20:24:41 -07:00
Steven Allen
707b5506ba
Merge pull request #7360 from ipfs/feat/better_dir_etag
Include the git blob id of the dir-index bundle in the ETag
2020-05-25 13:21:55 -07:00
Peter Rabbitson
dfd9860183 Add generated comment 2020-05-25 22:10:51 +02:00
Steven Allen
c17bcbd4e0
Merge pull request #7340 from ipfs/feat/boostrap-when-low
feat: bootstrap in dht when the routing table is empty
2020-05-25 13:01:08 -07:00
Peter Rabbitson
2d5f8b4ebe Include the git blob id of the dir-index bundle in the ETag
While the content of raw files retrieved via the gateway should never
change, the look and feel of the directory index can and will change
between versions of go-ipfs.

Incorporate the hash of assets/bindata.go into the ETag when appropriate
2020-05-25 18:42:07 +00:00
Steven Allen
ff17485cbb feat: bootstrap in dht when the routing table is empty
Otherwise, we could end up with only DHT clients and never re-bootstrap.

I've left the default go-ipfs bootstrapping code in for now as it's technically
possible to disable the DHT entirely.
2020-05-24 22:55:30 -07:00
Steven Allen
413ab315ba
Merge pull request #7349 from RubenKelevra/feat/quic_remove_experimental_status
quic: remove experimental status and add it to the default config
2020-05-22 17:22:22 -07:00
Steven Allen
9f40af0b13 test(sharness): fix bootstrap test for quic bootstrap addrs 2020-05-22 16:57:58 -07:00
Steven Allen
48302a1a9d chore: update go-ipfs-config
Fixes init output.
2020-05-22 16:40:43 -07:00
Steven Allen
a4985c29e8 test(sharness): fix pubsub tests 2020-05-22 16:21:15 -07:00
Steven Allen
4714c0cecc feat: enable QUIC by default
But only if private networks are disabled.
2020-05-22 13:48:58 -07:00
Steven Allen
03c1f769d7 fix: remove strict signature verification option
Signature verification is now always strict.
2020-05-22 13:48:26 -07:00
Steven Allen
ed437fa64e chore: update go-ipfs-config 2020-05-22 13:47:57 -07:00
@RubenKelevra
2dc1f691f1 quic: remove experimental status and add it to the default config 2020-05-22 04:54:19 +02:00
Steven Allen
53739faee0
Merge pull request #7344 from ipfs/chore/update-swarm
chore: update libp2p deps
2020-05-20 22:40:19 -07:00
Steven Allen
c1a49d3b8f chore: update libp2p deps
* Update swarm to prefer QUIC addrs over other addrs.
* Update yamux to increase throughput.
2020-05-20 22:13:46 -07:00
Steven Allen
edcd118a88
Merge pull request #7339 from ipfs/fix/dir-listing-404
fix: support directory listings even if a 404 page is present
2020-05-20 20:09:03 -07:00
Steven Allen
6a2fe0a20d fix: support directory listings even if a 404 page is present
fixes https://github.com/ipfs/go-ipfs/pull/4233#issuecomment-631454543

Basically, there's a trade-off here:

1. We can support directory listings while supporting 404 pages (this PR).
2. If a 404 page is present, directory listings don't work.

Given that option 1 is more flexible and users shouldn't be _too_ confused if
they land on a directory with no index.html page, I've gone with that option.
2020-05-20 19:11:50 -07:00
Steven Allen
e0aa23d4a6
Merge pull request #7309 from ipfs/fix/plugin-docs
doc(plugin): document plugin config
2020-05-20 18:04:08 -07:00
Steven Allen
4b10fdb324
Merge pull request #7320 from ipfs/fix/fuse-tests
test(sharness): fix fuse tests
2020-05-20 18:03:32 -07:00
Steven Allen
b367bbac26
Merge pull request #7337 from ipfs/chore/update-all-deps
chore: update deps
2020-05-20 18:01:40 -07:00
Steven Allen
0a8b2f117b chore: update deps
And remove use of mafilter library (now rolled into go-multiaddr).
2020-05-20 17:51:04 -07:00
Steven Allen
febdc3bed6
Merge pull request #7335 from ipfs/chore/update-libp2p
chore: update libp2p
2020-05-20 17:42:15 -07:00
Steven Allen
69ccf99915 chore: update libp2p 2020-05-20 16:56:22 -07:00
Steven Allen
554a21b647
Merge pull request #7334 from ipfs/docs/ipns-pubsub-experiment-update
docs: update experimental-features doc with IPNS over pubsub changes.
2020-05-20 16:19:24 -07:00
Steven Allen
d4cf4707ee
Merge pull request #7336 from ipfs/docs/config-formatting
docs: cleanup config formatting
2020-05-20 16:18:47 -07:00
Steven Allen
2380343f9a
Merge pull request #7330 from cloudflare/fix/dir-listing-content-type
fix(gateway): ensure directory listings have Content-Type text/html
2020-05-20 16:18:08 -07:00
Adin Schmahmann
a0e01501e7 docs: cleanup config formatting 2020-05-20 13:48:26 -04:00
Adin Schmahmann
6fc9d7a62a longer version history for IPNS over PubSub 2020-05-20 13:31:36 -04:00
Adin Schmahmann
a38987a9de docs: update experimental-features doc with IPNS over pubsub changes. 2020-05-20 12:49:10 -04:00
Peter Wu
d4952f2a73 fix(gateway): ensure directory listings have Content-Type text/html
Files already have an explicit Content-Type set. Be sure to do this for
directory listings as well to avoid a fallback to autodetection in
net/http. That fallback fails when a ResponseWriter is installed that
performs compression.
2020-05-20 15:20:33 +02:00
Peter Wu
7c7888c4db fix(gateway): fix status code for HEAD on redirects
Report a consistent status code for HEAD requests that end up in a
redirect.
2020-05-20 14:03:58 +02:00
Steven Allen
2a32d9f81d
Merge pull request #7332 from ipfs/test/test-fuse-local
test(sharness): test the local symlink
2020-05-19 20:07:22 -07:00
Steven Allen
55f64ba6c2
Merge pull request #7333 from ipfs/doc/misc-fixes
misc config/experimental-features doc fixes
2020-05-19 20:06:54 -07:00
Steven Allen
df179e03d9 doc(experimental): update pubsub docs 2020-05-19 19:26:19 -07:00
Steven Allen
b29f9e9959 doc(config): document pubsub 2020-05-19 19:24:27 -07:00
Steven Allen
6719e124bb doc(config): sort sections 2020-05-19 19:13:50 -07:00
Steven Allen
f6f6658f6f test(sharness): test the local symlink 2020-05-19 18:59:54 -07:00
Steven Allen
167c834976
Merge pull request #7331 from ipfs/fix/fuse-mount
fix: correctly trim resolved IPNS addresses
2020-05-19 18:52:10 -07:00
Steven Allen
391d345622 fix: correctly trim resolved IPNS addresses
fixes https://github.com/ipfs/go-ipfs/issues/7246
2020-05-19 18:33:46 -07:00
Steven Allen
1744eb2210
Merge pull request #4233 from jphastings/feat/gateway/pretty-404
Gateway renders pretty 404 pages if available
2020-05-19 14:51:51 -07:00
JP Hastings-Spital
dfceafdbd3 Gateway renders pretty 404 pages if available
In the same way that an `index.html` file is rendered, if one is present, when the
requested path is a directory, now an `ipfs-404.html` file is rendered if
the requested file is not present within the specified IPFS object.

`ipfs-404.html` files are looked for in the directory of the requested path and each
parent until one is found, falling back on the well-known 404 error message.

License: MIT
Signed-off-by: JP Hastings-Spital <jphastings@gmail.com>
2020-05-19 14:41:21 -07:00
Steven Allen
043acbd3f8
Merge pull request #7221 from ipfs/feat/dht-stat
feat: add a dht stat command
2020-05-15 00:18:33 -07:00
Steven Allen
5751917f49 feat: add a stats dht command
Currently, it just prints out the routing tables.
2020-05-14 23:32:18 -07:00
Steven Allen
31d8679a3e
Merge pull request #7291 from ipfs/dependabot/go_modules/github.com/ipfs/go-bitswap-0.2.14
chore(deps): bump github.com/ipfs/go-bitswap from 0.2.13 to 0.2.14
2020-05-14 23:24:21 -07:00
Steven Allen
bb32155952
Merge pull request #7311 from ipfs/fix/update-dists
fix: update dists url for OpenBSD support
2020-05-14 23:23:54 -07:00
Steven Allen
6eca4928d6 test(sharness): fix fuse tests
We count "mount" IPNS if it refers to a file instead of a directory.
2020-05-14 13:14:38 -07:00
Steven Allen
d31a5b3601 fix: update dists url for OpenBSD support 2020-05-13 07:42:23 -07:00
Steven Allen
31ca7ce244
Merge pull request #7306 from ipfs/docs/x-forwarded-proto
docs: X-Forwarded-Proto: https
2020-05-13 07:08:06 -07:00
Marcin Rataj
10aaf24304
chore: update X-Forwarded-Proto copy text
Co-authored-by: Steven Allen <steven@stebalien.com>
2020-05-13 15:07:59 +02:00