Skip to content

Commit

Permalink
Configuration Setup - Added the option to get the Configuration File …
Browse files Browse the repository at this point in the history
…from Google Cloud Storage (#32507)

* update configuration setup pb

* update PB inputs and incident field

* update RN
  • Loading branch information
adi88d authored and yasta5 committed Feb 4, 2024
1 parent 2a9553f commit 100b4c9
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"Attachment",
"GitHub",
"Gitlab",
"AzureDevOps"
"AzureDevOps",
"GoogleCloudStorage"
],
"useAsKpi": false,
"locked": false,
Expand Down
59 changes: 57 additions & 2 deletions Packs/ContentManagement/Playbooks/playbook-Configuration_Setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ tasks:
{
"position": {
"x": 275,
"y": 545
"y": 555
}
}
note: false
Expand Down Expand Up @@ -628,6 +628,8 @@ tasks:
- '35'
AzureDevOps:
- "37"
GOOGLE CLOUD STORAGE:
- "39"
separatecontext: false
conditions:
- label: Attachment
Expand Down Expand Up @@ -670,6 +672,16 @@ tasks:
right:
value:
simple: AzureDevOps
- label: GOOGLE CLOUD STORAGE
condition:
- - operator: isEqualString
left:
value:
simple: incident.configurationfilesource
iscontext: true
right:
value:
simple: GoogleCloudStorage
view: |-
{
"position": {
Expand Down Expand Up @@ -1075,7 +1087,8 @@ tasks:
ref:
simple: ${incident.branchname}
using:
simple: Gitlab Gold
complex:
root: inputs.GitlabInstanceName
separatecontext: false
view: |-
{
Expand Down Expand Up @@ -1215,6 +1228,43 @@ tasks:
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"39":
id: "39"
taskid: 06f49ef0-a41e-4dc4-8b97-1cc696df593f
type: regular
task:
id: 06f49ef0-a41e-4dc4-8b97-1cc696df593f
version: -1
name: Get Configuration File from Google cloud storage
description: Retrieves object data into a file.
script: Google Cloud Storage|||gcs-download-file
type: regular
iscommand: true
brand: Google Cloud Storage
nexttasks:
'#none#':
- "2"
scriptarguments:
bucket_name:
simple: ${incident.cicds3bucketname}
object_name:
simple: ${incident.configfilepath}
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 190,
"y": 380
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
view: |-
{
"linkLabelsPosition": {},
Expand All @@ -1233,6 +1283,11 @@ inputs:
required: false
description: Core REST API instance name to use.
playbookInputQuery:
- key: GitlabInstanceName
value: {}
required: false
description: Gitlab instance name to use.
playbookInputQuery:
outputs: []
tests:
- No tests (auto formatted)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Playbook for the Cֹonfiguration Setup incident type.
| **Name** | **Description** | **Default Value** | **Required** |
| --- | --- | --- | --- |
| InstanceName | Core REST API instance name to use. | | Optional |
| GitlabInstanceName | Gitlab instance name to use. | | Optional |

## Playbook Outputs
---
Expand Down
12 changes: 12 additions & 0 deletions Packs/ContentManagement/ReleaseNotes/1_2_17.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

#### Incident Fields

- **Configuration File Source**
Added the option to get the Configuration File from Google Cloud Storage.

#### Playbooks

##### Configuration Setup

- Added the option to get the Configuration File from Google Cloud Storage.
- Added the input 'GitlabInstanceName' to use specific gitlab instance in the playbook.
2 changes: 1 addition & 1 deletion Packs/ContentManagement/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "XSOAR CI/CD",
"description": "This pack enables you to orchestrate your XSOAR system configuration.",
"support": "xsoar",
"currentVersion": "1.2.16",
"currentVersion": "1.2.17",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down

0 comments on commit 100b4c9

Please sign in to comment.