Okay, so
-
Okay, so
https://docs.joinmastodon.org/spec/security/
According to resources linked in the #Mastodon docs, it seems that signature validation gets the entire #ActivityPub Actor (thus the `#main-key` which the server is supposed to ignore) and then within the Actor it gets the `publicKey` property.
Soooo back to the `#main-key` nomenclature, I guess
-
Okay, so
https://docs.joinmastodon.org/spec/security/
According to resources linked in the #Mastodon docs, it seems that signature validation gets the entire #ActivityPub Actor (thus the `#main-key` which the server is supposed to ignore) and then within the Actor it gets the `publicKey` property.
Soooo back to the `#main-key` nomenclature, I guess
Implementing your own Fedi server is shit, don't do it, I can't believe I ruined the last 4 days of my life with this
-
Okay, so
https://docs.joinmastodon.org/spec/security/
According to resources linked in the #Mastodon docs, it seems that signature validation gets the entire #ActivityPub Actor (thus the `#main-key` which the server is supposed to ignore) and then within the Actor it gets the `publicKey` property.
Soooo back to the `#main-key` nomenclature, I guess
@mooooooo@qaf.men sort of! Mastodon does it that way, where if you request the
keyIdas identified in the HTTP signature, it returns the entire user object.That's what we call a "Mastodon-ism". It's not strictly right, but it is what it is. AP implementations should properly handle it if you return just the
publicKeyportion alone.For example, @evan's
tags.pubdoes this correctly. @test@tags.pub will return the full actor object, but if you query thepublicKeyPem, you get this: https://tags.pub/user/test/publickey -
> a "Mastodon-ism". It's not strictly right
actually it's not wrong, especially when/because the key is a fragment of the returned document.
you're supposed to get the document and then *find the graph node that matches the input id*.
i suspect some implementations don't recognize that they need to do this, and they just assume that the key is *always* at $.publicKey.publicKeyPem or at $.publicKeyPem. that's incorrect.
-
> a "Mastodon-ism". It's not strictly right
actually it's not wrong, especially when/because the key is a fragment of the returned document.
you're supposed to get the document and then *find the graph node that matches the input id*.
i suspect some implementations don't recognize that they need to do this, and they just assume that the key is *always* at $.publicKey.publicKeyPem or at $.publicKeyPem. that's incorrect.
-
Implementing your own Fedi server is shit, don't do it, I can't believe I ruined the last 4 days of my life with this
@mooooooo@qaf.men You can try checking my code:
https://github.com/nekromoff/mastodon-bots -
@dusoft Thank you

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login