umbrel-apps icon indicating copy to clipboard operation
umbrel-apps copied to clipboard

[App Request] - Mastodon (bounty offered)

Open WhiteRabbitBTC opened this issue 4 years ago • 24 comments

Would be great to see a Mastodon app available for Umbrel. I'll stake $500 USD (paid in bitcoin) to anyone who can help make this a reality.

WhiteRabbitBTC avatar Jan 18 '21 13:01 WhiteRabbitBTC

There seems to already be a docker image: https://hub.docker.com/r/tootsuite/mastodon/ this should make integration easier.

jgmontoya avatar Jan 18 '21 13:01 jgmontoya

Hi,

I will just write my 2 cents.

I like that Umbrel gets apps, so you can install all needed software to get your bitcoin node up and running. But I feel that adding application which have nothing to do with Bitcoin can bring more security issues (or at least extend attack surface), because people should keep bitcoin node secure as much as possible, mainly, if they have lightning node and channels with others.

It will start with Mastodon, then there will be Nextcloud, PixelFed, Diaspora*..

ronnicek avatar Jan 18 '21 13:01 ronnicek

then there will be Nextcloud

Actually yes, I'm planning to do that :-)

I also have a test version already ready.

AaronDewes avatar Jan 18 '21 13:01 AaronDewes

I like that Umbrel gets apps, so you can install all needed software to get your bitcoin node up and running. But I feel that adding application which have nothing to do with Bitcoin can bring more security issues (or at least extend attack surface), because people should keep bitcoin node secure as much as possible, mainly, if they have lightning node and channels with others.

I disagree, I see Umbrel as the way to get all sorts of self-hosted things integrated. Apps such as a Mastodon instance will always be optional, so if you're not comfortable with running one on the same hardware as your Bitcoin node you can always just ignore it and not install it.

jgmontoya avatar Jan 18 '21 14:01 jgmontoya

I disagree, I see Umbrel as the way to get all sorts of self-hosted things integrated. Apps such as a Mastodon instance will always be optional, so if you're not comfortable with running one on the same hardware as your Bitcoin node you can always just ignore it and not install it.

For sure I will not do it, problem is, that I know what I am doing (at least I think I know :D), but new people which have no idea what they are doing.. I am trying to protect these :-)

PS: If you want to have "self-hosted things" check YunoHost or some other alternative, which are build to do it - https://alternativeto.net/software/yunohost/about/

ronnicek avatar Jan 18 '21 14:01 ronnicek

Takes a bit longer because I have to recompile mastadon to work on the RPi, but I'm working on it

AaronDewes avatar Jan 18 '21 15:01 AaronDewes

The image is only amd64, but getting this on arm might actually be cool for ARM devices and laptops (such as the new Apple Silicon laptops which are actually arm arch) too.

nolim1t avatar Jan 18 '21 17:01 nolim1t

I think you can ask Mastodon devs to build for arm too, it can be useful for a lot of people @AaronDewes

louneskmt avatar Jan 18 '21 18:01 louneskmt

Takes a bit longer because I have to recompile mastadon to work on the RPi, but I'm working on it

QEMU doesn't work?

That's how we build a lot of the images.

nolim1t avatar Jan 19 '21 02:01 nolim1t

It does, I've got the image, it just takes a bit longer to get it working in Umbrel.

AaronDewes avatar Jan 19 '21 07:01 AaronDewes

I would see if they do it ifrst if its that trivial to do, maybe even add a PR into their repo

nolim1t avatar Jan 19 '21 07:01 nolim1t

I do not feel comfortable to have my funds on an OS instance together with Mastodon or Nextcloud. There are other things like Yunohost or even Home Assistant which are more geared toward that.

esackbauer avatar Jan 19 '21 13:01 esackbauer

I do not feel comfortable to have my funds on an OS instance together with Mastodon or Nextcloud.

There are other things like Yunohost or even Home Assistant which are more geared toward that.

