Commit cff741f
committed
Fix CI test failures for file_write RASP event
- Add FILE_WRITTEN_ID to InstrumentationGateway callback-wrapping switch so
exceptions in fileWritten() callbacks are properly caught (fixes
InstrumentationGatewayTest#testThrowableBlocking)
- Change rasp-930-101 smoke test rule from lfi_detector to match_regex
operator, since lfi_detector only supports server.io.fs.file as
resource address; match_regex on server.io.fs.file_write with
path-traversal regex correctly detects ../../../etc/passwd patterns1 parent 5070900 commit cff741f
2 files changed
Lines changed: 6 additions & 3 deletions
File tree
- dd-smoke-tests/appsec/springboot/src/test/groovy/datadog/smoketest/appsec
- internal-api/src/main/java/datadog/trace/api/gateway
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
437 | | - | |
438 | | - | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
439 | 440 | | |
440 | | - | |
| 441 | + | |
441 | 442 | | |
442 | 443 | | |
443 | 444 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
447 | 448 | | |
448 | 449 | | |
449 | 450 | | |
| 451 | + | |
450 | 452 | | |
451 | 453 | | |
452 | 454 | | |
| |||
0 commit comments