mirror of
https://github.com/plausible/analytics.git
synced 2024-11-30 19:37:43 +03:00
4d55c4657a
* Add daily salt rotation for user ids * Rotate salts on a cron schedule daily * Keep old salt fo 48 hours * Double write for plausible.io to test salt rotation * Rotate salts for every site
10 lines
202 B
Elixir
10 lines
202 B
Elixir
defmodule Plausible.Workers.RotateSalts do
|
|
use Plausible.Repo
|
|
use Oban.Worker, queue: :rotate_salts
|
|
|
|
@impl Oban.Worker
|
|
def perform(_args, _job) do
|
|
Plausible.Session.Salts.rotate()
|
|
end
|
|
end
|