Add Signed Fetch Statistics (#312)
author@luna@f.l4.pm <akkoma@l4.pm>
Sat, 26 Nov 2022 19:22:56 +0000 (19:22 +0000)
committerfloatingghost <hannah@coffee-and-dreams.uk>
Sat, 26 Nov 2022 19:22:56 +0000 (19:22 +0000)
commita90c45b7e92ef5fb77e16bd103894e58cd4e17c6
tree344faa5d0aefffef3619e389b8bfdbdddf194d8c
parentec1d903f2ee1a65ae539c3258b4406e81ca73055
Add Signed Fetch Statistics (#312)

Close #304.

Notes:
 - This patch was made on top of Pleroma develop, so I created a separate cachex worker for request signature actions, instead of Akkoma's instance cache. If that is a merge blocker, I can attempt to move logic around for that.
 - Regarding the `has_request_signatures: true -> false` state transition: I think that is a higher level thing (resetting instance state on new instance actor key) which is separate from the changes relevant to this one.

Co-authored-by: Luna <git@l4.pm>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/312
Co-authored-by: @luna@f.l4.pm <akkoma@l4.pm>
Co-committed-by: @luna@f.l4.pm <akkoma@l4.pm>
lib/pleroma/application.ex
lib/pleroma/instances.ex
lib/pleroma/instances/instance.ex
lib/pleroma/web/plugs/http_signature_plug.ex
priv/repo/migrations/20221123221956_add_has_request_signatures.exs [new file with mode: 0644]
test/pleroma/instances_test.exs
test/pleroma/web/plugs/http_signature_plug_test.exs