Commit Graph

9711 Commits

Author SHA1 Message Date
Steven Allen
cb57105dfa
Merge pull request #5834 from ipfs/feat/urlstore-pin
add pinning support to the urlstore
2018-12-12 10:39:17 -08:00
Steven Allen
edd37d8682 improve urlstore pinning tests
address CR

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-11 13:44:07 -08:00
Steven Allen
e18328b5fe
Merge pull request #5836 from chenminjian/refact/cmd/cat
refact(cmd/cat): remove useless code
2018-12-11 09:38:51 -08:00
Steven Allen
25a0db4f69 add pinning support to the urlstore
fixes #5833

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-10 18:30:14 -08:00
Steven Allen
2464b20efd
Merge pull request #5048 from manandbytes/docker-non-root
Really run as non-root user in docker container
2018-12-10 16:35:12 -08:00
Mykola Nikishov
5b2e305fef Really run as non-root user in docker container
As of now,

    $ docker pull ipfs/go-ipfs
    Using default tag: latest
    latest: Pulling from ipfs/go-ipfs
    Digest: sha256:31cc5713ef3e3e81bf868cbb56c19de2d15d661743d8b6077804dee26e929ac5
    Status: Image is up to date for ipfs/go-ipfs:latest

ipfs daemon will start as root user:

    $ docker run --rm --entrypoint=/bin/sh ipfs/go-ipfs -c whoami
    root

but later on will drop priviledges:

    $ docker logs ipfs/go-ipfs |head -n 1
    Changing user to ipfs

With this change applied, ipfs daemon starts as ipfs user right from
the begining:

    $ docker run --rm --entrypoint=/bin/sh ipfs/go-ipfs -c whoami
    ipfs

License: MIT
Signed-off-by: Mykola Nikishov <mn@mn.com.ua>
2018-12-10 16:25:14 -08:00
Steven Allen
7956adad22
Merge pull request #5832 from ipfs/docs/guix-package
README: document guix package
2018-12-10 15:11:49 -08:00
Steven Allen
e7d642e5e6 README: document guix package
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-10 12:51:19 -08:00
Steven Allen
508f307c35
Merge pull request #5827 from ipfs/gx/update-peer-id
gx: update go-libp2p-peer
2018-12-10 11:57:16 -08:00
Steven Allen
d60d7ba4b4
Merge pull request #5829 from anacrolix/master
docs: Improve config documentation
2018-12-10 11:34:16 -08:00
chenminjian
1c94a62c48 refact(cmd/cat): remove useless code
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-12-10 19:12:22 +08:00
Matt Joiner
ed260599ba docs: Improve config documentation
License: MIT
Signed-off-by: Matt Joiner <anacrolix@gmail.com>
2018-12-10 19:06:00 +11:00
Steven Allen
d3a488e2a9
Merge pull request #5751 from overbool/fix/block/rm-extra-output
block: rm extra output
2018-12-07 17:02:13 -08:00
Overbool
28d9340dbb test/block: rm mixed hash
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-12-07 15:58:03 -08:00
Overbool
740110e72a block: rm extra output
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-12-07 15:58:03 -08:00
Steven Allen
6cec0b1611 fix ed25519 test(s)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-07 15:51:28 -08:00
Steven Allen
9dcec2b3e2 gx: update go-libp2p-peer
Reverts the changes that allowed small keys (ed25519 keys) to be inlined.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-07 15:37:23 -08:00
Steven Allen
6b8e24f8fd
Merge pull request #4636 from ipfs/feat/expand-issue-template
merge github-issue-guide with the issue template
2018-12-06 15:33:26 -08:00
Steven Allen
d4ae43b42c
Merge pull request #5824 from machawk1/patch-1
docs: fix inconsistent capitalization of "API".
2018-12-06 09:27:51 -08:00
Molly
0a6c7c183e Re update issue description to be shorter and more actionable
Redoing the changes Steven and I worked on separately for the top-line instructions.