As @jgmontoya said, it's totally up to you. If you don't feel comfortable with some apps, you can just ignore them. Not installed apps will never be potential security holes.

Apps such as a Mastodon instance will always be optional, so if you're not comfortable with running one on the same hardware as your Bitcoin node you can always just ignore it and not install it.

louneskmt avatar Jan 19 '21 13:01 louneskmt

But it does add a lot of dependencies, doesn't it? Nginx proxy, hardware ressources, network layout etc.etc. What happens if Nextcloud fills up your SSD and you cannot send/receive funds? There will be for sure a lot of additional issues which could be avoided.

esackbauer avatar Jan 19 '21 13:01 esackbauer

Umbrel uses a containers structure with Docker. Apps are isolated. Dependencies are installed in the app container, at the app installation.

For future apps (not sure atm), we can always add ressources limit for its container (e.g. in case of Nextcloud, limit the storage to like 200 GB).

louneskmt avatar Jan 19 '21 13:01 louneskmt

These limits or possible workarounds like another attached USB device will open up a box of pandora of new support topics and feature requests (please integrate letsencrypt, unraid etc), just saying that there will be a lot of effort needed for supporting those additional apps, which are not the core business of Umbrel. Just my 0.02 as a Solution Architect with 20 years experience ;)

esackbauer avatar Jan 19 '21 14:01 esackbauer

The burden of maintenance of such apps should be upon the app maintainers and not directly upon the Umbrel maintainers. Of course atm there is an overlap between the two but that doesn't need to be so.

jgmontoya avatar Jan 19 '21 15:01 jgmontoya

@esackbauer I would understand it when the product would be in "final" version and have solved all things from SECURITY.md :)

ronnicek avatar Jan 19 '21 15:01 ronnicek

The way I've understood, Umbrel will stick to bitcoin-related apps for now. Once it reaches a comfortable level of security, stability, etc, other apps will be considered.

louneskmt avatar Jan 19 '21 16:01 louneskmt

I would check out this implementation if you wanted something that works with the fediverse.

nolim1t avatar Jan 20 '21 09:01 nolim1t

Hey guys just wanted to chime in to clear up a few things.

Firstly @ronnicek / @esackbauer just wanted to address the security concerns you raised.

I feel that adding application which have nothing to do with Bitcoin can bring more security issues (or at least extend attack surface)

Apps in Umbrel are isolated at both the filesystem and execution level. One app can't read files from another app or execute binaries in the same context as another app. One compromised app cannot easily compromise another app. We are also working on taking this further to implement network level isolation, so one app can't even ping another app unless it has been specifically allowed access to it.

But it does add a lot of dependencies, doesn't it? Nginx proxy, hardware resources, network layout etc.etc.

The way Umbrel apps work is that they are installed on the fly at runtime, just like the app store on your phone. If you haven't installed an app on your device, none of it's code/binaries/dependencies exist on your device. You are not open to any extra attack surface if you don't install extra apps.

In terms of whether we will or will not specifically support Mastodon, we're open minded and always listening to user feedback. The generous bounty from @WhiteRabbitBTC is definitely a great signal to us that there's demand for Mastodon. However, the most commonly requested apps so far have been Dojo, Whirpool, LNDHub, mempool.space, and LNbits. So for now we want to keep the app store focused only around Bitcoin/LN apps.

lukechilds avatar Jan 20 '21 11:01 lukechilds

Can I kick this request?

With the new app store, this should be much easier, I suppose.

PMK avatar Nov 11 '21 11:11 PMK

Is this bounty still valid?

Is it a Mastodon client or a Mastodon instance?

almino avatar May 28 '23 10:05 almino

I would be using this OS if only it had a Mastodon/fediverse software working. It takes a bit to get a working Mastodon server up and running so it would be nice if this would be a thing in the new app store.

michaelachrisco avatar Mar 13 '24 17:03 michaelachrisco