Add system tests for WAF Blocking Response Unique Identifier (RFC-1070)#5517
Merged
Add system tests for WAF Blocking Response Unique Identifier (RFC-1070)#5517
Conversation
Contributor
|
|
Anilm3
reviewed
Oct 16, 2025
Anilm3
reviewed
Oct 16, 2025
Anilm3
reviewed
Oct 16, 2025
ff1edb5 to
479a022
Compare
Member
Author
You are right! Refactored to use the actual block_id from the response for validation instead of normalizing to a placeholder. |
christophe-papazian
approved these changes
Oct 27, 2025
3fb784b to
fa792f1
Compare
Anilm3
approved these changes
Oct 29, 2025
christophe-papazian
approved these changes
Oct 29, 2025
7 tasks
e-n-0
added a commit
to DataDog/dd-trace-dotnet
that referenced
this pull request
Dec 9, 2025
## Summary of changes This PR: - updates the WAF to version `v1.30.0` - implements the Blocking Response Unique Identifier ([rfc](https://docs.google.com/document/d/1JJqsyxJgCKM0LqGE6Pg1ez3O-XB9bPdeejmme5Wf8jY/edit?tab=t.0)) ## Reason for change ## Implementation details - Updated the WAF - Added `SecurityResponseId` in block actions - Updated the HTML/JSON templates ([ref](https://github.com/DataDog/asm-blocked-response-template/tree/main)) ## Test coverage Unit tested: - JSON blocking responses with `security_response_id` - HTML blocking responses with `security_response_id` element - Custom redirect URLs with `security_response_id` query parameter Integration tests: - Updated all snapshots so it includes the `security_response_id` on all blocked requests - Verified that the showed blocking template correctly display the same security response id present in the security event. System tests: DataDog/system-tests#5517
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
security_response_id(UUIDv4) in all response formatssecurity_response_idsecurity_response_idelementsecurity_response_idquery parameterChanges
tests/appsec/waf/test_blocking_block_id.pytests/appsec/waf/test_blocking.pyworks with new and old template versions-Added
blocking_response_idfeature flag (feature_id=493) inutils/_features.pyWorkflow
🚀 Once your PR is reviewed and the CI green, you can merge it!
🛟 #apm-shared-testing 🛟
Reviewer checklist
[<language>], double-check that only<language>is impacted by the changebuild-XXX-imagelabel is present