Is this a BUG REPORT or FEATURE REQUEST? (choose one):
FEATURE REQUEST
NGINX Ingress controller version: 10.0.2
Add annotation enable-modsecurity with possible values of either true or false
Hmm, i'm not sure about this as there is much more to modsecurity that "true" or "false".
For example;
Theres far too many configuration options for modsecurity to start putting in individual annotations, when all of them can be controller with a simple configuration snippet on the ingress in question:
nginx.ingress.kubernetes.io/configuration-snippet: |
modsecurity_rules '
SecRuleEngine DetectionOnly
SecAuditEngine RelevantOnly
';
For a full list of the wide range of configuration options check this page
Closing. As @Stono mentioned you can do this kind of customizations using the configuration-snippet annotation.
Please keep in mind we cannot add annotations for all the possible configuration options
Most helpful comment
Hmm, i'm not sure about this as there is much more to modsecurity that "true" or "false".
For example;
Theres far too many configuration options for modsecurity to start putting in individual annotations, when all of them can be controller with a simple configuration snippet on the ingress in question:
For a full list of the wide range of configuration options check this page