Skip to content

feat(appsec): publish response body on end invocation - #825

Merged
CarlesDD merged 9 commits into
mainfrom
ccapell/APPSEC-68818/publish-response-body-on-end-invocation
Sep 22, 2026
Merged

CarlesDD merged 9 commits into
mainfrom
ccapell/APPSEC-68818/publish-response-body-on-end-invocation

Conversation

@CarlesDD

@CarlesDD CarlesDD commented Sep 3, 2026 •

Copy link
Copy Markdown
Collaborator

What does this PR do?

Publishes the Lambda response body, headers and base64 flag on the datadog:lambda:end-invocation diagnostic channel, so the tracer can extract an API Security schema for server.response.body. This is the last missing piece of the response-body feature, request body and headers were already published.

Motivation

Closes the response-body gap in API Security for AWS Lambda

Testing Guidelines

  • npx jest src/appsec/ src/trace/: 28 suites, 516 tests, all green.
  • Verified end to end locally: built this layer and the paired dd-trace-js branch (#10138) into a real Lambda layer with the Docker/RIE harness, and ran system-tests. Test_Schema_Response_Body passes on both.

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)

APPSEC-68936

@datadog-datadog-prod-us1-2

This comment has been minimized.

@DataDog DataDog deleted a comment from chatgpt-codex-connector Bot Sep 3, 2026
@CarlesDD
CarlesDD marked this pull request as ready for review September 17, 2026 05:58
@CarlesDD
CarlesDD requested review from a team as code owners September 17, 2026 05:58
@CarlesDD
CarlesDD requested a review from lym953 September 17, 2026 05:58
Comment thread src/appsec/index.ts
@CarlesDD
CarlesDD merged commit eea3fa8 into main Sep 22, 2026
67 checks passed
@CarlesDD
CarlesDD deleted the ccapell/APPSEC-68818/publish-response-body-on-end-invocation branch September 22, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants