1. 09 Jun, 2016 1 commit
  2. 01 Jun, 2016 2 commits
  3. 17 May, 2016 2 commits
  4. 10 May, 2016 1 commit
  5. 04 May, 2016 1 commit
  6. 29 Apr, 2016 1 commit
  7. 25 Apr, 2016 1 commit
  8. 17 Apr, 2016 2 commits
  9. 11 Apr, 2016 2 commits
  10. 08 Apr, 2016 3 commits
  11. 07 Apr, 2016 2 commits
  12. 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
  13. 30 Mar, 2016 1 commit
  14. 09 Mar, 2016 1 commit
  15. 13 Feb, 2016 1 commit
  16. 31 Jan, 2016 2 commits
  17. 30 Jan, 2016 3 commits
  18. 12 Jan, 2016 6 commits
  19. 28 Dec, 2015 1 commit
  20. 08 Dec, 2015 2 commits
  21. 30 Nov, 2015 1 commit
  22. 25 Nov, 2015 2 commits
  23. 11 Nov, 2015 1 commit