Skip to content

Use the CVE file override for Java and Python SCA tests - #8224

Draft
florentinl wants to merge 14 commits into
mainfrom
flabel/python-lambda-sca
Draft

florentinl wants to merge 14 commits into
mainfrom
flabel/python-lambda-sca

Conversation

@florentinl

@florentinl florentinl commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Description

Exercise SCA reachability with language-native synthetic advisories supplied through _DD_APPSEC_SCA_CVE_FILE, without modifying installed tracer files or Java bootstrap options.

Manifests enable all five tests for Java and Java Lambda from v1.69.0-SNAPSHOT, which includes dd-trace-java#13285, and regular Python from v4.17.0-rc1. Test activation depends on the manifests rather than SYSTEM_TESTS_DEV_MODE. Python Lambda remains gated on dd-trace-py#21366 and datadog-lambda-python#880.

Testing

All 130 related manifest, scenario and CI-selection tests pass, along with repository formatting and checks. Another 120 activation checks verify manifest resolution for supported and unsupported builds with dev mode unset, false and true.

CI on the preceding head 84680b6ab passed all five SCA tests for both Java and Java Lambda using master artifact 1.69.0-SNAPSHOT+1724636081. The final Python activation-guard removal is covered by the local checks above; end-to-end CI for that update is pending.

@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

CODEOWNERS have been resolved as:

tests/appsec/sca/java/advisories.json                                   @DataDog/asm-libraries
tests/appsec/sca/python/advisories.json                                 @DataDog/asm-libraries
utils/_context/_scenarios/_core/sca.py                                  @DataDog/system-tests-core
manifests/java.yml                                                      @DataDog/system-tests-reviewers
manifests/java_lambda.yml                                               @DataDog/system-tests-reviewers
manifests/python.yml                                                    @DataDog/system-tests-reviewers
manifests/python_lambda.yml                                             @DataDog/system-tests-reviewers
tests/appsec/test_sca_reachability.py                                   @DataDog/asm-libraries
utils/_context/_scenarios/appsec.py                                     @DataDog/system-tests-core
utils/_context/_scenarios/aws_lambda.py                                 @DataDog/system-tests-core
utils/build/docker/java/spring-boot/src/main/java/com/datadoghq/system_tests/springboot/ScaReachability.java  @DataDog/system-tests-reviewers
utils/build/docker/java_lambda/src/main/java/com/datadoghq/lambda/ScaReachability.java  @DataDog/system-tests-reviewers
utils/build/docker/python/flask/app.py                                  @DataDog/system-tests-reviewers
utils/build/docker/python/flask/app.sh                                  @DataDog/system-tests-reviewers
utils/build/docker/python/flask/uwsgi_app.sh                            @DataDog/system-tests-reviewers
utils/build/docker/python_lambda/function/handler.py                    @DataDog/system-tests-reviewers
utils/scripts/libraries_and_scenarios_rules.yml                         @DataDog/system-tests-core

@datadog-prod-us1-6

datadog-prod-us1-6 Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Pipelines  Tests

✨ Unblock PR with BitsAI

❌ Errors

Your PR has failed checks. Please review the issues below and take necessary action before merging.

🚦 15 Pipeline jobs failed

DDCI - DataDog/system-tests | K8S_LIB_INJECTION_PROFILING_ENABLED: [dd-lib-php-init-test-app, ssi/cluster-agent:7.85.0, ssi/apm-inject:latest, 3.264.0, ssi/dd-lib-php-init:latest_snapshot] — 🔧 Needs a code fix, caused by this PR

View more details · View in DDCI

DDCI - DataDog/system-tests | K8S_LIB_INJECTION_PROFILING_ENABLED: [dd-lib-php-init-test-app, ssi/cluster-agent:7.85.0, ssi/apm-inject:latest_snapshot, 3.264.0, ssi/dd-lib-php-init:latest] — 🔧 Needs a code fix, caused by this PR

View more details · View in DDCI

DDCI - DataDog/system-tests | K8S_LIB_INJECTION_PROFILING_ENABLED: [dd-lib-php-init-test-app, ssi/cluster-agent:7.85.0, ssi/apm-inject:latest_snapshot, 3.264.0, ssi/dd-lib-php-init:latest_snapshot] — 🔧 Needs a code fix, caused by this PR

View more details · View in DDCI

View all 15 failed jobs.

ℹ️ Info

No other issues found (see more)

🧪 All tests passed
❄️ No new flaky tests detected

Useful? React with 👍 / 👎

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

@florentinl florentinl changed the title Add Python Lambda SCA reachability coverage Use synthetic SCA advisories for regular and Lambda weblogs Nov 3, 2026
@florentinl florentinl changed the title Use synthetic SCA advisories for regular and Lambda weblogs Use the CVE file override for Java and Python SCA tests Nov 6, 2026
@florentinl
florentinl force-pushed the flabel/python-lambda-sca branch from d247d83 to fedcecf Compare November 6, 2026 10:17
gh-worker-dd-mergequeue-cf854d Bot pushed a commit to DataDog/dd-trace-py that referenced this pull request Nov 9, 2026
## Description

Enable SCA reachability in AWS Lambda. Requires the [Lambda startup change](DataDog/datadog-lambda-python#880); [system-tests coverage](DataDog/system-tests#8224) is separate.

## Testing

127 SCA tests, 12 regular/Lambda Flask telemetry cases, and five Lambda reachability checks pass on Colima. The Lambda reachability case fails with the old exclusion restored. Lint passes.

## Risks

Lambda cold-start overhead is unmeasured.


Co-authored-by: florentin.labelle <florentin.labelle@datadoghq.com>

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