fix(quick-261119-kj8): sweep the JWT blacklist from a scheduled user:jwt-blacklist-sweep command

Boot started a ticker goroutine inside lagoon.OnDatabase that nothing
stopped, so every booting process (serve, each console command, each test
boot) leaked one and swept the blacklist once per process. The sweep is
now the console command user:jwt-blacklist-sweep, which the conga
scheduler runs on the job worker every
golem15.user.jwt.blacklist_sweep_interval (default 10m, 0 for none), once
per period across instances. An interval the scheduler cannot run
(unparsable, negative, under 1s, not dividing 24h) now fails boot.
This commit is contained in:
Jakub Zych
2026-11-19 15:06:29 +01:00
parent 6ec4c85c48
commit bc5f4f7260
9 changed files with 486 additions and 102 deletions

View File

@@ -4,6 +4,7 @@ jwt:
refresh_ttl: 20160
blacklist_grace: 0
leeway: 0
# 0 schedules no sweep; any other value must divide 24h (1m, 10m, 1h).
blacklist_sweep_interval: 10m
# On: POST /login, /register (when it signs the account in) and
# /activate-by-code set the HttpOnly session cookie from auth.cookie.* and