golemfactory / yagna

An open platform and marketplace for distributed computations
GNU General Public License v3.0
408 stars 63 forks source link

[Feature Request/Discussion] Add support for hosting GMVI hashes on Skynet #2040

Open figurestudios opened 2 years ago

figurestudios commented 2 years ago

By default, gvmkit-build builds and uploads to a central server operated by Golem. This does not favor decentralization at all. But users can choose to self-host, or use public URLs using the image_url= attribute. I experimented using Skynet to host these images, and it went okay even with public portals. Skynet can briefly be explained as a decentralized file hosting network which can be accessed through portals, both public (no sign-up required) and private (sign-up, self-hosted, etc). With this, I came up with my gc__push_image repository. However it's important to keep in mind a few things here. First, since there is no native support, the provider also cannot know for sure if they're getting an image from the requestor or a malicious file from the portal. Secondly, public portals are slow, unreliable, and are generally bad. Sponsored skylinks makes providers able to download specific images from premium portals without having accounts on them, but they must be supported natively on Golem to be used.

I would be happy to hear what you think about it, and if this is something you'd like to integrate or get help to integrate.

Skynet allows:

A complete integration would require:

nieznanysprawiciel commented 2 years ago

We prefer to implement features, that are useful in general and not to any specific use case. In this example I think it would be interesting to have API token authorization in deploy and transfer commands. But wouldn't implement anything specific to skynet, unless there is really strong business need for this.

We created task for authorization, but it won't be priority yet: https://github.com/golemfactory/yagna/issues/2063