Commit Graph

13518 Commits

Author SHA1 Message Date
Marco Munizaga
dffdd35d99 Update go-libp2p to latest master 2022-08-15 14:12:21 -07:00
Marco Munizaga
f4f4128b9f Update rcmgr dep 2022-08-15 14:12:21 -07:00
Marco Munizaga
1ff4e48fd2 Fix err 2022-08-15 14:12:21 -07:00
Marco Munizaga
550663fb73 Fix lint 2022-08-15 14:12:21 -07:00
Marco Munizaga
66b974d1b9 Add sharness test for allowlist 2022-08-15 14:12:21 -07:00
Marco Munizaga
62a9829caf Reintroduce connmgr hi watermark logic 2022-08-15 14:12:21 -07:00
Marco Munizaga
68d9073d29 Use RC version 2022-08-15 14:12:21 -07:00
Marco Munizaga
2b2efc662b Add allowlist config option 2022-08-15 14:12:21 -07:00
Marco Munizaga
679d3d21b9 Add obs to resource manager 2022-08-15 14:12:21 -07:00
Marten Seemann
c3589a1728 WIP rcmgr auto limit scaling 2022-08-15 14:12:18 -07:00
Lucas Molas
8059761bb6
Merge pull request #9194 from ipfs/schomatis/chore/help/add-shutdown
chore(cmd): add shutdown to CLI help
2022-08-15 16:27:14 -03:00
Lucas Molas
6eea94e8d0 chore(cmd): add shutdown to CLI help 2022-08-15 16:12:02 -03:00
Jorropo
f9410dc99d chore: bump go-bitswap to use the splited code with polyfill 2022-08-13 20:22:49 +00:00
Gus Eggert
795c2cf819
docs: add fx plugin documentation to plugins.md (#9191) 2022-08-13 08:08:52 -04:00
Marcin Rataj
837f6ee92b chore: switch to dist.ipfs.tech
Part of https://github.com/protocol/bifrost-infra/issues/2018
ensures the domain used for fetching migrations is not
impacted by ipfs.io being blocked at DNS level by some ISPs.
2022-08-12 23:42:17 +02:00
Gus Eggert
310dca55dd feat: add fx options plugin
This adds a plugin interface that lets the plugin modify the fx
options that are passed to fx when the app is initialized. This means
plugins can inject their own implementations of IPFS interfaces. This
enables granular customization of go-ipfs behavior by plugins, such
as:

- Bitswap with custom filters (e.g. for CID blocking) Custom interface

- implementations such as Pinner or DAGService

- Dynamic configuration of libp2p ...

One downside of this is that we're exposing the entire dependency
graph, init hooks, initialization, etc. to users, so this comes with a
caveat that we reserve the right to make breaking changes to the graph
structure and initialization logic (although this historically happens
rarely). If these things are changed, we should mention them in
release notes and changelogs though, since they could impact users of
this plugin interface.

I'm not particularly fond of DI frameworks (and neither are some of
the folks work on/near go-ipfs), but it seems unlikely that somebody
will rewrite the dependency wiring and lifecycle hooks of go-ipfs, and
add dynamic extension points, so this seems like a palatable
compromise.

There are also problems that we should clean up in how model the
go-ipfs app in fx, such as:

- We make extensive use of nested fx.Options, which fx itself
discourages because it "limits the user's ability to customize their
application". It should be easy to flatten these out into a single
[]fx.Option slice.

- We pass around a list of opaque libp2p opts, which makes it hard to
customize after-the-fact...we should consider naming each of these
opts and providing them to fx as proper dependencies, so that they can
be explicitly overridden.

- We call fx.Invoke() in some places with anonymous functions. We
should instead only pass exported functions to fx.Invoke(), so that
they have exported names, which would make it easier to remove/augment
the invocations that happen when the app is initialized.

