Skip to content

Fix handling of ASM_DD config when ruleset name changes#5970

Merged
y9v merged 4 commits into
masterfrom
appsec-fix-rc-delete-for-asm-dd
Jul 1, 2026
Merged

Fix handling of ASM_DD config when ruleset name changes#5970
y9v merged 4 commits into
masterfrom
appsec-fix-rc-delete-for-asm-dd

Conversation

@y9v

@y9v y9v commented Jun 30, 2026

Copy link
Copy Markdown
Member

What does this PR do?
The Remote Configuration received in AppSec needs to handle deletes before inserts and updates - this prevents errors such as "duplicated rule", since old configs are deleted before new ones are applied.

Motivation:
There were lots of suspicious telemetry errors about duplicated rules in the config, when Remote Config was applied for AppSec.

Change log entry
Yes. AppSec: Fix remote configuration errors when the config name changes.

Additional Notes:
None.

How to test the change?
CI.

@y9v y9v self-assigned this Jun 30, 2026
@y9v
y9v requested review from a team as code owners June 30, 2026 12:18
@dd-octo-sts dd-octo-sts Bot added the appsec Application Security monitoring product label Jun 30, 2026
@dd-octo-sts

dd-octo-sts Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Typing analysis

This PR does not change typing compared to the base branch.

@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: 11edbe787c

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/datadog/appsec/security_engine/engine.rb Outdated

@Strech Strech left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I have few minor suggestions. Thanks for the fix 👍🏼

Comment thread spec/datadog/appsec/security_engine/engine_spec.rb Outdated
Comment thread spec/datadog/appsec/security_engine/engine_spec.rb Outdated
Comment thread lib/datadog/appsec/security_engine/engine.rb Outdated
@datadog-prod-us1-4

datadog-prod-us1-4 Bot commented Jun 30, 2026

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 0.00%
Overall Coverage: 90.02% (-0.03%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: c3e3cca | Docs | Datadog PR Page | Give us feedback!

@y9v
y9v force-pushed the appsec-fix-rc-delete-for-asm-dd branch from 11edbe7 to 7852913 Compare June 30, 2026 19:18

@Strech Strech left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That approach is way cleaner! Thanks for taking care ❤️

Comment thread spec/datadog/appsec/remote_spec.rb
@y9v
y9v merged commit e3f414b into master Jul 1, 2026
584 checks passed
@y9v
y9v deleted the appsec-fix-rc-delete-for-asm-dd branch July 1, 2026 12:51
@dd-octo-sts dd-octo-sts Bot added this to the 2.37.0 milestone Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

appsec Application Security monitoring product

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants