Commit Graph

1712 Commits

Author SHA1 Message Date
Petar Maymounkov
a8c7980721
add remote pinning to ipfs command (#7661)
Added support for remote pinning services

A pinning service is a service that accepts CIDs from a user in order to host the data associated with them.
The spec for these services is defined at https://github.com/ipfs/pinning-services-api-spec

Support is available via the `ipfs pin remote` CLI and the corresponding HTTP API

Co-authored-by: Petar Maymounkov <petarm@gmail.com>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
2020-12-08 20:32:33 -05:00
Adin Schmahmann
76f3395ee6 p2p-proxy: earlier peerID validation check 2020-12-01 12:24:18 -05:00
Steven Allen
7a50636f9a fix: return an error when an unknown object type is passed
fixes #7785
2020-11-30 17:59:37 -08:00
Adin Schmahmann
499e011df9
Merge pull request #7699 from ipfs/fix/dnslink-dir-listing
fix(dnslink-gw): breadcrumbs and CID column when dir listing
2020-11-10 15:03:36 -05:00
Adin Schmahmann
0700c74bad
Merge pull request #7727 from ipfs/fix/preserver-query-on-website-redirect
fix(gw): preserve query on website redirect
2020-11-10 14:36:11 -05:00
Marcin Rataj
d1c20bdff7
fix: localhost API access via ipv6
This adds localhost ipv6 addresses to the allowlist for use in browser
context and fixes WebUI on ipv6-only deployments: http://[::1]:5001/webui

We were missing CORS/Origin tests for API port so I've added basic ones
and included localhost/127.0.0.1/::1 variants.
2020-10-20 00:46:40 +02:00
Marcin Rataj
6ffd0aa22e
fix(gw): preserve query on website redirect 2020-10-14 00:46:57 +02:00
Marcin Rataj
4deaf050d7
chore: dir-index-html 1.2.1
release notes:
https://github.com/ipfs/dir-index-html/releases/tag/1.2.1
2020-09-29 02:40:49 +02:00
Marcin Rataj
3ed46d995f
test(gw): add t0115-gateway-dir-listing.sh to sharness
This adds proper end-to-end tests for directory listing on Gateway port
that protects us against regressions oni each gw type:
- path gateway
- subdomain gateway
- dnslink website gateway

Tests cover:
- etag/unicode support
- breadcrumbs
- file name column
- hash column
2020-09-29 02:27:28 +02:00
Marcin Rataj
19ec5f4a51
feat(gateway): Content-Disposition for legacy clients
This adds ASCII-only filename for clients that do not implement RFC 5987

Closes #7648
2020-09-16 22:39:04 +02:00
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