Repository navigation
Report effective AppSec state in app-started telemetry - #12741
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
Conversation
🟡 Java Benchmark SLOs — Performance SLO warning (near threshold)
PR vs. master results
Commit: Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion. |
d0e7445 to
f52dc02
Compare
app-started derived products.appsec.enabled from the configured activation, so the default inactive mode reported true while AppSec was not active. When AppSec never reaches AppSecSystem.setActive (remote config disabled, aborted startup) no app-product-change corrects it. Read ActiveSubsystems.APPSEC_ACTIVE instead: AppSec starts before telemetry, so the flag holds the effective state.
a18765b to
7316f0f
Compare
|
@codex review |
Codex Review SummaryThis 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. |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
There was a problem hiding this comment.
More details
Startup telemetry reflects AppSec’s effective activation state, including inactive configurations and startup failures, while preserving subsequent remote-config updates.
🤖 Bits Code Review · Commit 7316f0f
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
d281b7b
into
master
What Does This Do
TelemetryRequest.writeProducts()readsActiveSubsystems.APPSEC_ACTIVEforproducts.appsec.enabledinapp-started, instead ofgetAppSecActivation() != FULLY_DISABLED.appStartedMustIncludeActivatedProductsInfonow varies both the AppSec config and the active state, and shows that only the active state is reported (inactive+ not active ->false,inactive+ activated by RC ->true, enabled + startup failed ->false).TelemetryServiceTestpinsAPPSEC_ACTIVEtofalseper test, andTestTelemetryRouter.products()defaultsappsectofalse.Motivation
With the default
DD_APPSEC_ENABLED(inactive),app-startedreportedappsec.enabled=truewhile AppSec was not active.When remote config is enabled,
AppSecSystem.setActive(false)queues anapp-product-changethat is sent right afterapp-started. But no correction is ever sent when AppSec never reachessetActive:DD_APPSEC_ENABLEDunset (AppSec is not started at all),AbortStartupException(e.g. user rules file fails to load),In those cases
apm_tables.asm_enabledstayedtrue. AppSec starts before telemetry on the same thread (Agent.InstallDatadogTracerCallback.execute), soAPPSEC_ACTIVEalready holds the effective state whenapp-startedis built. This matches the .NET tracer and the Python fix (DataDog/dd-trace-py#20674).Additional Notes
appsec: falseat startup until remote config activates AppSec. system-testsTest_ProductsDisabledusesDD_APPSEC_ENABLED=falseand is not affected../gradlew :telemetry:test(269 tests, 0 failures),:telemetry:spotlessCheckpasses.Contributor Checklist
type:and (comp:orinst:) labels in addition to any other useful labelsclose,fix, or any linking keywords when referencing an issueUse
solvesinstead, and assign the PR milestone to the issueJira ticket: APPSEC-70505