Repository navigation
Conversation
The traffic sidecar placed in front of the target via --proxy-target needs to know which entry point, scan and discovery each request belongs to, to log and later isolate a failing endpoint. The ids arrive as event fields like traceId and, only with the opt-in --proxy-target-attribution flag and only for proxied requests, go out as curl proxy headers with HEADEROPT separate, so the target never gets them and for https they appear only on CONNECT. Ids that are not 1 to 128 characters of letters, digits, dot, underscore or dash are dropped.
A request script rebuilt the request from its own result, so it could drop or forge the attribution ids; the rebuilt request now takes them from the original and the script never sees them. The ids are opaque, so any non-empty value is sent, and the entrypoint id is renamed to entrypointId and X-Bright-Entrypoint-Id to match the platform's naming.
Checking single headers hid unexpected extra or changed ones, so each spec now compares the full headers the proxy and the target received, and the whole rebuilt request, at once.
Bright ids are 22-character base58 short UUIDs, so the specs now use ids of that shape.
A request script could read and rewrite every request option, including TLS material and the attribution ids, so it could leak or forge them. Scripts now get only what they are meant to change, and the rebuilt request keeps every other option from the original. BREAKING CHANGE: request scripts no longer receive or can change protocol, ca, pfx, passphrase, timeout, correlationIdRegex, maxContentSize, decompress or keepAlive.
Folding independent results into one synthetic object made failures harder to read, so each result the proxy, the target or the response produced is now compared whole on its own.
The file groups tests by method without nested suites, so the attribution specs now sit with the other execute tests.
Scripts now exchange only url, method, headers and body, so an encoding a script returned is no longer read: an untouched body keeps the original body and encoding, and a changed body is sent as the script wrote it. BREAKING CHANGE: a request script can no longer return an encoding to have its own body decoded; a body it changes is sent as is.
A repeater error tagged only with the trace id points at one request. Tagging it with the entrypoint, scan and discovery ids as well lets Sentry group errors by the scan or endpoint that causes them.
Narrowing what a request script sees and returns is its own change and moves to a separate pull request. This one keeps only carrying the attribution ids across the script rebuild.
Every other spec in the file starts with "should", so these follow suit.
derevnjuk
marked this pull request as ready for review
November 11, 2026 13:17
derevnjuk
enabled auto-merge (squash)
November 11, 2026 13:25
derevnjuk
commented
Nov 11, 2026
derevnjuk
marked this pull request as draft
November 13, 2026 08:52
auto-merge was automatically disabled
November 13, 2026 08:52
Pull request was converted to draft
aborovsky
approved these changes
Nov 13, 2026
This branch has not been deployed
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.
Lets the --proxy-target traffic sidecar attribute each target request to its entrypoint, scan and discovery, without the ids ever reaching the target.