- 05 Apr, 2016 1 commit
-
-
Thomas Gardner authored
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>
-
- 04 Apr, 2016 4 commits
-
-
Lars Gierth authored
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>
-
slothbag authored
License: MIT Signed-off-by: slothbag <slothbag@gmail.com>
-
slothbag authored
License: MIT Signed-off-by: slothbag <slothbag@gmail.com>
-
slothbag authored
License: MIT Signed-off-by: slothbag@gmail.com <slothbag@gmail.com>
-
- 31 Mar, 2016 2 commits
-
-
Steven Allen authored
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
-
Steven Allen authored
This way, we don't claim to pin when unpinning. License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
-
- 30 Mar, 2016 1 commit
-
-
Jeromy authored
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
-
- 25 Mar, 2016 1 commit
-
-
Michael Muré authored
License: MIT Signed-off-by: Michael Muré <batolettre@gmail.com>
-
- 18 Mar, 2016 1 commit
-
-
Richard Littauer authored
License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
-
- 15 Mar, 2016 1 commit
-
-
Richard Littauer authored
License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
-
- 14 Mar, 2016 1 commit
-
-
dignifiedquire authored
License: MIT Signed-off-by: dignifiedquire <dignifiedquire@gmail.com>
-
- 09 Mar, 2016 1 commit
-
-
Jeromy authored
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
-
- 04 Mar, 2016 3 commits
-
-
David Dias authored
License: MIT Signed-off-by: David Dias <daviddias.p@gmail.com>
-
Jeromy authored
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
-
Mildred Ki'Lya authored
License: MIT Signed-off-by: Mildred Ki'Lya <mildred-pub.git@mildred.fr>
-
- 03 Mar, 2016 2 commits
-
-
Lars Gierth authored
License: MIT Signed-off-by: Lars Gierth <larsg@systemli.org>
-
Stephen Whitmore authored
License: MIT Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
-
- 02 Mar, 2016 5 commits
-
-
Adrian Ulrich authored
License: MIT Signed-off-by: Adrian Ulrich <adrian@blinkenlights.ch>
-
Richard Littauer authored
My bad. Introduced in #2366 License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
-
Thomas Gardner authored
License: MIT Signed-off-by: Thomas Gardner <tmg@fastmail.com>
-
Thomas Gardner authored
License: MIT Signed-off-by: Thomas Gardner <tmg@fastmail.com>
-
Thomas Gardner authored
License: MIT Signed-off-by: Thomas Gardner <tmg@fastmail.com>
-
- 01 Mar, 2016 7 commits
-
-
Richard Littauer authored
See https://github.com/ipfs/http-api-spec/pull/41#discussion_r53164737 License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
-
Richard Littauer authored
License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
-
Richard Littauer authored
License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
-
Richard Littauer authored
It is not useful. See https://github.com/ipfs/http-api-spec/pull/41#discussion_r53482505 License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
-
Mildred Ki'Lya authored
This function work only with protocol buffer encoding. To make this clear, rename the function. License: MIT Signed-off-by: Mildred Ki'Lya <mildred-pub.git@mildred.fr>
-
Mildred Ki'Lya authored
This prepares for inclusion of IPLD where the Node pointer won't be there. License: MIT Signed-off-by: Mildred Ki'Lya <mildred-pub.git@mildred.fr>
-
Stephen Whitmore authored
License: MIT Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
-
- 26 Feb, 2016 3 commits
-
-
Richard Littauer authored
License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
-
Richard Littauer authored
License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
-
Richard Littauer authored
License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
-
- 24 Feb, 2016 2 commits
-
-
Stephen Whitmore authored
A couple of notes on --truncate and --offset. License: MIT Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
-
Jeromy authored
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
-
- 22 Feb, 2016 1 commit
-
-
Christian Couder authored
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
-
- 20 Feb, 2016 2 commits
-
-
Jeromy authored
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
-
Jeromy authored
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
-
- 19 Feb, 2016 2 commits
-
-
Richard Littauer authored
License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
-
Richard Littauer authored
License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
-