Commit Graph

1702 Commits

Author SHA1 Message Date
Marcin Rataj
fd01acdfc0
feat(gateway): ?filename with download=true
This implements 'attachment' mode triggered then
?filename parameter is accompanied with &download=true

When Content-Disposition: attachment is detected by a modern browser
it will skip rendering and immediately open the "save as" dialog,
making this useful feature for using IPFS gateway as target of
"Download" links on various websites.

Parameter name was suggested in:
https://github.com/ipfs/go-ipfs/pull/4177#issuecomment-414870327
2020-09-16 22:15:18 +02:00
Adin Schmahmann
2ecde1a18c chore: update dht and kbucket 2020-08-25 21:13:18 -04:00
Adin Schmahmann
aedd6f0431 sharness: switch p2p dnsaddr that was supposed to have only a single address in it to use a specific example 2020-08-24 19:11:01 -04:00
Jacob Heun
edfd3c9743
test: add rotate self test 2020-08-21 20:08:24 +02:00
Marcin Rataj
887de89cac test(gateway): breadcrumb links in dir listing
This adds subdomain tests for breadcrumbs added in:
https://github.com/ipfs/go-ipfs/pull/7536

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
2020-08-19 20:31:23 -04:00
Kevin Neaton
2feff33235 test: update gateway tests for dir-index-html v1.1.0 2020-08-19 20:31:23 -04:00
Adin Schmahmann
2d0cca800c
Merge pull request #7579 from ipfs/petar/ed25519-default
use ed25519 keys by default
2020-08-19 19:19:39 -04:00
Petar Maymounkov
ece0cda10d switch ipfs init default key 2020-08-19 08:31:44 -07:00
Adin Schmahmann
0c57e9dcf8
Merge pull request #7319 from MichaelMure/wildcard-gateways
feat: wildcard support for public gateways
2020-08-19 11:02:28 -04:00
Adin Schmahmann
40738e4fec
Merge pull request #7598 from ipfs/chore/bump-graphsync-dep
Upgrade graphsync deps
2020-08-18 19:53:52 -04:00
Petar Maymounkov
b4ad66eda4 add --ipns-base to publish and subs commands
add sharness tests for --ipns-base in name publish and subs commands
2020-08-17 21:43:02 -07:00
Petar Maymounkov
3e25355eeb fix keystore sharness default case 2020-08-17 21:43:01 -07:00
Petar Maymounkov
2b013a1ac5 use standard multibase format labels 2020-08-17 21:43:01 -07:00
Petar Maymounkov
23a26c05d3 rename -f to --ipns-base 2020-08-17 21:43:01 -07:00
Petar Maymounkov
80e859ef6f add format flag to key rename and remove, defaulting to b36cid; update sharness 2020-08-17 21:43:01 -07:00
Petar Maymounkov
a7629a27c0 fix rotate sharness 2020-08-17 21:43:01 -07:00
Petar Maymounkov
3cbe111b2d use b36 keys by default for keys and IPNS 2020-08-17 21:43:01 -07:00
Adin Schmahmann
8ae5aa56d1
add ipfs dag stat command (#7553)
* commands: add ipfs dag stat command
* sharness: add ipfs dag stat tests
2020-08-17 14:29:36 -04:00
Adin Schmahmann
992e4a71ca
Merge pull request #7599 from ipfs/feat/move-key-rotate
Move key rotation command to ipfs key rotate
2020-08-17 13:14:03 -04:00
Adin Schmahmann
08913c70ad feat: disable secio by default 2020-08-17 08:16:54 -04:00
Adin Schmahmann
eb66461333 switch ipfs key rotate flags to use the same ones as ipfs key gen 2020-08-17 07:26:47 -04:00
Adin Schmahmann
0f658484d1 move key rotation command to ipfs key rotate 2020-08-17 07:26:47 -04:00
Peter Rabbitson
90a573354a Upgrade graphsync deps 2020-08-17 12:23:59 +02:00
Steven Allen
c07b6fb1d1 feat: nice errors when failing to load plugins
partially fixes #7305
2020-08-08 22:53:18 -04:00
Marcin Rataj
2ff6f1a80d
test(gateway): IPNS cleanup and implicit defaults fix
This ensures implicit defaults are always present, even when
Gateway.PublicGateways is defined in the config.

User still can disable them, but needs to do it per hostname.

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
2020-08-06 14:00:16 +02: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
Michael Muré
13e6bcfb4f
feat: wildcard support for public gateways
Add support for one or more wildcards in the hostname definition
of a public gateway. This is useful for example to support easily
multiples environment.

Wildcarded hostname are set in the config as for example "*.domain.tld".
2020-07-24 20:51:22 +02: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