Skip to content

Verify IAST payload carriers across classic and standalone smoke scenarios - #8524

Open
florentinl wants to merge 6 commits into
mainfrom
florentin.labelle/native-iast-smoke
Open

florentinl wants to merge 6 commits into
mainfrom
florentin.labelle/native-iast-smoke

Conversation

@florentinl

@florentinl florentinl commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

What this tests

Check that an IAST finding survives native trace export and Agent conversion all the way to backend intake. BaseIastSmokeTests sends 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.stack frames for each referenced stack ID. At telemetry intake it also requires a positive iast.executed.sink count tagged for the corresponding sink.

The same base test runs in SECURITY_SMOKE, APPSEC_APM_STANDALONE, APPSEC_STANDALONE_APM_STANDALONE, and IAST_STANDALONE. Existing SDK/weblog support gates stay in manifests. No transport or scenario configuration changes are needed. This PR is based on main, independent of #8573; wiring the shared check into OTLP smoke is a follow-up after that PR merges.

Validation

  • Live Docker: all four native scenarios passed on Java (Spring Boot) and Python (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.
  • Live Docker: SECURITY_SMOKE also 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.sh and git diff --check passed.

Jira: APPSEC-71884

@florentinl
florentinl requested review from a team as code owners November 16, 2026 14:19
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T17:18:24.679990Z ccfe594 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

CODEOWNERS have been resolved as:

docs/understand/weblogs/end-to-end_weblog.md                            @DataDog/system-tests-core
manifests/cpp_nginx.yml                                                 @DataDog/system-tests-reviewers
manifests/golang.yml                                                    @DataDog/system-tests-reviewers
manifests/java.yml                                                      @DataDog/system-tests-reviewers
manifests/nodejs.yml                                                    @DataDog/system-tests-reviewers
manifests/php.yml                                                       @DataDog/system-tests-reviewers
manifests/python.yml                                                    @DataDog/system-tests-reviewers
manifests/ruby.yml                                                      @DataDog/system-tests-reviewers
tests/appsec/smoke_tests/test_apm_standalone.py                         @DataDog/asm-libraries
tests/appsec/smoke_tests/test_security.py                               @DataDog/asm-libraries
tests/appsec/smoke_tests/utils.py                                       @DataDog/asm-libraries
utils/build/docker/python/django/app/urls.py                            @DataDog/system-tests-reviewers

@florentinl
florentinl marked this pull request as draft November 16, 2026 14:21

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread manifests/nodejs.yml Resolved
@datadog-datadog-prod-us1-2

datadog-datadog-prod-us1-2 Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Pipelines  Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: ccfe594 | Docs | View more details | Give us feedback!

@florentinl
florentinl force-pushed the florentin.labelle/native-aap-smoke branch 2 times, most recently from f483c05 to f315b1e Compare November 18, 2026 09:03
Base automatically changed from florentin.labelle/native-aap-smoke to main November 18, 2026 13:50
…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.
@florentinl
florentinl force-pushed the florentin.labelle/native-iast-smoke branch from 40755b1 to ef063df Compare November 23, 2026 09:47
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.
florentinl and others added 3 commits November 23, 2026 14:39
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>
@florentinl
florentinl marked this pull request as ready for review November 23, 2026 17:16

This branch has not been deployed

No deployments
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.

1 participant