-
Notifications
You must be signed in to change notification settings - Fork 4
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
Unable to configure WAF for all paths #10
Comments
Try `- Include @crs-setup.conf.example` before the `- Include
@owasp_crs/**.conf`
José Carlos Chávez
tir. 4. juni 2024 kl. 22:03 skrev Johan Björnehäll ***@***.***
…:
Hi,
I'm currently trying to configure the WAF to apply to all paths (/*) for
an app, but always seems to end up in faulty configuration, only protecting
a specific path (SecRule) or the below error message.
Configuration:
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: traefik-mw-waf
namespace: traefik
spec:
plugin:
coraza:
directives:
- SecRuleEngine On
- SecDebugLog /dev/stdout
- SecDebugLogLevel 9
- Include @owasp_crs/**.conf
- Include @crs-setup.conf.example
Results in:
traefik-87ff6ff56-cfh7k traefik 2024-06-04T19:38:09Z ERR [client "xxx.xx.xx.xxx"] Coraza: Access denied (phase 1). ModSecurity CRS is deployed without configuration! Please copy the crs-setup.conf.example template to crs-setup.conf, and include the crs-setup.conf file in your webserver configuration before includi [file ***@***.***_crs/REQUEST-901-INITIALIZATION.conf"] [line "24"] [id "901001"] [rev ""] [msg "ModSecurity CRS is deployed without configuration! Please copy the crs-setup.conf.example template to crs-setup.conf, and include the crs-setup.conf file in your webserver configuration before includi"] [data ""] [severity "critical"] [ver "OWASP_CRS/4.0.0"] [maturity "0"] [accuracy "0"] [hostname ""] [uri "/"] [unique_id "DgmnusgEbZkJtnAjpKl"] entryPointName=websecure ***@***.*** middlewareType=wasm ***@***.***
I would be grateful for some guidance with this! 🙏
—
Reply to this email directly, view it on GitHub
<#10>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXOYAXLQ3IBBSVWZQ3RPQLZFYMRXAVCNFSM6AAAAABIZGSHCWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMZTIMRXHA4TENY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Changing places on
|
@rk9qn3j try this: apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: traefik-mw-waf
namespace: traefik
spec:
plugin:
coraza:
directives:
- SecRuleEngine On
- SecDebugLog /dev/stdout
- SecDebugLogLevel 9
- Include @crs-setup.conf.example
- Include @owasp_crs/**.conf When you load |
I have tried that, tried to place |
Hi,
I'm currently trying to configure the WAF to apply to all paths (/*) for an app, but always seems to end up in faulty configuration, only protecting a specific path (SecRule) or the below error message.
Configuration:
Results in:
I would be grateful for some guidance with this! 🙏
The text was updated successfully, but these errors were encountered: