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

Content routing hint via HTTP headers #6515

Open
Stebalien opened this issue Jul 16, 2019 · 8 comments
Open

Content routing hint via HTTP headers #6515

Stebalien opened this issue Jul 16, 2019 · 8 comments
Assignees
Labels
kind/feature A new feature topic/gateway Topic gateway

Comments

@Stebalien
Copy link
Member

Came up in #6383 (comment).

The HTTP gateway could read a (series of) IPFS-Provider: /some/multiaddr hint(s) and use them to inform content routing decisions when trying to find the content in question.

This could be useful for (d)apps that have known stable providers. IPFS would/could still look elsewhere, this would just allow dapps to provide a known-good fallback.

@Stebalien Stebalien added kind/feature A new feature help wanted Seeking public contribution on this issue labels Jul 16, 2019
@lanzafame lanzafame added the topic/gateway Topic gateway label Jul 16, 2019
@jasonzhouu
Copy link

jasonzhouu commented Jul 16, 2019

That's a really good feature, I think.
But I have a puzzle about the github issue label of "help wanted". Does it mean IPFS needs some help from the community to realize this feature?

@lanzafame
Copy link
Contributor

lanzafame commented Jul 16, 2019

@jasonzhouu It means that we would love for the community to contribute the feature and are open to it being contributed by the community.

@lidel
Copy link
Member

lidel commented Jul 19, 2019

Dapps and IPFS Companion can add HTTP Header, but regular people will copy & paste links.
Something to consider is to support both HTTP header and a hint in URL (see Proposal: Peer Hint URI scheme). To avoid clutter in address bar, hint in URL could be removed via 302 redirect.

@howjmay
Copy link

howjmay commented Mar 8, 2020

I would like to take this issue, but I wonder how could I hint the content routing decision?

@Stebalien
Copy link
Member Author

The ideal solution would be to add content routing hints to the context, then extract them inside bitswap.

However, at the moment, the entire team is heads-down trying to pull together the final changes for the go-ipfs 0.5.0 release (#6776), slated for the end of the month, and will have very limited time to review/design changes like this. Would you mind coming back and asking again in about a month (second week of April)?

@hsanjuan hsanjuan removed the help wanted Seeking public contribution on this issue label Mar 9, 2020
@hsanjuan
Copy link
Contributor

hsanjuan commented Mar 9, 2020

I removed the Help Wanted label as it seems this needs a solid design proposal (or a set of them) taking into account the discussions linked above: will it be headers? url hints? both? how will they be named? what formats are accepted for the hint? full multiaddress? just a peer id? how does this play with the idea of having magnet-links or even ipfs torrent-files?.

Closing this design or as least some actionable parts of it would be a good milestone post 0.5.0 and I think it will be a priority along further improvements to content resolution. It the meantime we continue hearing ideas and design proposals.

@dokterbob
Copy link
Contributor

This would be super beneficial for us at ipfs-search.com. We are getting All the Provider Records, but still somehow, our go-ipfs node seems to have trouble finding resources.

@bertrandfalguiere
Copy link

Another design would be to use the Alt-svc HTTP header like in Tor Browser, and possibly Brave:
ipfs/in-web-browsers#144

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature A new feature topic/gateway Topic gateway
Projects
None yet
Development

No branches or pull requests

9 participants