Commit Graph
1 Commits
  • fix(job): expire stored client IPs of offline clients
    ipStaleAfterSeconds was only applied while a row was being rewritten, and
    rows are only rewritten for clients present in the current online scan. A
    client that stopped connecting therefore kept its last addresses forever
    in inbound_client_ips, and node_client_ips rows (including those of
    deleted clients) were never revisited at all. Sweep both tables every five
    minutes, dropping entries past the cutoff and deleting rows that end up
    empty. The sweep runs ahead of the fail2ban and api-mode gates so
    retention holds even on panels that collect nothing.
    
    Closes #6286