1. 07 Jul, 2020 3 commits
  2. 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
  3. 09 Mar, 2020 1 commit
  4. 26 Feb, 2020 1 commit
  5. 17 Jan, 2020 2 commits
    • Steven Allen's avatar
      build: fix golangci again · 721c1abe
      Steven Allen authored
      The patches that required the replace directives have been merged upstream.
      Unfortunately, those branches have now been deleted, breaking the build.
      
      GAH!
      721c1abe
    • Steven Allen's avatar
      make: move all test deps to a separate module · 71133b67
      Steven Allen authored
      1. This means those deps don't get pulled in unless we actually need to test.
      2. It means we can cordon all the golangci-lint module replace hacks off into a
         separate package.
      71133b67
  6. 12 Sep, 2019 1 commit
    • Steven Allen's avatar
      build: fix golangci again · 315a3c9e
      Steven Allen authored
      The patches that required the replace directives have been merged upstream.
      Unfortunately, those branches have now been deleted, breaking the build.
      
      GAH!
      315a3c9e
  7. 11 Sep, 2019 1 commit
  8. 30 Aug, 2019 1 commit
    • Steven Allen's avatar
      plugins: add support for plugin configs · 150b6dd1
      Steven Allen authored
      For now, configs specified in `daemon --init-config` and `init CONFIG` are not
      available. We should fix this eventually but isn't necessary for now (and
      supporting this will be annoying).
      150b6dd1
  9. 28 Aug, 2019 1 commit
  10. 24 Aug, 2019 4 commits
  11. 23 Aug, 2019 3 commits
  12. 22 Aug, 2019 1 commit
  13. 20 Aug, 2019 1 commit
  14. 06 Aug, 2019 1 commit
  15. 01 Aug, 2019 1 commit
  16. 26 Jul, 2019 1 commit
    • Steven Allen's avatar
      fix and improve the writable gateway · 521a2995
      Steven Allen authored
      1. Fix handling of PUT. The simple implementation was the correct
         implementation, I have no idea what was going on here.
      2. Use MFS everywhere to reduce code duplication and add support for sharded
         directories.
      3. _Correctly_ block IPNS.
      4. Remove the dependency on `core.IpfsNode`.
      5. Remove support for putting empty directories with a well-known CID. It was
         useless as directories are automatically created.
      521a2995
  17. 16 Jul, 2019 2 commits
    • Steven Allen's avatar
      switch to new merkledag walk functions · 9738d81c
      Steven Allen authored
      EnumerateChildrenAsync has been renamed to WalkParallel to reflect the fact
      that:
      
      1. It visits the root.
      2. It's parallel, not async.
      
      To mirror this change, EnumerateChildren has also been renamed to Walk and now
      behaves the same (except that it's not parallel).
      9738d81c
    • Steven Allen's avatar
      readme: fix CI badge · 7256af59
      Steven Allen authored
      7256af59
  18. 15 Jul, 2019 3 commits
  19. 10 Jul, 2019 1 commit
  20. 09 Jul, 2019 1 commit
  21. 04 Jul, 2019 1 commit
  22. 03 Jul, 2019 2 commits
  23. 29 Jun, 2019 1 commit
  24. 28 Jun, 2019 2 commits
  25. 27 Jun, 2019 1 commit
  26. 24 Jun, 2019 1 commit
  27. 21 Jun, 2019 1 commit