1. 07 Nov, 2016 3 commits
  2. 28 Oct, 2016 1 commit
  3. 25 Oct, 2016 2 commits
  4. 17 Oct, 2016 1 commit
  5. 12 Oct, 2016 1 commit
    • Jeromy's avatar
      merkledag: change 'Node' to be an interface · 01aee446
      Jeromy authored
      Also change existing 'Node' type to 'ProtoNode' and use that most
      everywhere for now. As we move forward with the integration we will try
      and use the Node interface in more places that we're currently using
      ProtoNode.
      
      License: MIT
      Signed-off-by: default avatarJeromy <why@ipfs.io>
      01aee446
  6. 10 Oct, 2016 1 commit
    • Jeromy's avatar
      bitswap: protocol extension to handle cids · f4d7369c
      Jeromy authored
      This change adds the /ipfs/bitswap/1.1.0 protocol. The new protocol
      adds a 'payload' field to the protobuf message and deprecates the
      existing 'blocks' field. The 'payload' field is an array of pairs of cid
      prefixes and block data. The cid prefixes are used to ensure the correct
      codecs and hash functions are used to handle the block on the receiving
      end.
      
      License: MIT
      Signed-off-by: default avatarJeromy <why@ipfs.io>
      f4d7369c
  7. 06 Oct, 2016 1 commit
  8. 26 Sep, 2016 1 commit
  9. 20 Sep, 2016 1 commit
  10. 07 Sep, 2016 1 commit
  11. 10 Jul, 2016 1 commit
  12. 18 Jun, 2016 1 commit
    • Lars Gierth's avatar
      gateway: clean up its surface, and remove BlockList · 1afebc21
      Lars Gierth authored
      This patch is in preparation for the gateway's extraction.
      
      It's interesting to trace technical debt back to its
      origin, understanding the circumstances in which it
      was introduced and built up, and then cutting it back
      at exactly the right places.
      
      - Clean up the gateway's surface
        The option builder GatewayOption() now takes only
        arguments which are relevant for HTTP handler muxing,
        i.e. the paths where the gateway should be mounted.
        All other configuration happens through the
        GatewayConfig object.
      
      - Remove BlockList
        I know why this was introduced in the first place,
        but it never ended up fulfilling that purpose.
        Somehow it was only ever used by the API server,
        not the gateway, which really doesn't make sense.
        It was also never wired up with CLI nor fs-repo.
        Eventually @krl started punching holes into it
        to make the Web UI accessible.
      
      - Remove --unrestricted-api
        This was holes being punched into BlockList too,
        for accessing /ipfs and /ipn on the API server.
        With BlockList removed and /ipfs and /ipns freely
        accessible, putting this option out of action
        is safe. With the next major release,
        the option can be removed for good.
      
      License: MIT
      Signed-off-by: default avatarLars Gierth <larsg@systemli.org>
      1afebc21
  13. 09 Jun, 2016 1 commit
  14. 24 May, 2016 1 commit
  15. 12 May, 2016 1 commit
  16. 04 Apr, 2016 1 commit
    • Lars Gierth's avatar
      gateway: enforce allowlist for path prefixes · 09937f84
      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: default avatarLars Gierth <larsg@systemli.org>
      09937f84
  17. 04 Mar, 2016 1 commit
  18. 09 Feb, 2016 1 commit
    • Robert Carlsen's avatar
      fix another panic where CloseNotify was called from wrong goroutine · 5367ee76
      Robert Carlsen authored
          panic: net/http: CloseNotify called after ServeHTTP finished
      
          goroutine 180 [running]:
          net/http.(*response).CloseNotify(0xc8220684e0, 0x0)
              /home/r/go/src/net/http/server.go:1535 +0x9d
          github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/prometheus/client_golang/
              /home/r/src/github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/prome
          github.com/ipfs/go-ipfs/core/corehttp.(*gatewayHandler).getOrHeadHandler.func1(0x7
              /home/r/src/github.com/ipfs/go-ipfs/core/corehttp/gateway_handler.go:119 +
          created by github.com/ipfs/go-ipfs/core/corehttp.(*gatewayHandler).getOrHeadHandle
              /home/r/src/github.com/ipfs/go-ipfs/core/corehttp/gateway_handler.go:123 +
      
      License: MIT
      Signed-off-by: default avatarRobert Carlsen <rwcarlsen@gmail.com>
      5367ee76
  19. 30 Jan, 2016 1 commit
  20. 21 Jan, 2016 1 commit
  21. 12 Jan, 2016 7 commits
  22. 28 Dec, 2015 1 commit
  23. 22 Dec, 2015 1 commit
  24. 30 Nov, 2015 1 commit
  25. 16 Nov, 2015 1 commit
  26. 31 Oct, 2015 1 commit
  27. 28 Oct, 2015 1 commit
  28. 29 Aug, 2015 1 commit
  29. 23 Aug, 2015 1 commit
  30. 17 Aug, 2015 1 commit
    • Lars Gierth's avatar
      gateway: make IPNSHostname complete · 09d75017
      Lars Gierth authored
      IPNSHostnameOption() touches the URL path only on the way in,
      but not on the way out. This commit makes it complete by
      touching the following URLs in responses:
      
      - Heading, file links, back links in directory listings
      - Redirecting /foo to /foo/ if there's an index.html link
      - Omit Suborigin header
      
      License: MIT
      Signed-off-by: default avatarLars Gierth <larsg@systemli.org>
      09d75017
  31. 08 Aug, 2015 1 commit