-
Notifications
You must be signed in to change notification settings - Fork 317
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
Suspicious Response Blocking #3837
Conversation
Overall package sizeSelf size: 6.64 MB Dependency sizes
🤖 This report was automatically generated by heaviest-objects-in-the-universe |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3837 +/- ##
==========================================
+ Coverage 69.19% 76.65% +7.46%
==========================================
Files 1 252 +251
Lines 198 10774 +10576
Branches 33 33
==========================================
+ Hits 137 8259 +8122
- Misses 61 2515 +2454 ☔ View full report in Codecov by Sentry. |
BenchmarksBenchmark execution time: 2024-06-10 07:56:30 Comparing candidate commit b813ff2 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 258 metrics, 8 unstable metrics. |
Co-authored-by: Ugaitz Urien <ugaitz.urien@datadoghq.com>
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.
LGTM
Co-authored-by: Igor Unanua <igor.unanua@datadoghq.com>
* add RC capability for response blocking * merge headers in writeHead() * clear implicit headers before sending blocking response * support implicit write() * support array syntax for WriteHead() * don't run request end waf if not useful * avoid double call and write after end * little polyfill for node 16 * check for subscribers early exit --------- Co-authored-by: Ugaitz Urien <ugaitz.urien@datadoghq.com> Co-authored-by: Igor Unanua <igor.unanua@datadoghq.com>
* add RC capability for response blocking * merge headers in writeHead() * clear implicit headers before sending blocking response * support implicit write() * support array syntax for WriteHead() * don't run request end waf if not useful * avoid double call and write after end * little polyfill for node 16 * check for subscribers early exit --------- Co-authored-by: Ugaitz Urien <ugaitz.urien@datadoghq.com> Co-authored-by: Igor Unanua <igor.unanua@datadoghq.com>
* add RC capability for response blocking * merge headers in writeHead() * clear implicit headers before sending blocking response * support implicit write() * support array syntax for WriteHead() * don't run request end waf if not useful * avoid double call and write after end * little polyfill for node 16 * check for subscribers early exit --------- Co-authored-by: Ugaitz Urien <ugaitz.urien@datadoghq.com> Co-authored-by: Igor Unanua <igor.unanua@datadoghq.com>
* add RC capability for response blocking * merge headers in writeHead() * clear implicit headers before sending blocking response * support implicit write() * support array syntax for WriteHead() * don't run request end waf if not useful * avoid double call and write after end * little polyfill for node 16 * check for subscribers early exit --------- Co-authored-by: Ugaitz Urien <ugaitz.urien@datadoghq.com> Co-authored-by: Igor Unanua <igor.unanua@datadoghq.com>
What does this PR do?
Allows AppSec to replace status code, headers, and body when an attack is detected in the status code or response headers.
system-tests PR: DataDog/system-tests#2105