1. 05 Apr, 2020 1 commit
    • Hector Sanjuan's avatar
      HTTP API: Disallow GET requests on API · 1b490476
      Hector Sanjuan authored
      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: default avatarSteven Allen <steven@stebalien.com>
      Co-Authored-By: default avatarMarcin Rataj <lidel@lidel.org>
      1b490476
  2. 04 Apr, 2020 2 commits
  3. 03 Apr, 2020 2 commits
  4. 02 Apr, 2020 12 commits
  5. 01 Apr, 2020 2 commits
  6. 31 Mar, 2020 2 commits
    • Steven Allen's avatar
      Merge pull request #7064 from ipfs/feat/no-relay-discovery · bf8db870
      Steven Allen authored
      fix: remove internal relay discovery
      bf8db870
    • Steven Allen's avatar
      fix: remove internal relay discovery · 06ba6d0f
      Steven Allen authored
      This logic collects a list of known relays by testing every new connection.
      
      It exists so we can dial /p2p-circuit/p2p/QmFoobar addresses (circuit addresses
      that don't specify the relay). However, this kind of address is useless outside
      of basic demos as a random relay is practically guaranteed to not be connected
      to the target peer. Picking a random relay to connect to some peer is almost
      _never_ the desired behavior.
      06ba6d0f
  7. 30 Mar, 2020 14 commits
  8. 28 Mar, 2020 4 commits
  9. 27 Mar, 2020 1 commit