1. 08 Apr, 2020 9 commits
  2. 07 Apr, 2020 3 commits
  3. 05 Apr, 2020 2 commits
    • Hector Sanjuan's avatar
      corehttp: Gateway handler: add Allow headers when returning MethodNotAllowed · 73405436
      Hector Sanjuan authored
      Spec says that response with 405 must set Allow headers.
      73405436
    • 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
  4. 04 Apr, 2020 1 commit
  5. 02 Apr, 2020 1 commit
  6. 01 Apr, 2020 1 commit
  7. 31 Mar, 2020 1 commit
    • 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
  8. 30 Mar, 2020 2 commits
    • Steven Allen's avatar
      fix: get rid of shutdown errors · efdb8db2
      Steven Allen authored
      Instead of feeding through the top-level context, feed through a cancel-free
      context (that still carries the same context values). Then, when the top-level
      context is canceled, call `stop` to shut everything down in-order. Finally,
      cancel the inner context to make sure everything has been cleaned up.
      
      Ideally, we just wouldn't use contexts for this. But this is strictly better
      than what we have.
      efdb8db2
    • Steven Allen's avatar
      feat: tls by default · f28b8fce
      Steven Allen authored
      Switches to TLS as the default security transports.
      f28b8fce
  9. 24 Mar, 2020 1 commit
  10. 23 Mar, 2020 1 commit
  11. 20 Mar, 2020 1 commit
  12. 18 Mar, 2020 4 commits
  13. 10 Mar, 2020 1 commit
  14. 06 Mar, 2020 1 commit
  15. 02 Mar, 2020 3 commits
  16. 26 Feb, 2020 1 commit
  17. 11 Feb, 2020 1 commit
  18. 07 Feb, 2020 5 commits
  19. 05 Feb, 2020 1 commit