-
Notifications
You must be signed in to change notification settings - Fork 380
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
Fix AppSec libddwaf actions handling after update to 1.17.0.0.0 #4173
Conversation
In version 1.17.0.0.0 libddwaf changes the format of the actions that are returned from an array of actions IDs to an array of actions objects. This means that we no longer have to look up actions in the ruleset and can just use actions that libddwaf returns.
Datadog ReportBranch report: ✅ 0 Failed, 22028 Passed, 1458 Skipped, 5m 31.88s Total Time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome 🟢
fb14384
to
315c32f
Compare
BenchmarksBenchmark execution time: 2024-11-28 16:26:35 Comparing candidate commit fb14384 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 31 metrics, 2 unstable metrics. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4173 +/- ##
==========================================
- Coverage 97.78% 97.76% -0.02%
==========================================
Files 1353 1351 -2
Lines 81861 81732 -129
Branches 4153 4146 -7
==========================================
- Hits 80044 79904 -140
- Misses 1817 1828 +11 ☔ View full report in Codecov by Sentry. |
In version 1.17.0.0.0 libddwaf changes the format of the actions that are returned from an array of actions IDs to an array of actions objects. This means that we no longer have to look up actions in the ruleset and can just use actions that libddwaf returns.
https://github.com/DataDog/libddwaf/blob/master/UPGRADING.md#action-semantics
What does this PR do?
This PR removes
AppSec::Actions
class, since we don't need to hold and lookup ruleset actions now, libddwaf does it for us. It also fixes custom action handling inDatadog::AppSec::Response
.Motivation:
Failing system tests that test blocking using custom actions:
#4171
Change log entry
None
Additional Notes:
None
How to test the change?
CI is enough (system tests have to be run from
cbeauchesne/add-system-tests-scenario
branch)