DokiDoki1103 commented on issue #2044:
URL:
https://github.com/apache/apisix-ingress-controller/issues/2044#issuecomment-1815695623
```
{
"id": "getting-started-waf",
"uri": "/anything/*",
"plugins": {
"coraza-filter": {
"conf": {
"directives_map": {
"default": [
"SecDebugLogLevel 9",
"SecRuleEngine On",
"SecDefaultAction
phase:1,log,auditlog,deny,status:403",
"SecDefaultAction
phase:2,log,auditlog,deny,status:403",
"Include @crs-setup-demo-conf",
"Include
@owasp_crs/REQUEST-913-SCANNER-DETECTION.conf",
"Include @owasp_crs/REQUEST-921-PROTOCOL-ATTACK.conf"
]
},
"default_directives": "default"
}
}
},
"upstream": {
"type": "roundrobin",
"nodes": {
"httpbin.org:80": 1
}
}
}
```
```
phase: phase:1,log,auditlog,pass
2023/11/17 03:31:22 [error] 237#237: failed to configure plugin context 14,
rc: 0
2023/11/17 03:31:22 [error] 237#237: *4015032 [lua] wasm.lua:115:
phase_func(): coraza-filter: failed to fetch wasm plugin ctx: failed to run
proxy_on_configure, client: 124.42.51.91, server: _, request: "POST
/anything/unix HTTP/1.1", host: "lyck6.cn"
124.42.51.91 - - [17/Nov/2023:03:31:21 +0000] 120.26.1.38:9180 "PUT
/apisix/admin/routes/ HTTP/1.1" 200 696 0.004 "-" "PostmanRuntime/7.34.0" - - -
"http://120.26.1.38:9180"
124.42.51.91 - - [17/Nov/2023:03:31:22 +0000] lyck6.cn "POST /anything/unix
HTTP/1.1" 503 269 0.000 "-" "urlgrabber/1.0" - - - "http://lyck6.cn"
2023/11/17 03:31:29 [emerg] 237#237: Failed to parse directives: invalid WAF
config from string: failed to parse string: failed to compile the directive
"secaction": SecDefaultAction already defined for this phase:
phase:1,log,auditlog,pass
2023/11/17 03:31:29 [error] 237#237: failed to configure plugin context 14,
rc: 0
2023/11/17 03:31:29 [error] 237#237: *4015032 [lua] wasm.lua:79:
phase_func(): coraza-filter: failed to fetch wasm plugin ctx: failed to run
proxy_on_configure, client: 124.42.51.91, server: _, request: "POST
/anything/unix HTTP/1.1", host: "lyck6.cn"
2023/11/17 03:31:29 [warn] 237#237: *4015032 [lua] plugin.lua:1107:
run_plugin(): coraza-filter exits with http status code 503, client:
124.42.51.91, server: _, request: "POST /anything/unix HTTP/1.1", host:
"lyck6.cn"
2023/11/17 03:31:29 [emerg] 237#237: Failed to parse directives: invalid WAF
config from string: failed to parse string: failed to compile the directive
"secaction": SecDefaultAction already defined for this phase:
phase:1,log,auditlog,pass
2023/11/17 03:31:29 [error] 237#237: failed to configure plugin context 14,
rc: 0
2023/11/17 03:31:29 [error] 237#237: *4015032 [lua] wasm.lua:115:
phase_func(): coraza-filter: failed to fetch wasm plugin ctx: failed to run
proxy_on_configure, client: 124.42.51.91, server: _, request: "POST
/anything/unix HTTP/1.1", host: "lyck6.cn"
124.42.51.91 - - [17/Nov/2023:03:31:29 +0000] lyck6.cn "POST /anything/unix
HTTP/1.1" 503 269 0.000 "-" "PostmanRuntime/7.34.0" - - - "http://lyck6.cn"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]