Requestctl rules are stacking up: we currently have 101 varnish rules, of which 68 are enabled (so, banning traffic), and a further 18 are in log-only mode.
While it makes sense that some requestctl rules stay in place long-term, I suspect most of them can be disabled. This is why we want to build a policy and also enforce it.
My initial idea for the policy is:
- Every month the DDOS response WG reviews new rules and decides which, if any, should become permanent
- Unless a rule is marked as permanent, one month after being enabled it will be set to log-matching only
- If a rule stays in log-matching only for two months, it will be disabled completely.
- Rules that are disabled since 6 months are removed (the git archive still exists)
We can of course do a first pass of the rules now, and write a script that, based on git history on the conftool2git dump, can perform automated actions to perform the remaining housekeeping.