-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What the best way to update CRS and reload spoa ? #36
Comments
i've thinked to use git-sync and use the change hook to force reload, but how to force reload on spoa ? |
From what I know, all requests are sent to modsecurity and have a timeout to reply otherwise are allowed by default. This means you probably don’t need to reload SPOA as nothing changes in there. |
but the CRS are loaded at start of mod_sercurity sopa ?! |
Yes. Hot reload was added to modsecurity on 3.1.1 here, this project uses v2x so you need to restart/kill the container to reload it. I use this with a custom helm chart that adds checksum annotations for the config, so whenever the rules change all the modsecurity pods are automatically replaced by new ones on a deployment rollout. On this setup modsecurity is a Sidecar for haproxy so all the haproxies are also recycled along with it. If you configure pod disruption budgets and deployment rollout thresholds you shouldn’t have any downtime on update. |
ok mod_security himself had the posibility to reload in v3 ! |
If you manage to make modsecurity v3 working you can submit a PR. In theory that should work. |
there a way to update CRS and reload spoa without impact on haproxy using it ?
The text was updated successfully, but these errors were encountered: