1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-28 00:39:31 +08:00

5892 Commits

Author SHA1 Message Date
568e5087e1 Edited object patch set-data doc
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-12 16:12:38 -07:00
e61e685833 redundency-be-gone
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-12 13:32:16 -07:00
7e88f83f74 Revert "mfs.Mkdir returns the final Directory it creates"
This reverts commit dfd98f27b25868c770cb1d50c3a3a82e5f53453d.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-12 13:30:09 -07:00
8fcb585cfb Removes write flag from Finalize
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-12 13:03:11 -07:00
3876f1b98e More thorough ipfs add test.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-12 13:03:11 -07:00
6588bbc988 More thorough error checking.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-12 13:03:11 -07:00
d30152cfe9 Adds tests for "ipfs add -rn"
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-12 13:03:11 -07:00
6b0ff2bd78 Output dirs on ipfs add -rn
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-12 13:03:11 -07:00
06e710330a Cache files/dirs when added.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-12 13:03:11 -07:00
dfd98f27b2 mfs.Mkdir returns the final Directory it creates
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-12 13:03:11 -07:00
ca50f0d8bf Merge pull request #2497 from noffle/init_check
Makes repo existance check more sensitive.
2016-04-12 13:00:27 -07:00
6c8bebbedd Merge pull request #2257 from ipfs/feat/promise-fail
allow promises to fail
2016-04-12 11:52:13 -07:00
5a0b6e593a small sharness test for promise failure checking
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-04-12 11:21:34 -07:00
cf7f5da426 don't fail promises that already succeeded
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-12 10:43:23 -07:00
8d7117f55a Merge pull request #2549 from ipfs/datastore-config
repo: properly init Datastore config, and leave it be
2016-04-12 10:41:20 -07:00
53c94ef7b4 Merge pull request #2356 from ipfs/prometheus2
metrics: rework prometheus integration
2016-04-12 10:31:43 -07:00
0e906466e7 godeps: remove prometheus and deps
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-11 19:37:06 -07:00
caec086c28 metrics: add prometheus back
With a proper IpfsCollector object and tests, this time.
The collector object makes it easy to add further metrics,
like e.g. bitswap wants/provs.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-11 19:33:16 -07:00
a79907b7c1 repo: properly init Datastore config, and leave it be
We didn't previously initialize the Datastore config section.
The respective function exists, but was dead code up until now.

This lead to weird decisions like the GC code deciding on defaults,
and writing these to the config file. Don't want GC to touch the config.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-11 16:21:14 -07:00
daaa69e276 Merge pull request #2548 from ipfs/fix/libp2p-listen-hang
update libp2p dep to fix hanging listeners problem
2016-04-11 16:21:43 -04:00
bdc5456d52 update libp2p dep to fix hanging listeners problem
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-11 12:52:54 -07:00
a957b4b9c1 Merge pull request #2541 from ipfs/feat/roadmap
add roadmap.md
2016-04-08 16:06:32 -07:00
831a695930 add roadmap.md
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-08 16:05:32 -07:00
ab8879c433 Merge pull request #2538 from ipfs/feat/config-cleanup
clean up dead code and config fields
2016-04-08 15:09:45 -07:00
38b21e4296 remove test for removed dead config version fields
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-08 13:54:12 -07:00
74fad48e4b clean up dead code and config fields
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-08 13:11:30 -07:00
8784e606b2 Merge pull request #2537 from noffle/files-api-help
Adds Files API cmd to helptext
2016-04-08 12:35:08 -07:00
c89723d316 Adds files api cmd to helptext
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-08 12:33:00 -07:00
016f18c89c Merge pull request #2340 from ipfs/fix/key-escape
fix dht command key escaping
2016-04-08 12:20:06 -07:00
e7dfd778af Merge pull request #2536 from ipfs/dev-version-bump-0.4.1
bump ipfs dev version to 0.4.1
2016-04-08 11:46:51 -07:00
1b90fab38f bump ipfs dev version to 0.4.1
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-08 11:31:45 -07:00
d84dfafe69 allow promises to fail
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-08 11:26:21 -07:00
00e4472dff Remove debug log
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-08 11:23:21 -07:00
c5b2e09708 test for the dht key escaping
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-08 11:23:21 -07:00
65c66fd09b fix dht command key escaping
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-08 11:23:21 -07:00
600c95eb53 version bump to 0.4.0
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
v0.4.0
2016-04-07 16:22:41 -07:00
a164fc958f Ipfs v0.4.0 changelog
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-07 16:22:21 -07:00
8a0bd6ce67 Merge pull request #2532 from ipfs/deps/libp2p/msscrypto
switch to new libp2p with mss crypto
2016-04-07 15:55:33 -07:00
e9edd2d884 use nc -w instead of -q because osx is slow
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-07 15:55:41 -07:00
42455d27b3 multistream tests use data from file
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-07 15:55:41 -07:00
3148f4c34f fix tests that check swarm port knocking
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-07 15:55:41 -07:00
8f3a51ac42 switch to new libp2p with mss crypto
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-07 15:55:41 -07:00
5db8b1666f Merge pull request #2466 from ipfs/feat/fd-limit-check
try to raise ulimit if its too low
2016-04-07 12:46:03 -07:00
e661832575 hide fd adjusting code behind daemon feature flag
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-07 07:41:09 -07:00
0cb01acd71 don't use Max for setting Current
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-06 18:09:50 -07:00
48ee44c46a try to raise ulimit if its too low
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-06 18:09:50 -07:00
3e824412d9 commands/cli: fix parsing of incorrect permutations
parseOpts now does some preliminary path screening to prevent
command sequences like

	`ipfs <hash> cat`

from succeeding. The tests affected by this have been slightly altered,
but should be restored once parseOpts is decoupled from path analysis.

Command suggestion printing has also been factored into a single
function.

Fixes: #2501
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-04-05 21:53:21 +10:00
ae3fed721f Merge pull request #2520 from slothbag/sloth_b64_fix
Add option to decode 'Data' field as base64
2016-04-04 20:00:25 -07:00
c6e6bb056a Merge pull request #1988 from ipfs/ipfs-prefix-hardening
gateway: harden path prefix
2016-04-04 16:08:26 -07:00
09937f84b6 gateway: enforce allowlist for path prefixes
The gateway accepts an X-Ipfs-Path-Prefix header,
and assumes that it is mounted in a reverse proxy
like nginx, at this path. Links in directory listings,
as well as trailing-slash redirects need to be rewritten
with that prefix in mind.

We don't want a potential attacker to be able to
pass in arbitrary path prefixes, which would end up
in redirects and directory listings, which is why
every prefix has to be explicitly allowed in the config.

Previously, we'd accept *any* X-Ipfs-Path-Prefix header.

Example:

We mount blog.ipfs.io (a dnslink page) at ipfs.io/blog.

nginx_ipfs.conf:

    location /blog/ {
        rewrite "^/blog(/.*)$" $1 break;
        proxy_set_header Host blog.ipfs.io;
        proxy_set_header X-Ipfs-Gateway-Prefix /blog;
        proxy_pass http://127.0.0.1:8080;
    }

.ipfs/config:

    "Gateway": {
        "PathPrefixes": ["/blog"],
        // ...
    },

dnslink:

    > dig TXT _dnslink.blog.ipfs.io
    dnslink=/ipfs/QmWcBjXPAEdhXDATV4ghUpkAonNBbiyFx1VmmHcQe9HEGd

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-04 16:31:57 -04:00