Commit Graph

12864 Commits

Author SHA1 Message Date
Gus Eggert
418bc6e709 feat: log multifetcher errors
This is to make it easier to understand why the multifetcher is
falling back to a different fetcher.

(cherry picked from commit 4f3eb4cdd4)
2022-02-17 21:24:42 -05:00
Marcin Rataj
db85387c67 test: restore ipfs-interop (#8613)
* chore: ipfs@0.61.0

https://github.com/ipfs/js-ipfs/blob/master/packages/ipfs/CHANGELOG.md#0610-2021-12-15

* chore: ipfs-interop@8.0.0

(cherry picked from commit 14046d0002)
2022-02-17 21:24:42 -05:00
Adin Schmahmann
8a88718ea4 Release v0.12.0-rc1 2021-12-13 16:52:07 -05:00
Adin Schmahmann
a04b68a641 chore: bump Go version to 1.16.12 2021-12-13 15:57:04 -05:00
Adin Schmahmann
1a040b016d
Merge pull request #6816 from ipfs/feat/mh-backed-datastore
feat: switch to raw multihashes for blocks
2021-12-13 15:37:16 -05:00
Adin Schmahmann
7fe56507b5 feat: bump repo version to 12 and update CID of the distributions 2021-12-13 14:48:02 -05:00
Gus Eggert
deb79a2587
chore: add release template snippet for fetching artifact tarball 2021-12-09 15:47:44 -05:00
Adin Schmahmann
949ebe3ddf chore: bump Go version to 1.16.11 2021-12-09 12:07:32 -05:00
Adin Schmahmann
9913183038 chore: update go-ipfs-blockstore 2021-12-09 12:07:09 -05:00
Gus Eggert
007921b900 chore: add release steps for upgrading Go 2021-12-09 11:24:02 -05:00
Gus Eggert
6fb73c45a2
Merge branch 'release' 2021-12-08 19:08:49 -05:00
Gus Eggert
4a44edc9fa
Merge branch 'master' into release 2021-12-08 19:08:42 -05:00
Adin Schmahmann
67220edaae
Merge pull request #8597 from ipfs/release-v0.11.0
Release v0.11.0
2021-12-08 16:32:58 -05:00
Adin Schmahmann
4ec7aecc0c Release v0.11.0 2021-12-08 15:17:24 -05:00
Adin Schmahmann
b49e328e6a docs: update changelog for v0.11.0 2021-12-08 15:17:24 -05:00
Adin Schmahmann
ebb7356266 chore: update go-ipld-prime
(cherry picked from commit 615fb80d37)
2021-12-08 15:17:24 -05:00
Adin Schmahmann
615fb80d37 chore: update go-ipld-prime 2021-12-08 12:46:03 -05:00
Petar Maymounkov
8cfc88961d
chore: verify checksums during dist.ipfs.io sync (#8587)
* only copy files from dist.ipfs.io which have associated checksum files (also copy the checksum files)
* verify checksums before copying
* also, ignore path from sha512sum output, which sometimes has absolute path on dist.ipfs.io website

Co-authored-by: Marcin Rataj <lidel@lidel.org>
2021-12-07 16:45:42 -08:00
Steven Allen
cdb76adff7 test: fix CIDs in repo gc sharness tests 2021-12-07 13:00:39 -08:00
Adin Schmahmann
50abfad5cc fix: reenable some gc tests 2021-12-07 15:02:44 -05:00
Marcin Rataj
7026952c71 fix(ci): dist.ipfs.io sync preserving binaries
tar.gz got mangled because of reasons known to github,
this does the correct upload every time by forcing github to interpret
payload as an opaque stream of bytes without anything fancy
2021-12-06 15:00:44 -05:00
Adin Schmahmann
9a31ad51c4 Release v0.11.0-rc2 2021-12-03 15:47:56 -05:00
Gus Eggert
fc97cd02fb fix: update go-ds-flatfs to v0.5.1
Fixes #8579

(cherry picked from commit 024e84adec)
2021-12-03 15:47:56 -05:00
Lucas Molas
042efd3982 fix(corehttp): adjust peer counting metrics (#8577)
(cherry picked from commit 9d197ca732)
2021-12-03 15:47:56 -05:00
Gus Eggert
024e84adec fix: update go-ds-flatfs to v0.5.1
Fixes #8579
2021-12-03 15:08:41 -05:00
Lucas Molas
9d197ca732
fix(corehttp): adjust peer counting metrics (#8577) 2021-12-02 17:03:00 -08:00
Hector Sanjuan
b55a9435d5 Bump go-filestore and go-blockstore dependencies 2021-12-02 09:50:55 -05:00
Hector Sanjuan
953f4b6ef0 Sharness: fix t0084-repo-read-rehash for raw multihashes
Compare multihashes rather than CIDs.
2021-12-02 09:46:23 -05:00
Hector Sanjuan
8cdc18ab2f Fix t0275-cid-security.sh: rename bad block file
This sharness test provides 2 datastore blocks directly.

One of them (corresponding to an "insecure block") is not a CIDv0 therefore it
needs to be migrated and stored with its raw-multihash ID.

The (raw) CID of the block used in the test remains the same.

The other block needs no changes.
2021-12-02 09:46:23 -05:00
Hector Sanjuan
4ac3ed3ebd Raw multihashes: fix some sharness tests
This fixes some tests which expect "refs local" and "repo gc" outputs to match
the CIDs produced when adding data. These operations are now outputting CIDv1-raw
hashes, regardless of the original CIDs used to address those blocks, so some tests
fail.

The fix is usually:

* To use "block stat" to check if a block was correctly gc'ed
* To convert the CIDs to multihash (using cid-fmt) and compare those instead
2021-12-02 09:41:43 -05:00
Hector Sanjuan
8d2d9185fb gc: handle errs in toRawCids()
Not that they will ever happen in the current implementation, but it makes the
linter happy and covers our back for future.
2021-12-02 09:41:43 -05:00
Hector Sanjuan
fc56055892 gc: remove leftover tracing 2021-12-02 09:41:43 -05:00
Steven Allen
7f27dbfd15 feat: switch to raw multihashes for blocks
Part of: https://github.com/ipfs/go-ipfs/issues/6815
2021-12-02 09:41:37 -05:00
Adin Schmahmann
f9e244a7db chore: update version to v0.12.0-dev 2021-12-01 10:25:25 -05:00
Adin Schmahmann
726b9e216c Release v0.11.0-rc1 2021-12-01 09:58:39 -05:00
Adin Schmahmann
d83e3149c5 chore: update deps 2021-11-30 14:45:43 -05:00
Marten Seemann
48a6cac00b
feat: Swarm.EnableHolePunching flag (#8562)
* feat: use Swarm.EnableHolePunching flag within libp2p
* docs: Swarm.EnableHolePunching

Co-authored-by: Marcin Rataj <lidel@lidel.org>
Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
2021-11-30 11:18:51 -08:00
jwh
029d82c4ea
feat: enabling pubsub and ipns-pubsub via config flags (#8510)
* Allow pubsub and namesys-pubsub to be enabled via config

Signed-off-by: Joe Holden <jwh@zorins.us>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
2021-11-30 11:00:11 -08:00
Mohsin Zaidi
ecd2628a16
Integrate go-dag-jose plugin (#8569)
* feat(dag-jose): integrate `go-dag-jose` plugin
* test(dag-jose): sharness test for dag-jose plugin

Co-authored-by: Eric Myhre <hash@exultant.us>
2021-11-30 10:58:15 -08:00
Jorropo
c2953ab8f1
feat: Addresses.AppendAnnounce (#8177)
* feat: Addresses.AppendAnnounce

Closes #7791

* fix: deduplicate Swarm.Announce and AppendAnnounce

https://github.com/ipfs/go-ipfs/pull/8177#discussion_r759317772
https://github.com/ipfs/go-ipfs/pull/8177#discussion_r759320332

Co-authored-by: Marcin Rataj <lidel@lidel.org>
2021-11-30 17:58:19 +01:00
dependabot[bot]
4fb4c2dd48 chore(deps): bump github.com/gabriel-vasile/mimetype from 1.1.2 to 1.4.0
Bumps [github.com/gabriel-vasile/mimetype](https://github.com/gabriel-vasile/mimetype) from 1.1.2 to 1.4.0.
- [Release notes](https://github.com/gabriel-vasile/mimetype/releases)
- [Commits](https://github.com/gabriel-vasile/mimetype/compare/v1.1.2...v1.4.0)

---
updated-dependencies:
- dependency-name: github.com/gabriel-vasile/mimetype
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-29 19:18:52 -05:00
Cory Schwartz
a43e506d7f
fix: multibase in pubsub http rpc (#8183)
* multibase encoding on pubsub
* emit multibase for json clients
* refactor(pubsub): base64url for all URL args

This makes it easier to reason about.
Also added better helptext to each command explaining how the binary
data is encoded on the wire, and how to process it in userland.

* refactor: remove ndpayload and lenpayload

Those output formats are undocumented and seem to be only used in tests.
This change removes their implementation and replaces it with error
message to use JSON instead.

I also refactored tests to test the --enc=json response format instead
of imaginary one, making tests more useful as they also act as
regression tests for HTTP RPC.

* test(pubsub): go-ipfs-api

Testing against compatible version from
https://github.com/ipfs/go-ipfs-api/pull/255

* refactor: safeTextListEncoder

Making it clear what it does and why

* refactor(pubsub): unify peerids

This ensures `ipfs pubsub sub` returns the same peerids in the `From`
field as `ipfs pubsub peers`.

libp2p already uses base encoding, no need to double wrap or use custom
multibase.

* test(pubsub): go-ipfs-http-client

* refactor(pubsub): make pub command read from a file

We want to send payload in the body as multipart so users can use
existing tools like curl for publishing arbitrary bytes to a topic.

StringArg was created for "one message per line" use case, and if data
has `\n` or `\r\n` byte sequences, it will cause payload to be split. It
is not possible to undo this, because mentioned sequences are lost, so
we are not able to tell if it was `\n` or `\r\n`

We already avoid this problem in `block put` and `dht put` by reading
payload via FileArg which does not mangle binary data and send it as-is.
It feel like `pubsub pub` should be using it in the first place anyway,
so this commit replaces StringArg with FileArg.

This also closes https://github.com/ipfs/go-ipfs/issues/8454
and makes rpc in go-ipfs easier to code against.

* test(pubsub): publishing with line breaks

Making sure we don't see regressions in the future.
Ref. https://github.com/ipfs/go-ipfs/issues/7939

* chore: disable pubsub interop for now

See
344f692d8c

* test: t0322-pubsub-http-rpc.sh

- Adds HTTP RPC regression test that ensures topic is encoded as URL-safe
  multibase.
- Moves pubsub tests to live in unique range ./t032x

* fix(ci):  js-ipfs with  fixed pubsub wire format

uses js-ipfs from https://github.com/ipfs/js-ipfs/pull/3922 
until js-ipfs release can ship with dependency on go-ipfs 0.11.0-rc1

Co-authored-by: Marcin Rataj <lidel@lidel.org>
Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
2021-11-29 23:06:54 +01:00
Marcin Rataj
72656ea5f7
Merge pull request #8555 from feat/remove-submodule
refactor: remove dir-index-html submodule
2021-11-29 20:43:55 +01:00
Marcin Rataj
82c1bfa0e6 feat: hard deprecation of IPFS_REUSEPORT
Years passed and we still see it. Time to force users to switch to
LIBP2P_TCP_REUSEPORT.
2021-11-29 14:42:30 -05:00
Adin Schmahmann
52c177ced9
feat: go-libp2p 0.16, UnixFS autosharding and go-datastore with contexts (#8563)
* plumb through go-datastore context changes

* update go-libp2p to v0.16.0
* use LIBP2P_TCP_REUSEPORT instead of IPFS_REUSEPORT
* use relay config
* making deprecation notice match the go-ipfs-config key
* docs(config): circuit relay v2
* docs(config): fix links and headers
* feat(config): Internal.Libp2pForceReachability

This switches to config that supports setting and reading
Internal.Libp2pForceReachability OptionalString flag

* use configuration option for static relays

* chore: go-ipfs-config v0.18.0

https://github.com/ipfs/go-ipfs-config/releases/tag/v0.18.0

* feat: circuit v1 migration prompt when Swarm.EnableRelayHop is set (#8559)
* exit when Swarm.EnableRelayHop is set
* docs: Experimental.ShardingEnabled migration

This ensures existing users of global sharding experiment get notified
that the flag no longer works + that autosharding happens automatically.

For people who NEED to keep the old behavior (eg. have no time to
migrate today) there is a note about restoring it with
`UnixFSShardingSizeThreshold`.

* chore: add dag-jose code to the cid command output

* add support for setting automatic unixfs sharding threshold from the config
* test: have tests use low cutoff for sharding to mimic old behavior
* test: change error message to match the current error
* test: Add automatic sharding/unsharding tests (#8547)
* test: refactored naming in the sharding sharness tests to make more sense

* ci: set interop test executor to convenience image for Go1.16 + Node
* ci: use interop master

Co-authored-by: Marcin Rataj <lidel@lidel.org>
Co-authored-by: Marten Seemann <martenseemann@gmail.com>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
Co-authored-by: Gus Eggert <gus@gus.dev>
Co-authored-by: Lucas Molas <schomatis@gmail.com>
2021-11-29 19:58:05 +01:00
falstack
c00065cc84
chore: fix link in README.md (#8551)
update docs issues link
2021-11-23 23:41:26 +01:00
Marcin Rataj
302c97ffbb chore: cleanup after merging dir-index-html 2021-11-23 20:32:39 +01:00
longfeiW
87fb60b278 Update go generate command and edit readme accordingly 2021-11-23 20:32:39 +01:00
Steve Loeppky
ba2445ae72
Updating release template based off some 0.10 learnings (#8491)
* Updating release template based off some 0.10 learnings

This addresses the easy items in https://github.com/ipfs/go-ipfs/issues/8248

* Further updates based on 2021-10-07 discussion.

* Added OrbitDB to early testers.

* Fixing early tester username references.

* Being clear about how to contact early testers.
2021-11-23 14:32:22 -05:00
mathew-cf
11404a9a03
fix: multiple subdomain gateways on same domain (#8556) 2021-11-23 18:11:37 +01:00