User: generate private keys on user creation
authorHélène <pleroma-dev@helene.moe>
Fri, 26 Aug 2022 16:30:43 +0000 (18:30 +0200)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Sun, 11 Sep 2022 18:54:37 +0000 (19:54 +0100)
commit0b14f02ed20173c03dada9edcdfa55dc98cc2420
treed3b705fe15bf6c671d99c2f7fbb7276754fc2fdf
parentb6891fe190d3ae186d777ab34c4778c5f48fa18a
User: generate private keys on user creation

This fixes a race condition bug where keys could be regenerated
post-federation, causing activities and HTTP signatures from an user to
be dropped due to key differences.
lib/pleroma/signature.ex
lib/pleroma/user.ex
lib/pleroma/web/activity_pub/activity_pub_controller.ex
lib/pleroma/web/activity_pub/views/user_view.ex
lib/pleroma/web/federator.ex
lib/pleroma/web/web_finger.ex
test/pleroma/user_test.exs
test/pleroma/web/activity_pub/views/user_view_test.exs
test/support/factory.ex