Commit Graph

11942 Commits

Author SHA1 Message Date
Adin Schmahmann
28cdfdfd1f chore: go fmt 2020-08-17 06:58:57 -04:00
Adin Schmahmann
8e73021852
Stop searching for public keys before doing an IPNS Get (#7549)
* feat: stop checking the DHT for public keys before doing an IPNS get. It has been many releases since we started adding the public keys into the IPNS records by default.
2020-08-14 18:08:09 -04:00
Adin Schmahmann
dc869c981f
Merge pull request #7409 from ipfs/feat/id-list-protocols
feat: return supported protocols in id output
2020-08-14 18:05:15 -04:00
Oli Evans
97fee07bd2
Merge pull request #7585 from Luflosi/fix-typo
docs: fix typo in default swarm addrs config docs
2020-08-11 09:53:42 +01:00
Adin Schmahmann
7b9bb8fd24
Merge pull request #7429 from ipfs/fix/plugin-load-error
feat: nice errors when failing to load plugins
2020-08-08 23:04:01 -04:00
Steven Allen
c07b6fb1d1 feat: nice errors when failing to load plugins
partially fixes #7305
2020-08-08 22:53:18 -04:00
Steven Allen
7648a46780
Merge pull request #7478 from ipfs/fix/document-reverse-proxy-bug
doc: document reverse proxy bug
2020-08-08 19:15:28 -07:00
Adin Schmahmann
34c0e5c0f6 fix: sort addresses returned by ipfs id 2020-08-08 21:39:18 -04:00
Adin Schmahmann
d6b94360e2 fix: sort protocols returned by ipfs id 2020-08-08 21:38:34 -04:00
Luflosi
0155a88e5f
docs: fix typo 2020-08-08 23:12:49 +02:00
Steven Allen
dd47364e24 feat: add protocol list to ipfs id 2020-08-07 19:46:44 -04:00
Steven Allen
dd1093f438 fix: use connect instead of findpeer so we ensure we actually connect
Otherwise, the ID is going to be incorrect.

Note: technically, the previous logic didn't need to connect to the target peer
to complete. However, I'm fine dropping that capability in favor of more
up-to-date information.
2020-08-07 19:46:44 -04:00
Adin Schmahmann
7565da9bc2 fix: ipfs name resolve --dht-record-count flag uses correct type and now works 2020-08-07 19:14:36 -04:00
Adin Schmahmann
692e9f59ff refactor: get rid of cmdDetails awkwardness 2020-08-04 18:28:40 -04:00
Adin Schmahmann
18a27564cb
Merge pull request #7554 from ipfs/petar/namefmt
IPNS format keys in b36cid
2020-08-04 14:08:09 -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
Petar Maymounkov
086ea33827 update libp2p deps 2020-08-03 17:53:19 -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
Adin Schmahmann
5b28704e50
Merge pull request #7529 from ipfs/feat/add-snap-package
feat: add snap package configuration
2020-07-24 12:42:45 -04:00
Rafael Ramalho
e3905e1fdc chore: bump webui version 2020-07-24 12:37:02 -04:00
Adin Schmahmann
1813deb2cb
Merge pull request #7545 from ipfs/chore/use-published-interop-test-version
chore: use published ipfs-interop module instead of master branch
2020-07-24 11:24:45 -04:00
achingbrain
b5852295e7 chore: use npx for interop runner 2020-07-24 08:40:51 +01:00
achingbrain
631f958fc7 chore: update js-ipfs and interop version 2020-07-23 17:52:41 +01:00
achingbrain
e8cfdd7f3d chore: use published ipfs-interop module instead of master branch
Changes the CI pipeline to use a published version of the `ipfs-interop`
module instead of whatever's the HEAD of master in order to control
the versions of what's being tested.

Otherwise it becomes hard to release breaking changes in an ordered
fashion.
2020-07-23 17:52:30 +01:00
Oli Evans
bb6a42dd08
chore: remove stale comment
License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
2020-07-21 10:31:55 +01: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
Steven Allen
480defab68 fix: override GOFLAGS
That way we can combine our GOFLAGS with the user specified ones.

This also switches to the new -trimpath build flag for reproducible builds.

fixes #7475
2020-07-20 10:32:42 -04:00
Marten Seemann
be171d5e3c update QUIC, enable the RetireBugBackwardsCompatibilityMode 2020-07-20 10:29:43 -04:00
Adin Schmahmann
3af0e658f6
Merge pull request #7519 from RubenKelevra/patch-1
github issues: add info about the security email address
2020-07-17 13:49:28 -04:00
Adin Schmahmann
8dcd260b21
Merge pull request #7514 from martriay/doc/add-without-daemon-behavior
Document add behavior when the daemon is not running
2020-07-17 13:37:06 -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
Adin Schmahmann
3d3c03618b
Merge pull request #7515 from ipfs/petar/rollover 2020-07-15 19:48:09 -04: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
Adin Schmahmann
b98f797bba
Merge pull request #7251 from ipfs/feat/ed25519identity
Choose Key type at initialization
2020-07-14 14:55:48 -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
Marcin Rataj
0acfb38763 chore: fix a typo 2020-07-10 14:13:11 -04:00
Marcin Rataj
580d68685c docs: document X-Forwarded-Host 2020-07-10 14:13:11 -04:00
Michael Muré
87dfc46e03 feat: support X-Forwarded-Host when doing gateway redirect 2020-07-10 14:13:11 -04:00
Oli Evans
812ee63d18
chore: remove explicit architectures
remvoing as specifying the subset of architectures you want to build on has side-effects, like the resulting snap is labeled as "multi" arch, and the snapstore UI lists it as building on i386 the whole time.

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
2020-07-10 18:05:36 +01:00
Oli Evans
ba0b415408
chore: enable snap home interface
Without the home interface the user is unable to add files to ipfs from their home dir.

Also explicitly sets the build architectures, to skip some esoteric ones and save some cpu cycles.

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
2020-07-10 16:30:54 +01:00