Blind key rotation and stale duration for profiles
See https://blog.dereferenced.org/the-case-for-blind-key-rotation Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -14,4 +14,10 @@ defmodule Mobilizon.Service.Workers.Background do
|
||||
Actors.perform(:delete_actor, actor)
|
||||
end
|
||||
end
|
||||
|
||||
def perform(%{"op" => "actor_key_rotation", "actor_id" => actor_id}, _job) do
|
||||
with %Actor{} = actor <- Actors.get_actor(actor_id) do
|
||||
Actors.actor_key_rotation(actor)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user