These aren't blocking issues, they just make it harder and more
brittle to customize go-ipfs with this plugin.
2022-08-12 17:04:29 -04:00
Claudia Richoux
2fb7437e2a feat: add blake3 support
Support hashes from 20 <= x <= 128 bytes, but does not yet have any option to generate anything else than 32 bytes hashes.

This will be forward compatible when we add such option.
2022-08-12 16:45:42 +00:00
Brendan O'Brien
8fd49badc2
Add reference to Experimental config doc (#9181)
* Add reference to Experimental config doc

this clarifies that `Experimental` is in fact a top level configuration key, and links to the most current documentation

Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
2022-08-11 10:15:08 -07:00
Mark Gaiser
d419c0e95b
feat: add $IPFS_PATH/gateway file
The file contains the gateway your node is hosting in the http://<host>:<port> RFC 3986 format.
Structurally it works exactly the same as the API file.
2022-08-08 13:50:26 +02:00
Seungbae Yu
cb280cbf16
docs: replace docs.ipfs.io with docs.ipfs.tech (#9158)
* docs: fix redirecting URL in README.md
* all: replace `docs.ipfs.io` with `docs.ipfs.tech`
* apply suggestions from code review

Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-08-05 19:01:10 +03:00
lostystyg
f9db823138
chore: fix markdown link syntax typo for AutoNAT.ServiceMode 2022-08-03 15:17:28 +02:00
Jorropo
7ec0c245a4 chore: bump go-blockservice to only do put onces
Fixes: #7956
2022-07-28 14:41:46 +00:00
link2xt
846d362581
docs: update Arch Linux installation instructions
Package is named `kubo`, not `go-ipfs` now.
2022-07-25 20:43:56 +02:00
dependabot[bot]
a3bdea4ed4 build(deps): bump go.uber.org/dig from 1.14.0 to 1.14.1
Bumps [go.uber.org/dig](https://github.com/uber-go/dig) from 1.14.0 to 1.14.1.
- [Release notes](https://github.com/uber-go/dig/releases)
- [Changelog](https://github.com/uber-go/dig/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber-go/dig/compare/v1.14.0...v1.14.1)

---
updated-dependencies:
- dependency-name: go.uber.org/dig
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-25 15:45:11 +00:00
dependabot[bot]
8bc466f2ed build(deps): bump github.com/ipld/go-codec-dagpb from 1.4.0 to 1.4.1
Bumps [github.com/ipld/go-codec-dagpb](https://github.com/ipld/go-codec-dagpb) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/ipld/go-codec-dagpb/releases)
- [Commits](https://github.com/ipld/go-codec-dagpb/compare/v1.4.0...v1.4.1)

---
updated-dependencies:
- dependency-name: github.com/ipld/go-codec-dagpb
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-25 15:32:02 +00:00
dependabot[bot]
f9a020a690 build(deps): bump github.com/multiformats/go-multiaddr
Bumps [github.com/multiformats/go-multiaddr](https://github.com/multiformats/go-multiaddr) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/multiformats/go-multiaddr/releases)
- [Commits](https://github.com/multiformats/go-multiaddr/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: github.com/multiformats/go-multiaddr
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-25 15:31:20 +00:00
dependabot[bot]
0badd5015c build(deps): bump go.uber.org/fx from 1.16.0 to 1.17.1
Bumps [go.uber.org/fx](https://github.com/uber-go/fx) from 1.16.0 to 1.17.1.
- [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.16.0...v1.17.1)

---
updated-dependencies:
- dependency-name: go.uber.org/fx
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-25 15:29:46 +00:00
Marcin Rataj
2f08eb45e7 chore: update kubo-as-a-library example 2022-07-25 16:48:52 +02:00
Steve Loeppky
3902c9be00
docs(readme): add maintainer info (#9141)
* Update readme with important maintainer info.

The release process should have more visibility.  For now just getting the links at least surfaced.
2022-07-23 02:29:25 +02:00
Marcin Rataj
7992025254 fix(gw): 404 when a valid DAG is missing link 2022-07-23 00:16:31 +02:00
Marcin Rataj
cf82ae54ab
Merge pull request #9123 from ipfs/fix/gw-trailing-slash-unixfs-dirs
fix(gw): directory URL normalization
2022-07-21 21:34:49 +02:00
Marcin Rataj
3182986151 fix(gw): ensure dir URLs have trailing slash
This fixes a regression around directory listing and index.html hosting.
Seems that during one of recent refactors code changed and we no longer
check for trailing slash in HTTP request path, but look at content path
instead.

This cleans this up and also ensures dir behavior is the same for
both index.html hosting and dir-index-html (generated listing).

It also adds more tests so we catch any future regressions.
2022-07-21 21:06:18 +02:00
Marcin Rataj
c95f5c9fce test(gw): index.html with go-get=1
This adds a missing test for https://github.com/ipfs/kubo/pull/3963
2022-07-21 21:06:18 +02:00
Marcin Rataj
bcab64d42d docs(config): add link to someguy router 2022-07-21 21:00:39 +02:00
Daniel Norman
5b1e04a7b8 fix: typo in README 2022-07-21 15:52:38 +00:00
kpcyrd
2711028c0a Reproducible Builds: Update GOFLAGS for -trimpath 2022-07-21 03:54:25 +00:00
Jorropo
84059cc663
Merge v0.14.0 back into master 2022-07-21 03:20:22 +00:00
Jorropo
c6777956a8 chore: bump version to v0.15.0-dev 2022-07-21 05:03:33 +02:00
Jorropo
e0fabd6dbf
Merge pull request #9133 from ipfs/release-v0.14.0
Release v0.14.0
2022-07-21 03:01:03 +00:00
Jorropo
77747e337d chore: bump to v0.14.0 2022-07-21 04:52:18 +02:00
Jorropo
9412867f5e docs(changelog): finish v0.14.0 changelog
Co-Authored-By: Marcin Rataj <lidel@lidel.org>
2022-07-21 04:52:18 +02:00
Marcin Rataj
84c3f101fd fix(gw): cache-control of index.html websites
This fixes a regression introduced in 0.13.0, where websites hosted via
index.html placed in UnixFS directory were always returned with
Cache-Control: public, max-age=29030400, immutable
even when loaded from mutable /ipns/ contentPath.

(cherry picked from commit e832cc2c1d)
2022-07-21 04:05:27 +02:00
anders
269e08a5f5 chore(license): fix broken link to apache-2.0
Fixes #9130

(cherry picked from commit 318171582b)
2022-07-21 04:05:27 +02:00
Marcin Rataj
7ea5687860 fix: kubo in daemon and cli stdout
(cherry picked from commit d30e71fa5a)
2022-07-21 04:05:27 +02:00
Jorropo
af4211a2fa backport: merge commit '839b0848a' into release-v0.14.0 2022-07-21 04:04:46 +02:00
Marcin Rataj
e832cc2c1d fix(gw): cache-control of index.html websites
This fixes a regression introduced in 0.13.0, where websites hosted via
index.html placed in UnixFS directory were always returned with
Cache-Control: public, max-age=29030400, immutable
even when loaded from mutable /ipns/ contentPath.
2022-07-21 02:02:21 +00:00
anders
318171582b
chore(license): fix broken link to apache-2.0
Fixes #9130
2022-07-20 12:31:34 -07:00
Marcin Rataj
d30e71fa5a fix: kubo in daemon and cli stdout 2022-07-20 16:26:49 +02:00
Steve Loeppky
639155c732
docs(readme): move content to docs website (#9102)
- point towards other implementations.
- add a link to a future ipfs-implementations doc
- link to IPFS in GO docs

Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-07-20 15:53:41 +02:00
Marcin Rataj
a6687744c7 fix(gw): no backlink when listing root dir
Closes #9071
2022-07-18 23:35:44 +00:00