フォロー

@Sharkey what can I do if suddenly my instance's toot signing breaks?

I'm not sure I understand; what are you trying to achieve, what do you expect should happen, what happens instead?

@dakkar I've updated to the latest Sharkey version, after which it seems that messages sent from my instance are no longer accepted by remote instances, the error they receive is as follows:

`WARN 1 [queue inbox] failed(UnrecoverableError: skip: http-signature verification failed and no LD-Signature. keyId=

uh… that's very surprising, but it may also be not just your instance
let me check a few things

ok, my instance can talk to shonk.social without problems, so it's not "all sharkeys are broken"

could you run this:

select "publicKey" from "user_keypair" where "userId"='8zr4l1k0do';
and send me the output? it's your public key, so nothing secret. We may switch to DM anyway to avoid spamming our followers' timelines, though

for the people watching at home: something in borg.social (probably CloudFlare) was modifying the body of outbound POST requests, transforming "content":"…" into "content":"…"

when Sharkey received such a request, it failed to parse the body as JSON (because it's not well-formed), so it kept the body as a string, and when the signature verification code checked whether the
.actor field of the activity matched the signature's author, failed because the activity string does not have a .actor field…

that was quite painful to diagnose!

Yes, cloudflare caching seems to have caused the problem. (don't ask me why, I don't understand why)

maybe some kind of xss protection?

is your modsecurity ruleset available somewhere?

modsecurity was turned off, so it wasn't relevant. My ruleset is the default+owasp plus some really nasty hacks to turn certain rules off because that was easier than finding out how to escape it correctly. It's now turned off completely because there's too many edge-cases surrounding the Accept header (it's a nasty 20+ lines regex)

> modsecurity was turned off, so it wasn't relevant.
Yeah, i got that. I just remembered your ranting about that regex, and was wondering whether you ever go that part to work
> plus some really nasty hacks
I see

On that note, how did your Postgres tuning go, did you have any further problems?

the performance remains crappy even after the tuning, sadly :(

ログインして会話に参加
Fedibird

様々な目的に使える、日本の汎用マストドンサーバーです。安定した利用環境と、多数の独自機能を提供しています。