Commit Graph

1982 Commits

Author SHA1 Message Date
Hector Sanjuan
ab74987bc8 clusterhost: place dht records in persistened DHT
With this cluster peers will start remembering provider records accross
re-starts.
2020-04-01 20:15:48 +02:00
Hector Sanjuan
b95745e0eb clusterhost: use EnableNATService() libp2p option.
The autonat-svc repository is deprecated.
2020-04-01 19:38:37 +02:00
Hector Sanjuan
69cd226922 clusterhost: Remove relay OptDiscovery
It was made a no-op.
2020-04-01 17:19:52 +02:00
Hector Sanjuan
dad63ac700 Chore: update deps libp2p 0.7.2 2020-04-01 11:15:29 +02:00
Hector Sanjuan
636c4ca331 Chore: upgrade go-ipfs-chunker 2020-03-27 00:18:08 +01:00
Hector Sanjuan
c9298a222c Chore: more dependency upgrades 2020-03-26 12:40:14 +01:00
Hector Sanjuan
b3853caf36 Dependency ugprade: changes needed
* Libp2p protectors no longer needed, use PSK directly
* Generate cluster 32-byte secret here (helper gone from pnet)
* Switch to go-log/v2 in all places
* DHT bootstrapping not needed. Adjust DHT options for tests.
* Do not rely on dissappeared CidToDsKey and DsKeyToCid functions fro dshelp.
* Disable QUIC (does not support private networks)
* Fix tests: autodiscovery started working properly
2020-03-22 14:50:25 +01:00
Hector Sanjuan
8ced9b16de chore: general dependency upgrade (build fixes come later) 2020-03-22 14:50:25 +01:00
Hector Sanjuan
e3e14bd15f
Merge pull request #1022 from ipfs/fix/codecov
Codevoc: adjust thresholds
2020-03-22 14:50:10 +01:00
Hector Sanjuan
d1ff4b69b3 Codevoc: adjust thresholds 2020-03-22 14:48:31 +01:00
Hector Sanjuan
19aff486c4
Merge pull request #1016 from ipfs/fix/1006-blake
Adder: fix #1006: Specify block format, hash and length when adding
2020-03-13 22:12:46 +01:00
Hector Sanjuan
6a88e8243c
Merge pull request #1019 from ipfs/fix/request-with-context
API/client: add context to http requests
2020-03-13 21:57:56 +01:00
Hector Sanjuan
ede1b89252 Adder: fix #1006: Specify block format, hash and length when adding
Currently we were only specifying the block format. When adding with
a custom hash function, even though we produced the right cids, IPFS
did not know the hash function and ended up storing them using SHA256.

Additionally, since NodeWithMeta serializes the CID, we do not need
to carry a Format parameter (which specifies the Codec): it is already
embedded.

Tests have been added and BlockPut in ipfshttp now checks that the
response's CID matches the data sent. This will catch errors like
what was happening, but also any data corruption between cluster and
IPFS during the block upload.
2020-03-13 14:43:58 +01:00
Hector Sanjuan
45ca4305d2 API/client: add context to http requests 2020-03-13 14:26:39 +01:00
Hector Sanjuan
9ad268162b
Merge pull request #1015 from ipfs/fix/1012-Makefile-trim
Fix #1012: Trim paths on Makefile builds
2020-03-13 14:23:48 +01:00
Hector Sanjuan
c80a207e41 Fix #1012: Trim paths on Makefile builds
This results in more reproduceable builds.

