Skip to content

bitdefender: ensure remediation actions are correlated with their file paths#11013

Merged
efd6 merged 2 commits intoelastic:mainfrom
efd6:10900-bitdefender
Sep 10, 2024
Merged

bitdefender: ensure remediation actions are correlated with their file paths#11013
efd6 merged 2 commits intoelastic:mainfrom
efd6:10900-bitdefender

Conversation

@efd6
Copy link
Copy Markdown
Contributor

@efd6 efd6 commented Sep 5, 2024

Proposed commit message

The .filePaths, .fileSizes and .remediationActions fields are correlated arrays, so ensure that empty actions are not removed from the array to maintain their cardinality relationships.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

@efd6 efd6 added bugfix Pull request that fixes a bug issue Integration:bitdefender BitDefender (Community supported) Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations] labels Sep 5, 2024
@efd6 efd6 self-assigned this Sep 5, 2024
@efd6 efd6 force-pushed the 10900-bitdefender branch from e61451d to 7582217 Compare September 5, 2024 06:22
…e paths

The .filePaths, .fileSizes and .remediationActions are correlated arrays, so
ensure that empty actions are not removed from the array to maintain their
cardinality relationships.
@efd6 efd6 force-pushed the 10900-bitdefender branch from 7582217 to c1424e6 Compare September 5, 2024 06:28
@elasticmachine
Copy link
Copy Markdown

elasticmachine commented Sep 5, 2024

🚀 Benchmarks report

Package bitdefender 👍(1) 💚(0) 💔(2)

Expand to view
Data stream Previous EPS New EPS Diff (%) Result
push_configuration 33333.33 23809.52 -9523.81 (-28.57%) 💔
push_statistics 58823.53 38461.54 -20361.99 (-34.62%) 💔

To see the full report comment with /test benchmark fullreport

@efd6 efd6 marked this pull request as ready for review September 5, 2024 06:54
@efd6 efd6 requested a review from a team as a code owner September 5, 2024 06:54
@elasticmachine
Copy link
Copy Markdown

Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)

Copy link
Copy Markdown
Contributor

@kcreddy kcreddy left a comment

Choose a reason for hiding this comment

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

Minor clarification. Otherwise LGTM 👍🏼

}
return false;
}
ctx.bitdefender?.event?.remediationActions?.replaceAll(e -> e == "" ? "-" : e);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do you think similar change for filePaths and fileSizes is also required?

Copy link
Copy Markdown
Contributor Author

@efd6 efd6 Sep 9, 2024

Choose a reason for hiding this comment

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

I don't think so, but I will add them. The semantics are that this can be empty if there is no remediation, but the others would only be empty due to error.

@elastic-sonarqube
Copy link
Copy Markdown

@elasticmachine
Copy link
Copy Markdown

💚 Build Succeeded

History

cc @efd6

@efd6 efd6 merged commit 368710b into elastic:main Sep 10, 2024
@elasticmachine
Copy link
Copy Markdown

Package bitdefender - 2.1.1 containing this change is available at https://epr.elastic.co/search?package=bitdefender

harnish-crest-data pushed a commit to chavdaharnish/integrations that referenced this pull request Feb 4, 2025
…e paths (elastic#11013)

The .filePaths, .fileSizes and .remediationActions are correlated arrays, so
ensure that empty actions are not removed from the array to maintain their
cardinality relationships.
harnish-crest-data pushed a commit to chavdaharnish/integrations that referenced this pull request Feb 5, 2025
…e paths (elastic#11013)

The .filePaths, .fileSizes and .remediationActions are correlated arrays, so
ensure that empty actions are not removed from the array to maintain their
cardinality relationships.
@efd6 efd6 deleted the 10900-bitdefender branch February 5, 2025 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Pull request that fixes a bug issue Integration:bitdefender BitDefender (Community supported) Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants