kubo/test/dependencies
Hector Sanjuan 1b490476e5 HTTP API: Disallow GET requests on API
This commit upgrades go-ipfs-cmds and configures the commands HTTP API Handler
to only allow POST/OPTIONS, disallowing GET and others in the handling of
command requests in the IPFS HTTP API (where before every type of request
method was handled, with GET/POST/PUT/PATCH being equivalent).

The Read-Only commands that the HTTP API attaches to the gateway endpoint will
additional handled GET as they did before (but stop handling PUT,DELETEs).

By limiting the request types we address the possibility that a website
accessed by a browser abuses the IPFS API by issuing GET requests to it which
have no Origin or Referrer set, and are thus bypass CORS and CSRF protections.

This is a breaking change for clients that relay on GET requests against the
HTTP endpoint (usually :5001). Applications integrating on top of the
gateway-read-only API should still work (including cross-domain access).

Co-Authored-By: Steven Allen <steven@stebalien.com>
Co-Authored-By: Marcin Rataj <lidel@lidel.org>
2020-04-05 09:57:57 +02:00
..
go-sleep vendor binary deps in test/dependencies 2015-09-10 18:09:12 -07:00
go-timeout fix govet warnings 2018-03-22 17:31:22 +01:00
graphsync-get test(graphsync): test server-side graphsync 2020-02-26 09:11:17 -08:00
iptb gx: unrewrite 2019-03-05 18:33:56 +01:00
ma-pipe-unidir test(sharness): improve reliability of ma-pipe-unidir 2019-10-28 21:54:47 -07:00
pollEndpoint daemon: support unix domain sockets for the API/gateway 2019-09-30 17:21:28 -07:00
dependencies.go build: switch from megacheck to golangci-lint 2019-05-14 09:38:29 -07:00
GNUmakefile fix: require gmake 2019-08-01 12:18:56 -07:00
go.mod HTTP API: Disallow GET requests on API 2020-04-05 09:57:57 +02:00
go.sum HTTP API: Disallow GET requests on API 2020-04-05 09:57:57 +02:00