Skip to content

skip passing waf addresses when the value is empty#3188

Merged
GustavoCaso merged 2 commits into
masterfrom
asm-skip-empty-waf-addresses
Oct 6, 2023
Merged

skip passing waf addresses when the value is empty#3188
GustavoCaso merged 2 commits into
masterfrom
asm-skip-empty-waf-addresses

Conversation

@GustavoCaso

@GustavoCaso GustavoCaso commented Oct 5, 2023

Copy link
Copy Markdown
Contributor

What does this PR do?

We remove empty and nil WAF Addresses before sending it to the WAF to be processed.

Motivation:

Additional Notes:

How to test the change?

For Datadog employees:

  • If this PR touches code that signs or publishes builds or packages, or handles
    credentials of any kind, I've requested a review from @DataDog/security-design-and-guidance.
  • This PR doesn't touch any of that.

Unsure? Have a question? Request a review!

@github-actions github-actions Bot added appsec Application Security monitoring product integrations Involves tracing integrations labels Oct 5, 2023
@GustavoCaso
GustavoCaso force-pushed the asm-skip-empty-waf-addresses branch 2 times, most recently from 75c44b0 to 8bcc903 Compare October 6, 2023 09:00
@GustavoCaso
GustavoCaso marked this pull request as ready for review October 6, 2023 09:01
@GustavoCaso
GustavoCaso requested review from a team as code owners October 6, 2023 09:01
@GustavoCaso
GustavoCaso force-pushed the asm-skip-empty-waf-addresses branch from 8bcc903 to b76da9f Compare October 6, 2023 09:05
@GustavoCaso GustavoCaso added this to the 1.15.0 milestone Oct 6, 2023

@lloeki lloeki 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.

LGTM as a solution, although as is the code seems to have some holes.

Comment thread lib/datadog/appsec/processor.rb Outdated
Comment thread lib/datadog/appsec/processor.rb Outdated
Comment thread lib/datadog/appsec/processor.rb Outdated
@GustavoCaso
GustavoCaso force-pushed the asm-skip-empty-waf-addresses branch from 6a85420 to fcca011 Compare October 6, 2023 14:18
@github-actions github-actions Bot removed the integrations Involves tracing integrations label Oct 6, 2023
@GustavoCaso
GustavoCaso merged commit 5e27525 into master Oct 6, 2023
@GustavoCaso
GustavoCaso deleted the asm-skip-empty-waf-addresses branch October 6, 2023 14:49
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