Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serve Trustless IPFS HTTP Gateway API via libp2p (experimental) #10049

Closed
aschmahmann opened this issue Aug 3, 2023 · 1 comment · Fixed by #10108
Closed

Serve Trustless IPFS HTTP Gateway API via libp2p (experimental) #10049

aschmahmann opened this issue Aug 3, 2023 · 1 comment · Fixed by #10108
Labels
kind/feature A new feature

Comments

@aschmahmann
Copy link
Contributor

aschmahmann commented Aug 3, 2023

Description

The trustless gateway specification allows retrieval of blocks and certain types of DAGs over HTTP.

Some tooling has already been built that leverages the trustless gateway API to move data around (https://github.com/little-bear-labs/ipfs-chromium, https://github.com/ipfs/bifrost-gateway, https://github.com/filecoin-project/lassie, helia-enabled service worker, etc.).

While some of these tools use HTTP itself, it would also be nice if they could use the same semantics but without the requirements of CA certs (+ domain names), public IP addresses, etc. To enable this we can use HTTP over libp2p.

This proposal is to start by enabling an optional server for Trustless Gateway over libp2p, and future issues may tackle support for client support as well.

The relevant pieces are:

  • Use the relevant HTTP over libp2p specs and go-libp2p implementation (e.g. .well-known support, etc.)
  • Add an (experimental) flag to enable support to enable support for the protocol
    • Note: check for any conflicts with the Experimental.P2pHttpProxy feature
    • Note: ensure the trustless gateway exposed this way runs with Fetch disabled Gateway.NoFetch=true (only return blocks that are in local repo and 5XX (502?) for the rest?)
@aschmahmann aschmahmann added the kind/feature A new feature label Aug 3, 2023
@BigLep BigLep moved this to 🥞 Todo in IPFS Shipyard Team Aug 6, 2023
@lidel lidel moved this to In Progress in @lidel's IPFS wishlist Aug 22, 2023
@BigLep
Copy link
Contributor

BigLep commented Aug 29, 2023

2023-08-29 conversation on testing this:
We need a bridge from HTTP/1.1 that passes it to libp2p stream layer.
We'll be running conformance a second time in trustless mode against this proxy port.

@BigLep BigLep changed the title Serve Trustless IPFS HTTP Gateway API via libp2p Serve Trustless IPFS HTTP Gateway API via libp2p (experimental) Sep 7, 2023
@github-project-automation github-project-automation bot moved this from 🥞 Todo to 🎉 Done in IPFS Shipyard Team Sep 20, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in @lidel's IPFS wishlist Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature A new feature
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants