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

Qualys Event Collector #26989

Merged
merged 83 commits into from Jul 12, 2023
Merged

Qualys Event Collector #26989

merged 83 commits into from Jul 12, 2023

Conversation

daryakoval
Copy link
Contributor

Status

  • In Progress
  • Ready
  • In Hold - (Reason for hold)

Related Issues

fixes: https://jira-hq.paloaltonetworks.local/browse/CIAC-4957

Description

New Integration - Qualys Event Collector

Must have

  • Tests
  • Documentation

@daryakoval daryakoval marked this pull request as ready for review May 28, 2023 13:27
@daryakoval daryakoval requested a review from dantavori May 28, 2023 13:27
Copy link
Contributor

@dantavori dantavori left a comment

Choose a reason for hiding this comment

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

looks good 👍🏽 see my notes
we recently faced situations (in other collectors) where there have been significantly more events between each interval than the max_fetch, which caused events to arrive very late. let's ensure this is not the case in this collector (consult with a TPM or with me if needed).

Copy link
Contributor

@dantavori dantavori left a comment

Choose a reason for hiding this comment

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

very nice, see my few small notes :)

Packs/qualys/ReleaseNotes/1_3_0.md Outdated Show resolved Hide resolved
Packs/qualys/ReleaseNotes/1_3_0.md Outdated Show resolved Hide resolved
Packs/qualys/pack_metadata.json Outdated Show resolved Hide resolved

events, new_next_run = fetch_function(client, time_to_fetch, max_fetch, next_page)

updated_next_run = {previous_run_time_field: new_next_run.get(previous_run_time_field)}
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't it equivalent to:

Suggested change
updated_next_run = {previous_run_time_field: new_next_run.get(previous_run_time_field)}
updated_next_run = {previous_run_time_field: time_to_fetch}

Copy link
Contributor

Choose a reason for hiding this comment

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

also, why not just use new_next_run instead of updated_next_run? it's a bit confusing to follow

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because it is not really new, it may be old but updated.

@ShirleyDenkberg
Copy link
Contributor

@dantavori Doc review completed.

daryakoval and others added 12 commits July 10, 2023 10:51
Co-authored-by: Dan Tavori <38749041+dantavori@users.noreply.github.com>
Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>
Co-authored-by: Dan Tavori <38749041+dantavori@users.noreply.github.com>
Co-authored-by: Dan Tavori <38749041+dantavori@users.noreply.github.com>
Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>
Copy link
Contributor

@dantavori dantavori left a comment

Choose a reason for hiding this comment

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

let's wait for Meital's answer about the category, except for that - see my last documentation notes and we are good to go. great job!

@daryakoval daryakoval merged commit 7bd6e27 into master Jul 12, 2023
13 of 14 checks passed
@daryakoval daryakoval deleted the qualys-event-collector branch July 12, 2023 20:53
xsoar-bot pushed a commit to xsoar-contrib/content that referenced this pull request Aug 2, 2023
* save template to start

* still starting

* save

* save the actions logs fetch

* save start modeling rules

* save design fixes

* save code changes

* adding modeling rules

* save modeling rules

* save unit tests

* mistske dding from master

* saving last changes

* Apply suggestions from code review

Co-authored-by: Dan Tavori <38749041+dantavori@users.noreply.github.com>

* saving todo that missed

* fixes from cr

* generate readme

* save more logs

* Apply suggestions from code review

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Update Packs/qualys/Integrations/QualysEventCollector/README.md

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Update Packs/qualys/Integrations/QualysEventCollector/README.md

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* save release notes

* save docker image

* improved documentation

* removed demisto from readme

* save fix validations

* Update Packs/qualys/Integrations/QualysEventCollector/QualysEventCollector_description.md

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Update Packs/qualys/Integrations/QualysEventCollector/QualysEventCollector_description.md

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Update Packs/qualys/Integrations/QualysEventCollector/QualysEventCollector_description.md

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Update Packs/qualys/Integrations/QualysEventCollector/QualysEventCollector_description.md

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Update Packs/qualys/Integrations/QualysEventCollector/QualysEventCollector_description.md

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Update Packs/qualys/Integrations/QualysEventCollector/QualysEventCollector_description.md

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* fix unit tests

