Coder Social home page Coder Social logo

bartzjegr / ipfs-ext Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cloudflarearchive/ipfs-ext

0.0 1.0 0.0 9.93 MB

Validates IPFS resources served by Cloudflare's gateway.

License: BSD 3-Clause "New" or "Revised" License

CSS 1.06% HTML 4.08% JavaScript 94.86%

ipfs-ext's Introduction

IPFS Gateway Validator

Validates IPFS resources served by Cloudflare's gateway.

This repo contains the source code for a browser extension that intercepts requests to IPFS gateways and distinguished domain names, and cryptographically verifies that the server's response is valid. It currently only works in Firefox because Firefox is the only browser that supports the webRequest.filterResponseData() API.

Currently, it intercepts any request to:

What are ipfs-sec domains for?

ipfs-sec domains have several security and usability properties that make them ideal for building trust-minimizing web apps.

Unlike requests served by a communal or local gateway, ipfs-sec domains are considered by the browser as a distinct origin. This means they have a safe place to store cookies and local data, can request special permissions from the user, and can run service workers free from manipulation by malicious third-party documents.

Web apps with an ipfs-sec domain can be served by a CDN to reduce their operational cost and load time through caching, as well as provide protection from DDoS attacks. However, unlike with a traditional web app, the website owner is assured that the CDN cannot maliciously modify his content. The user could also be assured that the website owner hasn't maliciously modified their own web app through the use of a Certificate Transparency-like system for DNS, though this is not currently implemented.

Finally, ipfs-sec domains are backwards-compatible. Users that don't want to install the extension will be served the same content as users that do have the extension, they just won't get the security benefits.

You can read more about ipfs-sec, including how to create an ipfs-sec website, in our blog post about end-to-end integrity.

How do I build the extension?

npm run build

Notes

  • Only the SHA-256 hashing algorithm is currently supported for content IDs.
  • Storing IPFS hashes in TXT records is supported, but the name for the TXT record must be prefixed with "_dnslink".

ipfs-ext's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.