Repository navigation
Verify IAST payload carriers across classic and standalone smoke scenarios - #8524
florentinl wants to merge 6 commits into
Conversation
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. |
|
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 40755b11a7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
🎉 All green!🧪 All tests passed 🔗 Commit SHA: ccfe594 | Docs | View more details | Give us feedback! |
f483c05 to
f315b1e
Compare
…cenarios Share the request-correlated report, retention and stack checks between SECURITY_SMOKE, both APM standalone configurations and IAST_STANDALONE. Check sink-specific SDK telemetry at the same intake. Keep the assertions independent of transport so the OTLP smoke suite can reuse them later.
40755b1 to
ef063df
Compare
Keep the filesystem operation observable on every request, but accept an existing directory instead of returning HTTP 500. Continue to raise for an existing non-directory or other filesystem errors; leave the smoke assertions and manifests unchanged.
The v4.7.0-rc1 gate was copied from Test_IastStandalone_UpstreamPropagation_V2, where it only marked the dev version at the time a flask weblog flakiness was fixed by a gevent bump (#6567). Every run now uses the fixed weblog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Telemetry metrics carry no request or span ID, and other smoke requests such as /rasp/lfi reach the same path traversal sink. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only the path finding for the submitted source has to link to it, so an unrelated path finding on the request no longer fails the test. Reject stacks whose frames were emptied in conversion, and require the executed.sink series to be a count. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What this tests
Check that an IAST finding survives native trace export and Agent conversion all the way to backend intake.
BaseIastSmokeTestssends one request using the weblog’s own system-tests directory. On the span for that request, it checks retention (USER_KEEP),_dd.iast.enabled, every structured/JSON IAST report against the existing schema, the link from evidence to the submitted source, and the_dd.stackframes for each referenced stack ID. At telemetry intake it also requires a positiveiast.executed.sinkcount tagged for the corresponding sink.The same base test runs in
SECURITY_SMOKE,APPSEC_APM_STANDALONE,APPSEC_STANDALONE_APM_STANDALONE, andIAST_STANDALONE. Existing SDK/weblog support gates stay in manifests. No transport or scenario configuration changes are needed. This PR is based onmain, independent of #8573; wiring the shared check into OTLP smoke is a follow-up after that PR merges.Validation
django-poc, ddtrace 4.17.2). The shared Django fixture still exercises the filesystem operation on every request and returns HTTP 200 when the target directory already exists; a regular-file collision still raises. The smoke test keeps its HTTP 200 and intake assertions.SECURITY_SMOKEalso passed on Python (Flask,django-py3.13,python3.12), .NET (poc), and Node.js (Express 5). Other SDK/scenario combinations were not rerun locally../run.sh TEST_THE_TEST tests/test_the_test/test_manifest.py tests/test_the_test/test_scenarios_declaration.py: 35 passed../format.shandgit diff --checkpassed.Jira: APPSEC-71884