Repository navigation
test(nodejs): drain outbound responses in SSRF weblogs - #8638
Merged
BridgeAR merged 2 commits intoNov 23, 2026
Merged
Conversation
Contributor
|
|
BridgeAR
marked this pull request as ready for review
November 23, 2026 10:17
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
BridgeAR
force-pushed
the
BridgeAR/2026-11-20-node-http-timeout-system-tests
branch
from
November 23, 2026 10:28
536c78c to
74fb1be
Compare
CarlesDD
approved these changes
Nov 23, 2026
CarlesDD
left a comment
Contributor
There was a problem hiding this comment.
LTMG but the same Express' changes should be applied to express4-typescript weblog too. It does not fail today because it is running on Node 18 but it will start failing as soon as it starts running on Node 19+.
The WAF can match the SSRF rule without a trace reaching the backend. The weblog replies at headers without reading the outbound body, so Node.js does not emit the response end event. Drain the body so the HTTP span can finish without relying on an idle timeout.
The TypeScript weblog replies at headers and leaves the outbound body unread. Node.js does not emit the response end event, so the tracer cannot finish the HTTP span. Keep the weblog reply at headers.
BridgeAR
force-pushed
the
BridgeAR/2026-11-20-node-http-timeout-system-tests
branch
from
November 23, 2026 16:33
74fb1be to
95c643e
Compare
Member
Author
|
@CarlesDD addressed. That was the only change, so going to merge |
BridgeAR
enabled auto-merge (squash)
November 23, 2026 16:43
BridgeAR
deleted the
BridgeAR/2026-11-20-node-http-timeout-system-tests
branch
November 23, 2026 16:53
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.
The Node.js weblogs replied at headers and left the outbound response body unread. Node did not emit
end, so the standalone AppSec smoke test could match the SSRF rule without exporting its trace once the tracer stopped treating idle timeouts as completion.Drain the outbound body in Express, Fastify, and Next.js without changing when the weblog replies. Refresh the affected base-image locks.
Companion to DataDog/dd-trace-js#11352.