Skip to content

CWS: thread context sharing scenario should work with appsec enabled - #7577

Open
danielmercier wants to merge 1 commit into
mainfrom
daniel.mercier/thread-context-sharing-appsec
Open

CWS: thread context sharing scenario should work with appsec enabled#7577
danielmercier wants to merge 1 commit into
mainfrom
daniel.mercier/thread-context-sharing-appsec

Conversation

@danielmercier

Copy link
Copy Markdown
Contributor

Motivation

This tests the CWS correlation end to end. This should work when only appsec is enabled.

Changes

Run the thread context sharing scenario without any custom env var, just appsec enabled.

@github-actions

Copy link
Copy Markdown
Contributor

CODEOWNERS have been resolved as:

utils/_context/_scenarios/thread_context_sharing.py                     @DataDog/system-tests-core

@danielmercier
danielmercier marked this pull request as ready for review August 25, 2026 09:59
@danielmercier
danielmercier requested a review from a team as a code owner August 25, 2026 10:00

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

ℹ️ 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".

doc=doc,
weblog_categories=[WeblogCategory.dd_trace],
appsec_enabled=False, # unrelated to this feature, keep the CWS signal clean
appsec_enabled=True,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Disable IAST in the AppSec-only scenario

This does not actually test the stated AppSec-only configuration: EndToEndScenario defaults iast_enabled to True, which causes WeblogContainer to inject DD_IAST_ENABLED=true and several related IAST variables. When this test is enabled, a tracer whose context-sharing behavior is activated or altered by IAST could pass even if enabling AppSec alone does not work, producing a misleading result. Pass iast_enabled=False alongside appsec_enabled=True to isolate the condition this scenario is intended to validate.

Useful? React with 👍 / 👎.

@danielmercier
danielmercier force-pushed the daniel.mercier/thread-context-sharing-appsec branch from c82e4b9 to 5ed7258 Compare August 25, 2026 12:14
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.

2 participants