* handle last run missmatch in host detections

* Bump pack from version qualys to 1.3.0.

* save

* fix validation

* re-implementing all the fetch mechanizm

* save unit tests

* fix flake8

* add new parameters to readme

* fix pre-commit

* Apply suggestions from code review

Co-authored-by: Dan Tavori <38749041+dantavori@users.noreply.github.com>
Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Update Packs/qualys/ReleaseNotes/1_3_0.md

Co-authored-by: Dan Tavori <38749041+dantavori@users.noreply.github.com>

* Update Packs/qualys/ReleaseNotes/1_3_0.md

Co-authored-by: Dan Tavori <38749041+dantavori@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* fixes from the cr

* fixes that broke unitests from the cr

* more changes from the cr

* fixes for fetch

* save pre-commit fixes

* Update Packs/qualys/Integrations/QualysEventCollector/QualysEventCollector.yml

Co-authored-by: Dan Tavori <38749041+dantavori@users.noreply.github.com>

* last changes from the pr

* save comments

---------

Co-authored-by: Dan Tavori <38749041+dantavori@users.noreply.github.com>
Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>
Co-authored-by: Content Bot <bot@demisto.com>
xsoar-bot pushed a commit to xsoar-contrib/content that referenced this pull request Aug 2, 2023
* save template to start

* still starting

* save

* save the actions logs fetch

* save start modeling rules

* save design fixes

* save code changes

* adding modeling rules

* save modeling rules

* save unit tests

* mistske dding from master

* saving last changes

* Apply suggestions from code review

Co-authored-by: Dan Tavori <38749041+dantavori@users.noreply.github.com>

* saving todo that missed

* fixes from cr

* generate readme

* save more logs

* Apply suggestions from code review

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Update Packs/qualys/Integrations/QualysEventCollector/README.md

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Update Packs/qualys/Integrations/QualysEventCollector/README.md

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* save release notes

* save docker image

* improved documentation

* removed demisto from readme

* save fix validations

* Update Packs/qualys/Integrations/QualysEventCollector/QualysEventCollector_description.md

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Update Packs/qualys/Integrations/QualysEventCollector/QualysEventCollector_description.md

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Update Packs/qualys/Integrations/QualysEventCollector/QualysEventCollector_description.md

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Update Packs/qualys/Integrations/QualysEventCollector/QualysEventCollector_description.md

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Update Packs/qualys/Integrations/QualysEventCollector/QualysEventCollector_description.md

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Update Packs/qualys/Integrations/QualysEventCollector/QualysEventCollector_description.md

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* fix unit tests

* handle last run missmatch in host detections

* Bump pack from version qualys to 1.3.0.

* save

* fix validation

* re-implementing all the fetch mechanizm

* save unit tests

* fix flake8

* add new parameters to readme

* fix pre-commit

* Apply suggestions from code review

Co-authored-by: Dan Tavori <38749041+dantavori@users.noreply.github.com>
Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* Update Packs/qualys/ReleaseNotes/1_3_0.md

Co-authored-by: Dan Tavori <38749041+dantavori@users.noreply.github.com>

* Update Packs/qualys/ReleaseNotes/1_3_0.md

Co-authored-by: Dan Tavori <38749041+dantavori@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

* fixes from the cr

* fixes that broke unitests from the cr

* more changes from the cr

* fixes for fetch

* save pre-commit fixes

* Update Packs/qualys/Integrations/QualysEventCollector/QualysEventCollector.yml

Co-authored-by: Dan Tavori <38749041+dantavori@users.noreply.github.com>

* last changes from the pr

* save comments

---------

Co-authored-by: Dan Tavori <38749041+dantavori@users.noreply.github.com>
Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>
Co-authored-by: Content Bot <bot@demisto.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants