Skip to content

[ASM] - Expander - Update Cortex ASM - Service Ownership playbook #26334

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

Conversation

BigEasyJ
Copy link
Contributor

@BigEasyJ BigEasyJ commented May 5, 2023

Contributing to Cortex XSOAR Content

Make sure to register your contribution by filling the contribution registration form

The Pull Request will be reviewed only after the contribution registration form is filled.

Status

  • In Progress
  • Ready
  • In Hold - Reviewing with @kball-pa

Related Issues

fixes: EXPANDR-3830 to address #25927

Description

  • Remove the service owner field change related to service accounts in GCP enrichment playbook.
  • Remove the service accounts look up in Service Ownership playbook.
  • Fix an issue where GCP project is not found.
  • Update the Cortex ASM - Service Ownership playbook to check for GCP as an external service before completing GCP related tasks for ranking users.

Screenshots

Cortex_ASM_-_Service_Ownership_updated_Wed_May_10_2023

Cortex_ASM_-_GCP_Enrichment_ACES-2371_Fri_May_05_2023

Minimum version of Cortex XSOAR

  • 6.0.0
  • 6.1.0
  • 6.2.0
  • 6.5.0

Does it break backward compatibility?

  • Yes
    • Further details:
  • No

Must have

  • Tests
  • Documentation

- Fixed an issue where GCP project is not found.
- Updated the Cortex ASM - Service Ownership playbook to check for GCP as an external service before completing GCP related tasks for ranking users.
@BigEasyJ BigEasyJ changed the title Update Cortex ASM - Service Ownership playbook [ASM] - Expander - Update Cortex ASM - Service Ownership playbook May 5, 2023
@BigEasyJ
Copy link
Contributor Author

BigEasyJ commented May 5, 2023

@content-bot content-bot added the Contribution Thank you! Contributions are always welcome! label May 5, 2023
@content-bot content-bot changed the base branch from master to contrib/BigEasyJ_EXPANDR-3830_service_owner_playbook May 5, 2023 00:37
@content-bot content-bot requested a review from GuyAfik May 5, 2023 00:37
@content-bot
Copy link
Collaborator

Thank you for your contribution. Your generosity and caring are unrivaled! Make sure to register your contribution by filling the Contribution Registration form, so our content wizard @GuyAfik will know the proposed changes are ready to be reviewed.

@content-bot content-bot added Community Contribution Form Filled Whether contribution form filled or not. labels May 5, 2023
- Local validate did not catch input that was not defined, but CI/CD validate did
- Removing unused conditional check in "What provider is this service?" task demisto#14
@BigEasyJ BigEasyJ marked this pull request as draft May 5, 2023 12:56
- Remove Service Account lookup and source updates from Cortex_ASM_-_GCP_Enrichment playbook.
- Remove retrieval of owners assocaited to a service account until more testing is completed.
@BigEasyJ BigEasyJ marked this pull request as ready for review May 5, 2023 16:56
Copy link
Contributor

@johnnywilkes johnnywilkes left a comment

Choose a reason for hiding this comment

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

Few small changes needed

@@ -0,0 +1,11 @@

Copy link
Contributor

Choose a reason for hiding this comment

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

Please change filename to 1_6_11 because of conflict with #26355

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe the bug fix should go in first but we can discuss.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -2,7 +2,7 @@
"name": "Cortex Attack Surface Management",
"description": "Content for working with Attack Surface Management (ASM).",
"support": "xsoar",
"currentVersion": "1.6.9",
"currentVersion": "1.6.10",
Copy link
Contributor

Choose a reason for hiding this comment

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

Please change filename to 1_6_11 because of conflict with #26355

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe the bug fix should go in first but we can discuss.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

version: -1
name: Get external service information
description: Get service details according to the service ID.
script: Cortex Attack Surface Management|||asm-get-external-service
Copy link
Contributor

Choose a reason for hiding this comment

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

This command is already run in "Cortex ASM - Enrichment". So we can do one of the following:

  • Pass full results of ${ASM.ExternalService.externally_detected_providers} into this playbook as an input (preferred)
  • Add a conditional to make sure CASM integration is enabled (similar to "Is Cortex ASM enabled?" task in "Cortex ASM - Enrichment".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was thinking about this repetition as well. The first option should be a later change, just to keep the main playbook out of scope. I'll go with the second option.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -6,10 +6,10 @@ starttaskid: "0"
tasks:
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@GuyAfik
Copy link
Contributor

GuyAfik commented May 9, 2023

@BigEasyJ please merge from master to retrieve the latest changes of the pack.

Copy link
Contributor

@johnnywilkes johnnywilkes left a comment

Choose a reason for hiding this comment

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

One last small change and we should be good

Copy link
Contributor

Choose a reason for hiding this comment

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

@BigEasyJ , I think you need to update the screenshot after your changes

Copy link
Contributor Author

@BigEasyJ BigEasyJ May 10, 2023

Choose a reason for hiding this comment

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

Good catch. Updated in 8fd7274.

Copy link
Contributor

@johnnywilkes johnnywilkes left a comment

Choose a reason for hiding this comment

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

Approved

Copy link
Contributor

@johnnywilkes johnnywilkes left a comment

Choose a reason for hiding this comment

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

Approved

Copy link
Contributor

@GuyAfik GuyAfik 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, great work!

@GuyAfik GuyAfik added the ready-for-instance-test In contribution PRs, this label will cause a trigger of a build with a modified pack from the PR. label May 10, 2023
@content-bot
Copy link
Collaborator

For the Reviewer: Successfully created a pipeline in Gitlab with url: https://code.pan.run/xsoar/content/-/pipelines/5234853

@GuyAfik GuyAfik merged commit fed319d into demisto:contrib/BigEasyJ_EXPANDR-3830_service_owner_playbook May 10, 2023
GuyAfik added a commit that referenced this pull request May 11, 2023
…6334) (#26442)

* Update Cortex ASM - Service Ownership playbook

- Fixed an issue where GCP project is not found.
- Updated the Cortex ASM - Service Ownership playbook to check for GCP as an external service before completing GCP related tasks for ranking users.

* Remove unneccessary condition from playbook

- Local validate did not catch input that was not defined, but CI/CD validate did
- Removing unused conditional check in "What provider is this service?" task #14

* Update Service Ownership and GCP Enrichment playbooks

- Remove Service Account lookup and source updates from Cortex_ASM_-_GCP_Enrichment playbook.
- Remove retrieval of owners assocaited to a service account until more testing is completed.

* Update release notes

* Updates from code review

* Update PNG

Co-authored-by: John <[email protected]>
Co-authored-by: GuyAfik <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community Contribution Form Filled Whether contribution form filled or not. Contribution Thank you! Contributions are always welcome! ready-for-instance-test In contribution PRs, this label will cause a trigger of a build with a modified pack from the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants