WAF rules in a stateless environment
-
We’re running Wordfence on Kubernetes in GKE, where the WordPress file system is not persistent between deployments but recreated in the container for every release.
The problem is that the
wflogs
directory is recreated for each pod on deploy, causing Wordfence to revert to ‘learning’ mode for 7 days. As our release cycle is approximately seven days, Wordfence’s application firewall is therefore never functional unless we were to manually enable it after every deployment. As we’re currently managing approximately ~120 installations this is too cumbersome to be a real solution.A workaround using NFS persistence with
ReadWriteMany
was trialled but not adequately performant.Can you suggest a workaround for this use-case? Is there any way to persist WAF rules and configuration to a KV store such as redis? Or perhaps a Wordfence API call, or wp-cli function which can enable firewall rules in CI?
- The topic ‘WAF rules in a stateless environment’ is closed to new replies.