Skip to content

fix(appsec): align downstream body analysis env var with RFC#4398

Open
RomainMuller wants to merge 1 commit intomainfrom
romain.marcadier/APPSEC-61152/fix-downstream-body-analysis-env-var
Open

fix(appsec): align downstream body analysis env var with RFC#4398
RomainMuller wants to merge 1 commit intomainfrom
romain.marcadier/APPSEC-61152/fix-downstream-body-analysis-env-var

Conversation

@RomainMuller
Copy link
Contributor

@RomainMuller RomainMuller commented Feb 6, 2026

Summary

The RFC for API Security downstream body analysis was updated to rename
DD_API_SECURITY_DOWNSTREAM_REQUEST_BODY_ANALYSIS_SAMPLE_RATE to
DD_API_SECURITY_DOWNSTREAM_BODY_ANALYSIS_SAMPLE_RATE (dropping the
REQUEST_ segment). The implementation was not updated to match, causing
system-tests to fail when setting the env var under its new name.

  • Rename env var string in EnvAPISecDownstreamRequestBodyAnalysisSampleRate constant
  • Update supported configurations registry (JSON + generated Go map)
  • Update t.Setenv calls in TestAppsecAPI10 and TestAppsecHTTP30X

Co-Authored-By: Claude Opus 4 noreply@anthropic.com

The RFC for API Security downstream body analysis was updated
to rename `DD_API_SECURITY_DOWNSTREAM_REQUEST_BODY_ANALYSIS_SAMPLE_RATE`
to `DD_API_SECURITY_DOWNSTREAM_BODY_ANALYSIS_SAMPLE_RATE` (dropping the
`REQUEST_` segment). The implementation was not updated to match, causing
system-tests to fail when setting the env var under its new name.

Rename the env var string in the constant definition, supported
configurations registry (JSON and generated Go map), and test
`t.Setenv` calls.

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
JJ-Change-Id: qktwru
@RomainMuller RomainMuller requested review from a team as code owners February 6, 2026 14:08
@github-actions github-actions bot added the apm:ecosystem contrib/* related feature requests or bugs label Feb 6, 2026
@codecov
Copy link

codecov bot commented Feb 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.19%. Comparing base (be1d0ca) to head (17e58c7).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
Files with missing lines Coverage Δ
internal/appsec/config/internal_config.go 70.87% <ø> (ø)

... and 364 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pr-commenter
Copy link

pr-commenter bot commented Feb 6, 2026

Benchmarks

Benchmark execution time: 2026-02-06 14:18:53

Comparing candidate commit 17e58c7 in PR branch romain.marcadier/APPSEC-61152/fix-downstream-body-analysis-env-var with baseline commit be1d0ca in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 73 metrics, 8 unstable metrics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apm:ecosystem contrib/* related feature requests or bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant