@phnt That's unrelated because the AP ID and nickname would stay the same, just the RSA key would change.
I found that Mastodon has a re-roll function where it updates each actor with a new key and then signs an Update activity for each one using the old key. That should work.
Then there is really no downside to all actors having the same key. Gigglebytes of storage space would be freed across every server
@alex Patching in what way? Making the keys same for everyone? Haven't really dug into how they work in Pleroma, but I wouldn't be surprised if different keys for already known users is the main reason for this: https://git.pleroma.social/pleroma/pleroma/-/issues/3227
@phnt@alex I made a change not long ago that fixes it so if someone's key changes (wiped and reinstalled instance, perhaps) Pleroma will be able to fetch the new key and recover
I assume it was originally under an ambitious idea to allow users to have control over their identity by cryptography, but implemented in such a half-baked way that was conceptually flawed, to the point where users cannot export their keys for risk of the entire server: https://github.com/mastodon/mastodon/discussions/22315#discussioncomment-4423581
@silverpill Users on Mostr already have keys. On Rebased it's still worth considering since RSA sucks anyway, FEP-ef61 should have new EC keys generated for all users.
If you do rotate the keys to have all users be the same public key, make sure you list both the new and old key in the Update (new key first, which gets stored; old key 2nd/last, which gets discarded), as that's very specifically how the key rotation with Mastodon works (as I also noticed per: https://arcanican.is/excerpts/cve-2024-23832/ )
@arcanicanis I didn't actually publish any Update activities yet, just hardcoded all users to the new (shared) key. Pleroma refetches the actor when the sig is wrong, so federation is already restored here. If there are long term issues with other software I'll write a script to send Update activities. I think they just need to be signed with the old key.