-
Notifications
You must be signed in to change notification settings - Fork 14
Add system tests for WAF Blocking Response Unique Identifier (RFC-1070) #5517
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
Conversation
|
|
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.
The Block ID is provided as part of the event / trigger, would it not be better to assert its presence use that to validate the response rather than setting the ID to a known value?
ff1edb5 to
479a022
Compare
You are right! Refactored to use the actual block_id from the response for validation instead of normalizing to a placeholder. |
3fb784b to
fa792f1
Compare
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