1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-27 16:07:42 +08:00

5655 Commits

Author SHA1 Message Date
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
d84dfafe69 allow promises to fail
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-08 11:26: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
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
bd5e08ca9b datafieldenc switch statement
License: MIT
Signed-off-by: slothbag <slothbag@gmail.com>
2016-04-04 13:21:39 +10:00
edf0bb0544 Tidy up object put cmd defaults
License: MIT
Signed-off-by: slothbag <slothbag@gmail.com>
2016-04-04 13:09:22 +10:00
903a4851b7 Add option to decode 'Data' field as base64
License: MIT
Signed-off-by: slothbag@gmail.com <slothbag@gmail.com>
2016-04-04 12:55:27 +10:00
8acd87d799 Merge pull request #2477 from Stebalien/pin-fixes
Pin command fixes
2016-03-31 08:10:18 -07:00
f15abc223c use the builtin option parser to set the default for ipfs pin ls --type
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2016-03-30 20:00:40 -04:00
ef4e8837c6 change ipfs pin response field name from Pinned to Pins
This way, we don't claim to pin when unpinning.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2016-03-30 20:00:40 -04:00
87cf84ebc0 Merge pull request #2515 from ipfs/feat/update-utp
update utp dep
2016-03-30 05:41:14 -07:00
9f75ac4d75 update utp and cleanup more godeps along the way
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-03-29 19:18:14 -07:00
f353394617 Merge pull request #2511 from Stebalien/local-api
Allow users to override the IPFS API address when fetching dependencies
2016-03-29 07:10:39 -07:00
5b763e8a08 allow users to override the IPFS API address when fetching dependencies
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2016-03-28 10:14:50 -07:00
45e1f757d2 Merge pull request #2502 from MichaelMure/fix_fuse_test
correct import in fuse tests
2016-03-27 17:44:01 -07:00
18da0a40b0 Merge pull request #2503 from MichaelMure/pretty
clean deprecated Key.Pretty()
2016-03-25 14:50:20 -07:00
78ac786c7c Merge pull request #2493 from ipfs/feat/deps-cleanup
clean up dependencies
2016-03-25 11:00:23 -07:00
c88e46cb52 clean deprecated Key.Pretty()
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2016-03-25 12:05:45 +01:00
e2ea348143 correct import in fuse tests
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2016-03-25 12:00:43 +01:00
e9b1fe4cef clean up dependencies
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-03-23 11:54:26 -07:00
2b6da0c024 Merge pull request #2471 from ipfs/feature/alphabetize-object
Alphabetized object subcommands
2016-03-21 19:44:31 -07:00
6da712a802 Merge pull request #2490 from ipfs/docker-gc
docker: start daemon with --enable-gc
2016-03-21 17:20:56 -07:00
eea2c56d84 Merge pull request #2486 from ipfs/docs/grammar-in-diag
Edited the grammar for diag
2016-03-21 15:28:09 -07:00
50127b2f58 docker: start daemon with --enable-gc
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-03-21 12:39:53 -04:00
5f0c997504 Edited the grammar for diag
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-03-18 17:12:45 -04:00
7134930962 Merge pull request #2480 from kalmi/appveyor-fix
Appveyor fix to make it execute tests again
2016-03-17 17:43:02 -07:00
420b02ed1f appveyor fix to make it execute tests again
(not green, but at least it executes)

License: MIT
Signed-off-by: Tarnay Kálmán <kalmisoft@gmail.com>
2016-03-18 01:23:41 +01:00
24d88da289 Merge pull request #2463 from dignifiedquire/webui-04
feat: Update the webui to work with the latest changes in 0.4
v0.4.0-rc3
2016-03-15 14:16:51 -07:00
c692286b41 Alphabetized subcommands
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-03-15 13:23:22 -04:00
573b191df2 Merge pull request #2465 from ipfs/fix/double-encoding-header
fix double transfer encoding header problem
2016-03-15 10:22:14 -07:00
655804c5ef fix whitespace trimming
License: MIT
Signed-off-by: Jeromy Johnson <why@ipfs.io>
2016-03-14 16:36:31 -07:00
850602361d fix double transfer encoding head problem
License: MIT
Signed-off-by: Jeromy Johnson <why@ipfs.io>
2016-03-14 16:26:49 -07:00
102a6dde22 Merge pull request #2451 from ipfs/t0300-improve-debug-message
t0300: improve docker_build debug message
2016-03-14 16:15:59 -07:00
c0ec80215e feat: Update the webui to work with the latest changes in 0.4
License: MIT
Signed-off-by: dignifiedquire <dignifiedquire@gmail.com>
2016-03-14 20:49:18 +01:00
286a5968c5 Merge pull request #2430 from diasdavid/feat/repo-stat
Feature: `ipfs repo stat`
2016-03-11 12:51:11 -08:00
82d5e2ed0a Merge pull request #2458 from ipfs/makefile-fixes
Makefile fixes
2016-03-10 12:15:32 -08:00
6c74ac0d91 build: have install task not depend on build tasks, unneccessary
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-03-10 19:26:57 +01:00
7d67b0a69c build: fix path_check for symlink-into-gopath usecase
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-03-10 19:23:12 +01:00