Skip to content

Commit

Permalink
Merge pull request #19 from splunk-soar-connectors/next
Browse files Browse the repository at this point in the history
Merging next to main for release 3.0.0
  • Loading branch information
tapishj-splunk authored Oct 18, 2024
2 parents 88b161f + 738a112 commit a1624dc
Show file tree
Hide file tree
Showing 12 changed files with 3,392 additions and 380 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright (c) 2017-2023 Splunk Inc.
Copyright (c) 2017-2024 Splunk Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
485 changes: 481 additions & 4 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# File: __init__.py
#
# Copyright (c) 2017-2023 Splunk Inc.
# Copyright (c) 2017-2024 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
76 changes: 76 additions & 0 deletions manual_readme_content.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
[comment]: # " File: README.md"
[comment]: # " Copyright (c) 2017-2024 Splunk Inc."
[comment]: # ""
[comment]: # "Licensed under the Apache License, Version 2.0 (the 'License');"
[comment]: # "you may not use this file except in compliance with the License."
[comment]: # "You may obtain a copy of the License at"
[comment]: # ""
[comment]: # " http://www.apache.org/licenses/LICENSE-2.0"
[comment]: # ""
[comment]: # "Unless required by applicable law or agreed to in writing, software distributed under"
[comment]: # "the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,"
[comment]: # "either express or implied. See the License for the specific language governing permissions"
[comment]: # "and limitations under the License."
[comment]: # ""
Below points are considered for providing the **URL Category** parameter value.

- Entire URL category string has to be mentioned in block letters

- The most child category on UI has to be passed as the URL category parameter value to the action

- From the URL category value on UI, every space has to be replaced by an underscore '\_' before
passing it in the action's parameter value


- For example, **Alternate Lifestyle** on UI becomes **ALTERNATE_LIFESTYLE**

- When you specify a **url_category** , you can give it either the name you created or the ID
which is assigned to it from Zscaler. The search will first search for the name, as opposed to
the ID. So if you create a category **phantom-block** , you could use either **phantom-block**
or **CUSTOM\_\*\*** . The name for these is case sensitive.

The following are considered for providing the **URL** parameter value.

- The comma-separated values of **URL** should correctly be given e.g. test.com,test1.com else the
Phantom framework's parameter validator will return the error mentioning **Exception occurred:
string index out of range** .

Configure and set up permissions for the **lookup_url** action

- Login to Zscaler UI using the Administrator credentials.
- Once logged in, go to **Administration -> Role Management** section.
- Click on the **Edit** icon beside the role that your account uses to configure the test
connectivity.
- Go to the **Functional Scope** section, enable **Security** if disabled, and save it.

The above steps would help run the Lookup URL action as expected.

The Sandbox Submission API requires a separate API key and uses a different host
(csbapi.\[zscaler-cloud-name\]). For the **submit_file** action, the **sandbox_base_url** and
**sandbox_api_token** asset configuration parameters should be configured. These two asset
parameters won't affect test_connectivity. Follow the below steps to fetch these credentials for the
**submit_file** action

- Log in to the ZIA Admin Portal using your **admin** credentials.
- Once logged in, go to **Administration -> Cloud Service API Key Management** section. In order
to view the Cloud Service API Key Management page, the admin must be assigned an admin role.
- For the Cloud Sandbox Submission API used in this action, the base URL and token are displayed
on the **Sandbox Submission API Token** tab.
- The base URL and token displayed here can be configured in the asset parameters in
**sandbox_base_url** and **sandbox_api_token** parameters respectively and will be used for the
submit_file action.

The above steps would help run the Submit File action as expected.

**NOTE:** This action would work according to the API behavior

Port Information

The app uses HTTP/ HTTPS protocol for communicating with the Zscaler server. Below are the default
ports used by Splunk SOAR.

|         Service Name | Transport Protocol | Port |
|----------------------|--------------------|------|
|         http | tcp | 80 |
|         https | tcp | 443 |
79 changes: 0 additions & 79 deletions readme.html

This file was deleted.

14 changes: 14 additions & 0 deletions release_notes/3.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
* [PAPP-34457]
* New `get blacklist` action that retrieves the Zscaler default block list.
* New `get whitelist` action that retrieves the Zscaler default allow list.
* New `update user` action that updates the user information for the specified ID.
* New `add category url:` action that adds URLs to the specified category.
* New `add category IP:` action that adds IPs to the specified category.
* New `remove category url:` action that removes URLs from the specified category.
* New `remove category IP:` action that removes IPs from the specified category.
* New `get categories:` action that retrieves a list of all categories.
* New `create destination groups:` action that adds a new IP destination group.
* New `edit destination groups:` action that updates the IP destination group information for the specified group ID.
* New `list destination groups:` action that gets a list of all IP destination groups or the IP destination group information for the specified group ID.
* New `delete destination groups:` action that deletes the IP destination groups for the specified group IDs.
* New `get departments:` action that gets a list of departments. It can be searched by name.
Loading

0 comments on commit a1624dc

Please sign in to comment.