Update Asm Blocked Response by rithikanarayan · Pull Request #681 · DataDog/datadog-lambda-python
What does this PR do?
Updates the asm function get_asm_blocked_response to create a Block_config (from ddtrace.appsec._utils) and pass in the block id as the security_response_id argument to the _get_blocked_template function.
Motivation
dd-trace-py recently updated the function signature of ddtrace.internal.utils.http._get_blocked_template to have an additional argument. We need to update the use of this function in datadog_lambda/asm.py.
Testing Guidelines
CI
Additional Notes
Types of Changes
- Bug fix
- New feature
- Breaking change
- Misc (docs, refactoring, dependency upgrade, etc.)
Check all that apply
- This PR's description is comprehensive
- This PR contains breaking changes that are documented in the description
- This PR introduces new APIs or parameters that are documented and unlikely to change in the foreseeable future
- This PR impacts documentation, and it has been updated (or a ticket has been logged)
- This PR's changes are covered by the automated tests
- This PR collects user input/sensitive content into Datadog
- This PR passes the integration tests (ask a Datadog member to run the tests)