License: MIT
Signed-off-by: Molly Mackinlay <molly@protocol.ai>
2018-12-06 09:17:45 -08:00
Mat Kelly
a81683d3f9
docs: fix inconsistent capitalization of "API". 2018-12-06 12:13:41 -05:00
Steven Allen
3099f2fdab add panic issue type to issue template
This was present in the issue guide that I just removed but not in the template.
It's useful for distinguishing between objective bugs and subjective bugs.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-05 15:06:37 -08:00
Steven Allen
d0789c7927 add comment about reading github's issues guide to the issue template
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-05 15:06:37 -08:00
Steven Allen
ab33445190 merge github-issue-guide with the issue template
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-05 15:06:37 -08:00
Steven Allen
18fb10b8fe
Merge pull request #5818 from ChrisChinchilla/patch-1
Update README.md
2018-12-04 10:44:54 -08:00
Chris Chinchilla
3ab2ddd4e3
Update README.md
Use correct install link
2018-12-04 19:36:21 +01:00
Steven Allen
481136b105
Merge pull request #5811 from NukeManDan/patch-1
CONTRIBUTING.md link
2018-12-03 11:13:41 -08:00
Steven Allen
942314a071
Merge pull request #5813 from anacrolix/docs/go-version-1.11
README: Update required Go version
2018-12-03 10:23:27 -08:00
Dan
f9202307d0 CONTRIBUTING.md link
License: MIT
Signed-off-by: Dan Shields <danwshields@gmail.com>
2018-12-03 00:31:16 -07:00
Matt Joiner
69ffb5bf9e README: Update required Go version
It appears that Go version 1.11 is actually required.

License: MIT
Signed-off-by: Matt Joiner <anacrolix@gmail.com>
2018-12-03 15:56:00 +11:00
Steven Allen
d34e3c8122
Merge pull request #5771 from ipfs/p2p/report-remote
p2p: report-peer-id option for listen
2018-11-30 10:19:34 -08:00
Łukasz Magiera
d6626a5c52 p2p: tests for report-peer-id
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-11-29 20:49:17 -08:00
Łukasz Magiera
c0a1e80f36 p2p: report-peer-id option for listen
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-11-29 20:49:17 -08:00
Steven Allen
1dcac25c11
Merge pull request #5803 from ipfs/fix/2528-really
really fix netcat race
2018-11-29 20:21:53 -08:00
Steven Allen
2d94a3ffc8
Merge pull request #5526 from cboddy/feat/http_proxy_over_p2p
[http_proxy_over_p2p]
2018-11-29 20:15:32 -08:00
Steven Allen
c0f979dfe1 really fix netcat race
We hit this once every few Jenkins runs. This:

1. Ensures netcat has started before we try to use it.
2. Waits for it to actually write the request before trying to read it.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-29 18:28:03 -08:00
Steven Allen
9a443adada p2p proxy tests: make robust against timing
Instead of repeatedly starting the netcat server, start it once and wait for it
to fully start. Then, feed responses in using a fifo.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-29 18:01:41 -08:00
Steven Allen
f505e06af7
Merge pull request #5809 from ipfs/kevina/coreapi-pin-cid-map
coreapi/pin: Use CID's directly in maps instead of converting to string
2018-11-29 15:57:17 -08:00
Kevin Atkinson
b1ecb82172 coreapi/pin: Use CID's directly in maps instead of converting to strings.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-11-29 17:13:26 -05:00
Dr Ian Preston
8694984992 Add another test case for invalid p2p http proxy path
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Łukasz Magiera
7e541079c7 Update test/sharness/t0184-http-proxy-over-p2p.sh
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>

Co-Authored-By: ianopolous <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Dr Ian Preston
9956630e0c add more p2p http proxy tests
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Hector Sanjuan
3b2ce4a85d Apply suggestions from code review
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>

Co-Authored-By: ianopolous <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Steven Allen
bf184376ca p2p http proxy: go fmt
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-28 23:17:27 -08:00
Steven Allen
b720d1f0b5 uses the global PeerHost and don't expose the P2P one
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-28 23:17:27 -08:00
Steven Allen
fe8ffde4c2 add some additional tests for custom protocols
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-28 23:17:27 -08:00
Steven Allen
d8cab7998e update tests
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-28 23:17:27 -08:00
Dr Ian Preston
19d4d66fc7 update p2p http proxy docs
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Dr Ian Preston
47d45c7af8 fix tests
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Dr Ian Preston
fd43f473b4 switch to new path format in p2p http proxy
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00