by rogual on 1/10/24, 6:20 PM with 53 comments
by disruptiveink on 1/11/24, 9:50 AM
It feels like the author has their own preconceived notions about how systems ought to be "isolated"[1], regardless of the use case, keeps fighting with their half-baked networking implementation and then denounces everything, ranging from HTTPS[2] to now ActivityPub as "broken".
by jefftk on 1/11/24, 12:10 PM
[1] https://developer.mozilla.org/en-US/docs/Web/Security/Secure...
[2] https://developer.mozilla.org/en-US/docs/Web/Security/Secure...
by jeroenhd on 1/11/24, 10:15 AM
As for the HTTPS thing: last time I messed with ActivityPub, I solved that problem with a Let's Encrypt wildcard certificate that I copy between hosts, but there are ActivityPub servers that will let you run in debug mode and federate over HTTP.
I think the problem with implementing ActivityPub is that the protocol looks deceptively simple at first glance, and people seem to expect it to be somewhat like RSS. However, when you actually start implementing it, you realise how many edge cases the protocol needs to deal with (and doesn't deal with).
The signature is a relatively small hurdle (it's an RSA public key encoded in base64, almost every language I know has a library to do the hard parts) but it's one of many. ActivityPub isn't a protocol you just tack onto your code in an afternoon, especially if you don't like using external libraries, even if it looks like it's just a bunch of JSON.
by saagarjha on 1/11/24, 12:04 PM
(I would not really recommend it for general use, unfortunately, since it's a pile of C that's not really all that secure. But as a publicity stunt we run @ish@ish.app inside of iSH itself, and snac turned out to be excellent for this because iSH is slow and doesn't implement all of Linux, so picking something simple and lightweight was a must.)
by splitbrain on 1/11/24, 10:42 AM
Simplest solution is to use something like https://mastofeed.org/ which automatically posts your RSS feed to Mastodon.
Of course you can also do it yourself. Posting to an existing mastodon account is just a single HTTP call with an API key: https://docs.joinmastodon.org/methods/statuses/#create
by peter_l_downs on 1/11/24, 3:28 PM
One thing to consider would be to try to use Caddy [0], or a tool like localias [1], as a local https proxy. You would be able to run both the mastodon server and your blog software on the same computer, addressable via local-only urls like "https://blog.test" and "https://mastodon.test" and have everything work. These tools manage the certificates for you transparently and you don't need to worry about anything being exposed publicly.
I'd be curious to know why the author didn't try this, they seem to be quite knowledgeable of other web technologies so I have to assume there's a problem that I'm not seeing here.
by jraph on 1/11/24, 3:04 PM
I've had some success with mkcert [1,2] to easily create certificates trusted by browsers, I can suggest to look into this. You are your own root CA, I think it can work without an internet connection.
by thro1203123 on 1/11/24, 3:55 PM
by cobertos on 1/11/24, 10:37 AM
Some of these issues seem avoidable though? The author seems to be diving too far into the testing rabbit hole. For my workflows, I generally find holistic integration tests to be too time consuming and not worth it, for the level of fidelity I want (I'm not NASA/bug-free). Same with trying to avoid testing on prod. It might not be "clean" but for a site like this it seems like a reasonable tradeoff.
by colinsane on 1/11/24, 3:29 PM
but yes, non-local runtime dependencies in software which you thought you set up to be local-first have a real habit of sneaking in. the wildcard cert solution only masks that non-local runtime dependency, visible by disconnecting the server from the network for 90 days at which point your cert expires and it'll fail again.
by louismerlin on 1/11/24, 10:12 AM
Another gripe with the technical implementation of mastodon is the CORS headers required to access the ActivityPub API [0].
Because of this issue, an activitypub-aware frontend for mastodon has to have its own mastodon server running, which adds a whole bunch of hurdles.
by ranger207 on 1/11/24, 4:00 PM
by lxe on 1/10/24, 6:24 PM
I mean, we can all have opinions about TypeScript, but converting from TS to JS is far from a hurdle.
by mariusor on 1/11/24, 1:54 PM
I wish they would dedicate a modicum of attention of being a better Fediverse citizen now that they have people they employ.
by glitchc on 1/11/24, 12:29 PM
Sounds like a feature, not a bug. What am I missing? You could generate self-signed certificates to make life a bit easier.
by swiftcoder on 1/11/24, 4:56 PM
by gerikson on 1/11/24, 9:33 AM