Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip passing waf addresses when the value is empty #3188

Merged
merged 2 commits into from
Oct 6, 2023

Conversation

GustavoCaso
Copy link
Member

@GustavoCaso GustavoCaso commented Oct 5, 2023

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
Copy link
Member

@lloeki lloeki left a comment

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.

lib/datadog/appsec/processor.rb Outdated Show resolved Hide resolved
lib/datadog/appsec/processor.rb Outdated Show resolved Hide resolved
lib/datadog/appsec/processor.rb Outdated Show resolved Hide resolved
@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
176 checks passed
@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