Additionally, sources command to list all go-files and not just those
one directory below.
2020-03-06 14:49:19 +01:00
Hector Sanjuan
5d44275d0e
Chore: Add license file with URLS (#1014)
* Chore: Add license file with URLS

Source: 59df5e58a2

* Chore: license copyright updates
2020-03-06 13:52:19 +01:00
Hector Sanjuan
531379b1d9
Feature: Support multiple listeners in configuration
* add ipv6 listening addresses to the default config

* ipfsproxy: support multiple listeners. Add default ipv6.

* mm

* restapi: support multiple listen addresses. enable ipv6

* cluster_config: format default listen addresses

* commands: update for multiple listeners. Fix randomports for udp and ipv6.

* ipfs-cluster-service: fix randomports test

* multiple listeners: fix remaining tests

* golint

* Disable ipv6 in defaults

It is not supported by docker by default. It is not supported in travis-CI
build environments. User can enable it now manually.

* proxy: disable ipv6 in test

* ipfshttp: fix test

Co-authored-by: @RubenKelevra <cyrond@gmail.com>
2020-02-28 11:16:16 -05:00
Yang Hau
7986d94242
fix: Fix typos (#1001)
Fix typos in files
2020-02-03 10:30:04 +01:00
@RubenKelevra
392a139676
fix typo (#999)
In issue template
2020-02-03 10:25:37 +01:00
Hector Sanjuan
2cb90ba55f
Merge pull request #993 from ipfs/fix/follow-hotfixes
Fix/follow hotfixes
2019-12-24 01:51:03 +01:00
Hector Sanjuan
3cdcb44af2
Release 0.12.1 2019-12-24 01:13:23 +01:00
Hector Sanjuan
55f6458a2e Changelog for 0.12.1 2019-12-23 23:55:36 +01:00
Hector Sanjuan
1accd0e415 follow: close the RepoGCLocal RPC endpoint
Trusted peers should not be able to GC a follower.
2019-12-23 23:45:26 +01:00
Hector Sanjuan
db2ef9231a Fix #991: fix panic on "info" when IPFS not running 2019-12-23 23:45:14 +01:00
Hector Sanjuan
f20a524bbc Fix #992: Ensure the gateway variable is set on the run --init command 2019-12-23 23:32:06 +01:00
Hector Sanjuan
09e4007c31
Release 0.12.0 2019-12-20 14:45:59 +01:00
Hector Sanjuan
60ce5b3228 Update copyrights to 2020x 2019-12-20 14:40:34 +01:00
Hector Sanjuan
cdfa485be5
Merge pull request #990 from ipfs/fix/licenses
Distribute the correct dual license with ctl and service
2019-12-20 14:38:39 +01:00
Hector Sanjuan
1e887fe593
Merge pull request #982 from ipfs/0.12.0/changelog
CHANGELOG for v0.12.0
2019-12-20 14:38:25 +01:00
Hector Sanjuan
b285f71348 Reword changelog 2019-12-20 14:37:56 +01:00
Hector Sanjuan
5965d4738e Update README: fix links, add ipfs-cluste-follow info
Remove standard-readme badge and mention as we don't make use
of this project much anymore.
2019-12-20 14:12:17 +01:00
Hector Sanjuan
0fa01d5435 Distribute the correct dual license with ctl and service 2019-12-20 14:04:48 +01:00
Hector Sanjuan
40af2daf7a
Merge pull request #976 from ipfs/feat/ipfs-cluster-follow
Feat: ipfs-cluster-follow
2019-12-20 14:02:09 +01:00
Hector Sanjuan
aad179ab29 follow: Missing line break in message 2019-12-19 20:40:06 +01:00
Hector Sanjuan
912a6f43fa follow: improve return error. Remove logger (unused) 2019-12-19 20:39:20 +01:00
Hector Sanjuan
0ae04c42c8 Follow: treat errors from Default() methods 2019-12-19 20:39:20 +01:00
Hector Sanjuan
eef37027e9 follow: Handle IPFS_GATEWAY as a flag option 2019-12-19 20:02:40 +01:00
Hector Sanjuan
274f52b46a follow: do not ignore ShowAppHelp() error 2019-12-19 19:56:49 +01:00
Hector Sanjuan
212b3b00d2 follow: handle error from ApplyEnvVars 2019-12-19 19:55:19 +01:00
Hector Sanjuan
10e90616f5 follow: rename listCmd to listClustersCmd and pinsetCmd to listCmd 2019-12-19 19:53:30 +01:00
Hector Sanjuan
130965d07f follow: show the notInitialized message when not initialized. 2019-12-19 19:50:46 +01:00
Hector Sanjuan
bf2c950016 Fix #986: Ensure ctrl-c always kills ipfs-cluster-follow 2019-12-19 18:34:18 +01:00
Hector Sanjuan
d12bc7daf7 Merge branch 'master' into feat/ipfs-cluster-follow 2019-12-18 13:49:00 +01:00
Hector Sanjuan
bc506fda62
Merge pull request #985 from ipfs/fix/peer-addresses-null
cluster config: initialize peer addresses to [] rather than null.
2019-12-18 13:48:07 +01:00
Hector Sanjuan
b97efd146e
Merge pull request #984 from ipfs/fix/983-add-paths
Fix #983: Correctly print paths when adding
2019-12-18 13:47:45 +01:00
Hector Sanjuan
b64d2e6d74 Changelog: mention ipfs_sync_interval dissappears 2019-12-18 13:46:34 +01:00
Hector Sanjuan
293086d798 cluster config: initialize peer addresses to [] rather than null.
User should see this is an array.
2019-12-18 11:41:34 +01:00
Hector Sanjuan
6f3a551b33 Adder: improve comment 2019-12-18 11:32:28 +01:00
Hector Sanjuan
6e4cbc7b6e Sharness: compare files and folder labels on adding against ipfs 2019-12-18 00:24:45 +01:00