Commit Graph

1677 Commits

Author SHA1 Message Date
Steven Allen
c07b6fb1d1 feat: nice errors when failing to load plugins
partially fixes #7305
2020-08-08 22:53:18 -04:00
Adin Schmahmann
dff0c47050 improve keystore sharness tests 2020-08-04 11:28:40 -04:00
Petar Maymounkov
e384b5964a IPNS format keys in b36cid 2020-08-04 00:18:29 -04:00
Adin Schmahmann
dfb8141d2f
Merge pull request #7546 from rendaw/master
Key import and export cli commands
2020-08-03 17:51:04 -04:00
Adin Schmahmann
fab3a3578d ipfs key export output keys with .key extension by default 2020-08-03 17:28:55 -04:00
Adin Schmahmann
7f15be2ae5 switch ipfs key import/export to use files instead of strings 2020-08-03 16:27:12 -04:00
rendaw
356ca3aefa
Remove export option from generate 2020-08-01 10:45:38 +09:00
Adin Schmahmann
a70d04b68f remove ipfs key identify command 2020-07-30 16:26:40 -04:00
Petar Maymounkov
6eb5db7e64
repeat gateway subdomain test for all key types (#7542)
* repeat gateway subdomain test for all key types

Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
2020-07-20 13:20:09 -04:00
rendaw
3bdc907168
Merge remote-tracking branch 'source/master' 2020-07-17 00:09:01 +09:00
rendaw
c7657cb690
Fix sharness tests 2020-07-16 23:57:30 +09:00
rendaw
a0656402ed
Key import and export cli commands 2020-07-16 22:25:37 +09:00
Petar Maymounkov
7dda766442 sharness: test_ipfs_init now uses default flags 2020-07-15 19:04:43 -04:00
Petar Maymounkov
2c255eab24 feat: implement ipfs rotate command for rotating the ID keys for the node 2020-07-15 19:04:34 -04:00
Petar Maymounkov
4674f770b7 Choosable key types at initialization
* add support for choosing a peer key type (e.g. RSA or Ed25519) when initializing the repo
* test all variants of ipfs init: RSA, Ed25519 and default
* update subdomain gateway sharness test to publish IPNS using RSA and
Ed25519 keys
* use default identity bit lengths defined in config repo instead of
having separate defaults in go-ipfs
* update config repo dependency

Co-authored-by: Will Scott <will@cypherpunk.email>
Co-authored-by: Petar Maymounkov <petarm@gmail.com>
2020-07-14 14:42:49 -04:00
Petar Maymounkov
b3e5ffc41a
feat: add flag to ipfs key and list to output keys in b36/CIDv1 (#7531)
* add flag to "ipfs key gen" to output keys in b36 CIDv1
* add flag to "ipfs key list" to output keys in b36 CIDv1
* add and modify corresponding sharness tests
2020-07-13 12:08:34 -04:00
Marcin Rataj
231fab811d feat: support ED25519 libp2p-key in subdomains
This:

- adds subdomain gateway support for ED25519 CIDs in a way that fits in
  a single DNS label to enable TLS for every IPNS website.

- cleans up subdomain redirect logic and adds more explicit error
  handling.

TL;DR on router logic:

When CID is longer than 63 characters, router at /ipfs/* and /ipns/*
converts to Base36, and if that does not help, returns a human readable
400 Bad Request error.

Addressing code review:
https://github.com/ipfs/go-ipfs/pull/7441#pullrequestreview-440043209

refactor: use b36 for all libp2p-keys in subdomains
Consensus reached in
https://github.com/ipfs/go-ipfs/pull/7441#discussion_r452372828
https://github.com/ipfs/go-ipfs/pull/7441#discussion_r451477890
https://github.com/ipfs/go-ipfs/pull/7441#discussion_r452500272
2020-07-10 16:25:20 -04:00
Michael Muré
87dfc46e03 feat: support X-Forwarded-Host when doing gateway redirect 2020-07-10 14:13:11 -04:00
Will Scott
a61132efea chore: update test deps for graphsync 2020-07-07 18:30:43 -04:00
Adin Schmahmann
faa0200cfa updated deps 2020-07-07 17:16:58 -04:00
Petar Maymounkov
e1a3b79514 ok 2020-07-07 11:16:27 -07:00
Petar Maymounkov
3121689d9a updating mods 2020-07-07 09:00:55 -07:00
Adin Schmahmann
19d6230cde Merge branch 'release' into master 2020-06-19 20:04:30 -04:00
Steven Allen
e164af1f2a feat: add a transport config section
This way, users can disable transports (especially QUIC), and set muxer/security
transport priorities.
2020-06-16 15:15:47 -07:00
Steven Allen
86c30d6b59 test(sharness): ensure addresses end in p2p addr 2020-06-02 09:26:06 -07:00
Steven Allen
3aa86f8ed9 fix(commands): print consistent addresses in ipfs id
Consistently append `/p2p/QmMyId` to addresses when calling `ipfs id Me` and `ipfs id NotMe`.

Fixes https://github.com/ipfs/go-ipfs/issues/7378.
2020-05-29 18:48:53 -07:00
Steven Allen
02f42f5862 chore: update deps
* Updates circuit relay to rebalance connection manager tags.
* Update pubsub to fix some bugs.
* Other misc updates.
2020-05-26 14:37:05 -07:00
Steven Allen
d48b80b30e feat: add noise support
We can add a proper configuration option in a followup patch after the RC.
2020-05-25 23:46:48 -07:00
Steven Allen
1bf711d310
Merge pull request #7362 from ipfs/feat/peering
feat: implement peering service
2020-05-25 21:31:48 -07:00
Steven Allen
6ba49cfef2 fix: spelling
Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
2020-05-25 20:24:43 -07:00
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
478510ed94 chore: update go-multibase for base36 support 2020-05-25 18:25:11 -07:00
Steven Allen
9f40af0b13 test(sharness): fix bootstrap test for quic bootstrap addrs 2020-05-22 16:57:58 -07:00
Steven Allen
a4985c29e8 test(sharness): fix pubsub tests 2020-05-22 16:21:15 -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
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
f6f6658f6f test(sharness): test the local symlink 2020-05-19 18:59:54 -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
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
Peter Rabbitson
3590b1750d Add an extra guard for the issue encountered in #7207 2020-04-24 14:20:07 +02:00
Peter Rabbitson
8a32251e66 Do not mangle diagnostics when sorted comparison needed 2020-04-24 14:15:37 +02:00
Steven Allen
1e6bf16e83 test(sharness): make repo gc test more robust 2020-04-23 15:10:16 -07:00
Will Scott
9a8bcd0caf
wan peers in public ipv6 space 2020-04-21 07:58:51 -07:00
Steven Allen
9033ba9cad
Merge pull request #7181 from rex4539/fix-typos
Fix typos and cleanup
2020-04-20 21:43:47 -07:00
Dimitris Apostolou
1e437c7e97
Fix typos and cleanup 2020-04-20 22:00:01 +03:00
Steven Allen
5f529ce0a6 test: fix sharness tests for welcome docs changes 2020-04-20 11:23:30 -07:00
Steven Allen
841b62cd2c
Merge pull request #7151 from ipfs/feat/dual-dht-tests
integration test for the dual dht
2020-04-15 15:43:03 -07:00
Marcin Rataj
8290ec11c3
fix: subdomain redirect for dir CIDs
Closes #7164

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
2020-04-15 23:50:53 +02:00
Will Scott
e5a41875ba
lint 2020-04-15 08:47:21 -07:00
Will Scott
971cbf747a
test passes 2020-04-15 08:47:20 -07:00