Skip to content

fix(contrib/envoy): fix response body processing#4001

Merged
dd-mergequeue[bot] merged 1 commit into
mainfrom
flavien/proxy/fix-envoy-resbody-processing
Oct 1, 2025
Merged

fix(contrib/envoy): fix response body processing#4001
dd-mergequeue[bot] merged 1 commit into
mainfrom
flavien/proxy/fix-envoy-resbody-processing

Conversation

@e-n-0

@e-n-0 e-n-0 commented Sep 29, 2025

Copy link
Copy Markdown
Member

What does this PR do?

This PR identified a bug in the body processing of the Envoy contrib and fixed it.

Motivation

A bug was identified while investigated another issue with body processing. We discovered that the message sent to Envoy to override the processing mode to receive the body, was not properly set (Request was used instead of Response).

Unit tests testing with API Security schema have been added to validate that all bodies are received and sent to the WAF in different condition.

Reviewer's Checklist

  • Changed code has unit tests for its functionality at or near 100% coverage.
  • System-Tests covering this feature have been added and enabled with the va.b.c-dev version tag.
  • There is a benchmark for any new code, or changes to existing code.
  • If this interacts with the agent in a new way, a system test has been added.
  • New code is free of linting errors. You can check this by running ./scripts/lint.sh locally.
  • Add an appropriate team label so this PR gets put in the right place for the release notes.
  • Non-trivial go.mod changes, e.g. adding new modules, are reviewed by @DataDog/dd-trace-go-guild.

Unsure? Have a question? Request a review!

@github-actions github-actions Bot added the apm:ecosystem contrib/* related feature requests or bugs label Sep 29, 2025
@e-n-0 e-n-0 changed the title fix(contrib/envoy): fix body processing fix(contrib/envoy): fix response body processing Sep 29, 2025
@pr-commenter

pr-commenter Bot commented Sep 29, 2025

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2025-09-30 16:54:16

Comparing candidate commit 4c425f1 in PR branch flavien/proxy/fix-envoy-resbody-processing with baseline commit 2997dc9 in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 24 metrics, 0 unstable metrics.

@e-n-0
e-n-0 force-pushed the flavien/proxy/fix-envoy-resbody-processing branch from 9f22275 to 08a6c23 Compare September 30, 2025 16:35
@e-n-0
e-n-0 force-pushed the flavien/proxy/fix-envoy-resbody-processing branch from 08a6c23 to 4c425f1 Compare September 30, 2025 16:37
@e-n-0
e-n-0 marked this pull request as ready for review September 30, 2025 16:37
@e-n-0
e-n-0 requested a review from a team as a code owner September 30, 2025 16:37
@eliottness

Copy link
Copy Markdown
Contributor

/merge

@dd-devflow-routing-codex

dd-devflow-routing-codex Bot commented Oct 1, 2025

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2025-10-01 07:53:16 UTC ℹ️ Start processing command /merge


2025-10-01 07:53:22 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in main is approximately 18m (p90).


2025-10-01 08:07:13 UTC ℹ️ MergeQueue: This merge request was merged

@dd-mergequeue
dd-mergequeue Bot merged commit 80ce018 into main Oct 1, 2025
238 checks passed
@dd-mergequeue
dd-mergequeue Bot deleted the flavien/proxy/fix-envoy-resbody-processing branch October 1, 2025 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apm:ecosystem contrib/* related feature requests or bugs mergequeue-status: done

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants