gloo icon indicating copy to clipboard operation
gloo copied to clipboard

Enable Gloo/Envoy to dynamically load WAF/mod_security rules from file mounted into pod

Open bdecoste opened this issue 4 years ago • 5 comments

Is your feature request related to a problem? Please describe. Need to be able to dynamically load large mod_security rule files into Gloo/Envoy without requiring a restart. Do not want to rely on CRDs due to size concerns and format of generated rules (e.g. trustwave).

Describe the solution you'd like Possibly mount a native rules file into Gloo/Envoy pod to drive mod_security config.

bdecoste avatar Jul 14 '20 17:07 bdecoste

We are still facing this issue. We use k8s configmaps as recommended by gloo enterprise, but the modsecurity rules are not getting picked up gloo-ee proxy whenever changes are made to the configmap.

PankajMoolrajani avatar Jun 09 '22 17:06 PankajMoolrajani

@PankajMoolrajani I moved this into priority list

chrisgaun avatar Jun 17 '22 17:06 chrisgaun

@PankajMoolrajani can you help me better understand the request?

"We use k8s configmaps as recommended by gloo enterprise" - can you point me to the documentation you are using for my reference

I understand the ask as: When you modify your ModSecurity rule files specified in your VS or Gateway you want these changes to your file to be automatically picked up by envoy.

ianmacclancy avatar Sep 07 '22 13:09 ianmacclancy

Yes that's the ask. Like any other config changes to VS or Gateway, these rules even though externalized in a config file should get picked up automatically.

PankajMoolrajani avatar Sep 13 '22 11:09 PankajMoolrajani

Okay, I am working on API changes to separate configmap from file input as we can pick up changes from configmap dynamically. For now if you need changes picked up you can version the filename to indicate that there has been a change to the file content. That will be picked up.

ianmacclancy avatar Sep 16 '22 14:09 ianmacclancy

@PankajMoolrajani - Im releasing the update in the latest 1.13.x, what minor version are you on? I can start backports if you need it in earlier minors.

ianmacclancy avatar Nov 01 '22 20:11 ianmacclancy

Released to 1.13.0-beta9 - closing with this release

ianmacclancy avatar Nov 07 '22 19:11 ianmacclancy

@ianmacclancy i will check on what version we have and will update u here.

PankajMoolrajani avatar Nov 08 '22 03:11 PankajMoolrajani