-
Notifications
You must be signed in to change notification settings - Fork 325
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
Option to redirect IPFS-like paths to public IPFS gataway #639
Comments
Error recovery is a valid use case for having this type of redirect, I created #640 for tracking that separately, thank you for the idea! @lockedshadow Was that the only reason you proposed this feature? If not, I'd appreciate some additional use cases. Right now I am not sure if we want to redirect everything to a single public gateway by default when user has no local IPFS node, as it removes value added by having a federation of multiple public gateways hosted by different orgs and re-centralizes entire endeavor. |
@lidel You're right, is not the only reason. Some other reasons is...
Of course, redirect everything to a single public gateway shouldn't be enabled by default — exactly by reasons that you mentioned. But option to enable redirect would be useful in cases listed above. (Perhaps it also makes sense to put a link to public gateway checker to the addon settings?) |
Thanks! Some notes below.
Yeah, gateway operator has the power to return something else and without hashing the payload (the exact same way CID was generated) user is unable to tell anything mailicious happened. HTTP Gateway Validator is tracked in #593 but it won't work on Chromium any time soon (missing APIs), so "always redirecting to a trusted public gateway" could be the next best thing security-wise.
Ok this makes sense, especially bookmarks etc. UX is painful, but it is possible get this type of redirect working today, you just need to follow instructions from #588 We will make this easier to set up as a part of mew UI for Backend Control: #491 |
Thank you for clarification! Perhaps I should have read the whole of issues more carefully...
Security reasons is also very significant (and should be treated as another reason), but this reason is not even about security, but about... initial experience of curious users who are trying IPFS at first time. For those who are accustomed to current state of web, concept of "content addressing" (which may be considered as one of fundamental conception of IPFS) may not be very clear. Therefore, it's may be important for those users to make sure yourself that physically location is really doesn't matter in IPFS — by loading the same CID from various public gateways with help of IPFS Companion. In other words, this particular reason is not about everyday use, but about... initiation of new users. Seems like it also makes sense during transition period... |
Update: IPFS Companion will now recover on HTTP and network errors (#640), it is enabled by default: What remains to be done is a better UI that enables user to redirect to a public gateway of their choice (instead of local one). |
Closing this issue due to "Default Public Gateway" and "Recover Failed HTTP Requests" settings in Companion taking care of a lot of this user story. Let's open more specific issues for any other efforts as needed. Thanks! |
I consider IPFS Companion not only as good companion for those who already running an IPFS node, but also as companion for those who only "taste" what IPFS is. It should show to curious users a bit of permanence that IPFS is provided, isn't it?
Currently, some of redirection that IPFS Companion performed is...
ipfs://
,ipns://
,dweb:/ipfs
anddweb:/ipns
to local or public gateway (experimentally).But not IPFS-like paths to public IPFS gateway, even if local gateway is disabled. So it would be great to also have an option to redirect IPFS-like paths to public gateway, if local gateway isn't enabled. If someone has copied a link to some public gateway, and after that this gateway disappeared, then this link as a whole becomes broken, isn't it? But with this option that link could be seamlessly redirected to operating gateway, even for those who not (yet?) running it's own node.
The text was updated successfully, but these errors were encountered: