Skip to content

feat(telemetry): report AppSec state at startup - #426

Merged
e-n-0 merged 6 commits into
masterfrom
flavien.darche/appsec-telemetry-product-state
Oct 13, 2026
Merged

e-n-0 merged 6 commits into
masterfrom
flavien.darche/appsec-telemetry-product-state

Conversation

@e-n-0

@e-n-0 e-n-0 commented Sep 2, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Register the AppSec product in app-started telemetry for WAF-enabled builds,
    with the state owned by security::Library and the nginx module version.
  • Clear the active state when AppSec is explicitly disabled.
    The default is now inactive, so AppSec waiting for remote config activation reports enabled: false.
    Later remote config changes are reported in feat(telemetry): report AppSec remote activation changes #465.

Tests

The mock agent now logs telemetry requests.
A new integration test checks products.appsec.enabled in app-started for datadog_appsec_enabled on, off, and unset (waiting for remote config).

@datadog-prod-us1-3

datadog-prod-us1-3 Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

Tests

✅ All CI checks and tests passed.

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 69.15% (-0.14%)

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

@e-n-0
e-n-0 force-pushed the flavien.darche/appsec-telemetry-product-state branch from fda30f7 to c1f1e7a Compare October 2, 2026 14:56
@e-n-0
e-n-0 marked this pull request as ready for review October 2, 2026 15:24
@e-n-0
e-n-0 requested review from a team as code owners October 2, 2026 15:25

@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: c1f1e7a7ec

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/tracing_library.cpp Resolved
Comment thread src/security/library.cpp Resolved
Comment thread src/tracing_library.cpp Resolved
@e-n-0
e-n-0 requested a review from cataphract October 5, 2026 09:38
Co-authored-by: datadog-bits <263423550+datadog-bits@users.noreply.github.com>

@xlamorlette-datadog xlamorlette-datadog left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think we need to take a decision on the remote configuration issue. If we decide to ignore it, it must be explicit…

Comment thread src/tracing_library.cpp Resolved
Comment thread src/tracing_library.cpp Resolved
Comment thread src/tracing_library.cpp Resolved
Co-authored-by: datadog-bits <263423550+datadog-bits@users.noreply.github.com>

@xlamorlette-datadog xlamorlette-datadog left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think we could add a test to check that, in the app-started telemetry message, the appsec status is correctly reported.

Please handle comments from upstream PR #465.

@e-n-0

e-n-0 commented Oct 12, 2026

Copy link
Copy Markdown
Member Author

@xlamorlette-datadog Added in 411ad02: sec_telemetry checks the app-started AppSec state for on, off and remote config. The #465 helper is now in #426 (c51fa28).

@e-n-0
e-n-0 merged commit 6ef8852 into master Oct 13, 2026
213 checks passed
@e-n-0
e-n-0 deleted the flavien.darche/appsec-telemetry-product-state branch October 13, 2026 14:44
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.

3 participants