@mariusor This page doesn't respond with ActivityPub object to request with AP or AS Accept header (I get HTML instead).
-
@mariusor This page doesn't respond with ActivityPub object to request with AP or AS Accept header (I get HTML instead). Is there a way to get object ID from it?
-
mariusor@metalhead.clubantwortete auf silverpill@mitra.social am zuletzt editiert von
@silverpill I'm using the mechanism Mastodon popularized.
Basically BrutaLinks is just a (mostly) dumb client on top of a server that only serves ActivityPub objects (that one is called FedBOX). It however exposes access to the underlying objects using the <link rel="alternate"> metadata.
-
silverpill@mitra.socialantwortete auf mariusor@metalhead.club am zuletzt editiert von
@mariusor Got it, thanks. The public key of the actor looks unusual. Is it Ed25519 key?
"publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEA/bFnzaLjNU/8apqKuRejNEtDS6wDmIYqd0rV7hunvDM=\n-----END PUBLIC KEY-----\n"
-
mariusor@metalhead.clubantwortete auf silverpill@mitra.social am zuletzt editiert von
@silverpill yep. Another one of those small frictions with Mastodon, that doesn't support EC keys.
-
silverpill@mitra.socialantwortete auf mariusor@metalhead.club am zuletzt editiert von
@mariusor Interesting. I'll update my server to accept PEM-encoded ed25519 keys. Do you know any other Fediverse software that supports EC keys?
I'm currently writing a FEP with a related topic: https://codeberg.org/fediverse/fep/pulls/105/files. In this proposal, a different property is used to ensure compatibility with existing services.
-
mariusor@metalhead.clubantwortete auf silverpill@mitra.social am zuletzt editiert von
> Do you know any other Fediverse software that supports EC keys?
@silverpill no, not on the top of my head. I think everyone should support it at least on the basis of much smaller size though.
And, as always when it comes to interop, crickets from the Mastodon devs: https://github.com/mastodon/mastodon/issues/21429#issuecomment-1549405785
-
silverpill@mitra.socialantwortete auf mariusor@metalhead.club am zuletzt editiert von
-
mariusor@metalhead.clubantwortete auf silverpill@mitra.social am zuletzt editiert von
@silverpill federated.id doesn't accept follows automatically. It's in my inbox.
-
mariusor@metalhead.clubantwortete auf mariusor@metalhead.club am zuletzt editiert von
@silverpill I guess this one wasn't you. The time is different.
It means your follow didn't make it to my inbox. What client/service did you sent it from?
-
silverpill@mitra.socialantwortete auf mariusor@metalhead.club am zuletzt editiert von
-
mariusor@metalhead.clubantwortete auf silverpill@mitra.social am zuletzt editiert von
@silverpill if you could provide me with a verbatim request (including the sign header) I could try to see what's wrong. The strange part is that there's nothing in the logs for that specific period, not even at the http proxy level.
-
silverpill@mitra.socialantwortete auf mariusor@metalhead.club am zuletzt editiert von
@mariusor I can't provide the full request, but I could say that it had RSA HTTP signature attached.
The inbox was https://federated.id/actors/8b740680-ccb4-4265-82e7-4ac2ca402750/inbox
And the response was201 Created
with empty body.Here is my unsigned Follow activity:
{"@context":["https://www.w3.org/ns/activitystreams","https://w3id.org/security/ v1","https://w3id.org/security/data-integrity/v1",{"MitraJcsRsaSignature2022":"mitra:MitraJcsRsaSignature2022","mitra":"http://jsonld.mitra.social#","proofPurpose":"sec:pr oofPurpose","proofValue":"sec:proofValue","sensitive":"as:sensitive","verificationMethod":"sec:verificationMethod"}],"actor":"https://mitra.social/users/silverpill","id":" https://mitra.social/objects/0188b5b0-829e-aadd-be8d-a5f484fceb34","object":"https://federated.id/actors/8b740680-ccb4-4265-82e7-4ac2ca402750","to":["https://federated.id/ actors/8b740680-ccb4-4265-82e7-4ac2ca402750"],"type":"Follow"}
-
mariusor@metalhead.clubantwortete auf silverpill@mitra.social am zuletzt editiert von
@silverpill so I did find it in storage, but something went wrong when dispatching it to the proper inbox. I'll create a test-case from it to check what happened. TY!
-
silverpill@mitra.socialantwortete auf mariusor@metalhead.club am zuletzt editiert von
@mariusor I tried it again today, now the server returns status
500 Internal Server Error
and there's a detailed error report with these messages:Can't save activity Follow to inbox jsonld: error calling MarshalJSON for type *activitypub.Actor: invalid character 'h' after object key:value pair
Any ideas what might cause that?
-
mariusor@metalhead.clubantwortete auf silverpill@mitra.social am zuletzt editiert von
@silverpill thank you for keep trying, but this past week I've been doing a lot of reshuffling of the internals. I'm not surprised some things still fail.
Could you send me a link to a pastebin with the Activity? I'll add a bug report.
-
silverpill@mitra.socialantwortete auf mariusor@metalhead.club am zuletzt editiert von
@mariusor Sure, here is my activity
HackLiberty.org PrivateBin
Visit this link to see the note. Giving the URL to anyone allows them to access the note, too.
HackLiberty.org PrivateBin (paste.hackliberty.org)
-
mariusor@metalhead.clubantwortete auf silverpill@mitra.social am zuletzt editiert von
@silverpill I added a ticket here: https://todo.sr.ht/~mariusor/go-activitypub/296
I will need to create a test-case for it, but I think I have all I need.
-
@mariusor I saw it had been closed and tried to send a Follow again to
@ild@federated.id
. This time there was no error, but I didn't receive AcceptTime: 2024-12-20T20:58:47+00:00
-
julian@community.nodebb.organtwortete an silverpill@mitra.social zuletzt editiert von
@silverpill@mitra.social @mariusor@metalhead.club apologies for butting in. I'd be interested in implementing ed25519 keys instead of RSA.
Backwards compatibility is a concern, however.