diff --git a/LICENSE b/LICENSE index e6f5c5c..21ab60a 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright (c) 2014-2022 Splunk Inc. + Copyright (c) 2014-2023 Splunk Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -198,4 +198,4 @@ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file + limitations under the License. diff --git a/NOTICE b/NOTICE index debfd39..734fbd3 100644 --- a/NOTICE +++ b/NOTICE @@ -1,5 +1,5 @@ Splunk SOAR Cisco ISE -Copyright (c) 2014-2022 Splunk Inc. +Copyright (c) 2014-2023 Splunk Inc. Third-party Software Attributions: @@ -8,11 +8,6 @@ Version: 1.3.4 License: ISC Copyright 2012-2016 Nicola Iarocci -Library: requests -Version: 2.25.0 -License: Apache 2.0 -Kenneth Reitz - Library: xmltodict Version: 0.12.0 License: MIT diff --git a/README.md b/README.md index a4d94af..ef8dd95 100644 --- a/README.md +++ b/README.md @@ -2,16 +2,16 @@ # Cisco ISE Publisher: Splunk -Connector Version: 3\.0\.1 +Connector Version: 3.0.2 Product Vendor: Cisco Systems Product Name: Cisco ISE -Product Version Supported (regex): "/\(\[2\]\.\[67\]\)\|\(\[3\]\.\[01\]\)/" -Minimum Product Version: 5\.1\.0 +Product Version Supported (regex): "/([2].[67])|([3].[01])/" +Minimum Product Version: 5.1.0 This app implements investigative and containment actions on a Cisco ISE device [comment]: # " File: README.md" -[comment]: # " Copyright (c) 2014-2022 Splunk Inc." +[comment]: # " Copyright (c) 2014-2023 Splunk Inc." [comment]: # "" [comment]: # " SPLUNK CONFIDENTIAL - Use or disclosure of this material in whole or in part" [comment]: # " without a valid written license from Splunk Inc. is PROHIBITED." @@ -94,7 +94,7 @@ This app implements investigative and containment actions on a Cisco ISE device "name": "guestUser", "guestInfo": { "userName": "DS3ewdsa34wWE", - "password": "asdlkj324ew", + "password": "asdlkj324ew", # pragma: allowlist secret "enabled": true }, "guestAccessInfo": { @@ -122,7 +122,7 @@ This app implements investigative and containment actions on a Cisco ISE device "enabled": true, "password": "*******", "changePassword": true, - "passwordIDStore": "Internal Users" + "passwordIDStore": "Internal Users" # pragma: allowlist secret } } @@ -152,7 +152,7 @@ This app implements investigative and containment actions on a Cisco ISE device "pushIdSupport": false }, "tacacsSettings": { - "sharedSecret": "aaa" + "sharedSecret": "aaa" # pragma: allowlist secret }, "profileName": "Cisco", "NetworkDeviceIPList": [ @@ -201,22 +201,22 @@ The below configuration variables are required for this Connector to operate. T VARIABLE | REQUIRED | TYPE | DESCRIPTION -------- | -------- | ---- | ----------- **device** | required | string | Device IP/Hostname -**ha\_device** | optional | string | Device IP/Hostname for a High Availability node if available +**ha_device** | optional | string | Device IP/Hostname for a High Availability node if available **username** | required | string | Username **password** | required | password | Password -**ers\_user** | optional | string | Username for ERS APIs -**ers\_password** | optional | password | Password for ERS APIs -**verify\_server\_cert** | optional | boolean | Verify server certificate +**ers_user** | optional | string | Username for ERS APIs +**ers_password** | optional | password | Password for ERS APIs +**verify_server_cert** | optional | boolean | Verify server certificate ### Supported Actions -[test connectivity](#action-test-connectivity) - Validate the asset configuration for connectivity\. This action logs into the device using a REST API call to check the connection and credentials +[test connectivity](#action-test-connectivity) - Validate the asset configuration for connectivity. This action logs into the device using a REST API call to check the connection and credentials [list endpoints](#action-list-endpoints) - List the endpoints configured on the system [get device info](#action-get-device-info) - Get information about a specific endpoint [update device info](#action-update-device-info) - Update information or attributes for a specific endpoint [list sessions](#action-list-sessions) - List the sessions currently available on the Monitoring node [terminate session](#action-terminate-session) - Terminate sessions [list resources](#action-list-resources) - Lists all the resources configured on the system of a particular resource -[get resources](#action-get-resources) - Get the information about resource if resource\_id is provided\. Fetch the list of resources match with the key\-value filter +[get resources](#action-get-resources) - Get the information about resource if resource_id is provided. Fetch the list of resources match with the key-value filter [delete resource](#action-delete-resource) - Delete a resource [create resource](#action-create-resource) - Create a resource [update resource](#action-update-resource) - Update a resource @@ -227,7 +227,7 @@ VARIABLE | REQUIRED | TYPE | DESCRIPTION [delete policy](#action-delete-policy) - Delete a policy ## action: 'test connectivity' -Validate the asset configuration for connectivity\. This action logs into the device using a REST API call to check the connection and credentials +Validate the asset configuration for connectivity. This action logs into the device using a REST API call to check the connection and credentials Type: **test** Read only: **True** @@ -247,24 +247,24 @@ Read only: **True** #### Action Parameters PARAMETER | REQUIRED | DESCRIPTION | TYPE | CONTAINS --------- | -------- | ----------- | ---- | -------- -**mac\_address** | optional | Mac Address to filter on \(6 bytes, colon separated\) | string | `mac address` +**mac_address** | optional | Mac Address to filter on (6 bytes, colon separated) | string | `mac address` #### Action Output -DATA PATH | TYPE | CONTAINS ---------- | ---- | -------- -action\_result\.status | string | -action\_result\.parameter\.mac\_address | string | `mac address` -action\_result\.data\.\*\.SearchResult\.resources\.\*\.id | string | `ise endpoint id` `ise resource id` -action\_result\.data\.\*\.SearchResult\.resources\.\*\.link\.href | string | `url` -action\_result\.data\.\*\.SearchResult\.resources\.\*\.link\.rel | string | -action\_result\.data\.\*\.SearchResult\.resources\.\*\.link\.type | string | -action\_result\.data\.\*\.SearchResult\.resources\.\*\.name | string | -action\_result\.data\.\*\.SearchResult\.total | numeric | -action\_result\.summary\.Endpoints found | string | -action\_result\.summary\.endpoints\_found | numeric | -action\_result\.message | string | -summary\.total\_objects | numeric | -summary\.total\_objects\_successful | numeric | +DATA PATH | TYPE | CONTAINS | EXAMPLE VALUES +--------- | ---- | -------- | -------------- +action_result.status | string | | success failed +action_result.parameter.mac_address | string | `mac address` | 11:11:11:11:11:11 +action_result.data.\*.SearchResult.resources.\*.id | string | `ise endpoint id` `ise resource id` | d0337940-a86f-11e7-b6e9-000c29d5f0ea +action_result.data.\*.SearchResult.resources.\*.link.href | string | `url` | https://10.16.0.92:9060/ers/config/endpoint/d0337940-a86f-11e7-b6e9-000c29d5f0ea +action_result.data.\*.SearchResult.resources.\*.link.rel | string | | self +action_result.data.\*.SearchResult.resources.\*.link.type | string | | application/xml +action_result.data.\*.SearchResult.resources.\*.name | string | | 8C:85:90:17:D6:39 +action_result.data.\*.SearchResult.total | numeric | | 1 +action_result.summary.Endpoints found | string | | 9 1 +action_result.summary.endpoints_found | numeric | | 1 +action_result.message | string | | 9 Endpoints found 1 Endpoints found +summary.total_objects | numeric | | 1 +summary.total_objects_successful | numeric | | 1 ## action: 'get device info' Get information about a specific endpoint @@ -275,32 +275,32 @@ Read only: **True** #### Action Parameters PARAMETER | REQUIRED | DESCRIPTION | TYPE | CONTAINS --------- | -------- | ----------- | ---- | -------- -**endpoint\_id** | required | ISE Endpoint ID for device | string | `ise endpoint id` `ise resource id` +**endpoint_id** | required | ISE Endpoint ID for device | string | `ise endpoint id` `ise resource id` #### Action Output -DATA PATH | TYPE | CONTAINS ---------- | ---- | -------- -action\_result\.status | string | -action\_result\.parameter\.endpoint\_id | string | `ise endpoint id` `ise resource id` -action\_result\.data\.\*\.ERSEndPoint\.customAttributes\.customAttributes\.ITSecurityBlock | string | -action\_result\.data\.\*\.ERSEndPoint\.description | string | -action\_result\.data\.\*\.ERSEndPoint\.groupId | string | -action\_result\.data\.\*\.ERSEndPoint\.id | string | `ise endpoint id` `ise resource id` -action\_result\.data\.\*\.ERSEndPoint\.identityStore | string | -action\_result\.data\.\*\.ERSEndPoint\.identityStoreId | string | -action\_result\.data\.\*\.ERSEndPoint\.link\.href | string | `url` -action\_result\.data\.\*\.ERSEndPoint\.link\.rel | string | -action\_result\.data\.\*\.ERSEndPoint\.link\.type | string | -action\_result\.data\.\*\.ERSEndPoint\.mac | string | -action\_result\.data\.\*\.ERSEndPoint\.name | string | -action\_result\.data\.\*\.ERSEndPoint\.portalUser | string | -action\_result\.data\.\*\.ERSEndPoint\.profileId | string | -action\_result\.data\.\*\.ERSEndPoint\.staticGroupAssignment | boolean | -action\_result\.data\.\*\.ERSEndPoint\.staticProfileAssignment | boolean | -action\_result\.summary | string | -action\_result\.message | string | -summary\.total\_objects | numeric | -summary\.total\_objects\_successful | numeric | +DATA PATH | TYPE | CONTAINS | EXAMPLE VALUES +--------- | ---- | -------- | -------------- +action_result.status | string | | success failed +action_result.parameter.endpoint_id | string | `ise endpoint id` `ise resource id` | 59985000-712d-11e6-9062-000c29bea319 d0337940-a86f-11e7-b6e9-000c29d5f0ea +action_result.data.\*.ERSEndPoint.customAttributes.customAttributes.ITSecurityBlock | string | | true +action_result.data.\*.ERSEndPoint.description | string | | description +action_result.data.\*.ERSEndPoint.groupId | string | | aa10ae00-8bff-11e6-996c-525400b48521 +action_result.data.\*.ERSEndPoint.id | string | `ise endpoint id` `ise resource id` | d0337940-a86f-11e7-b6e9-000c29d5f0ea +action_result.data.\*.ERSEndPoint.identityStore | string | | +action_result.data.\*.ERSEndPoint.identityStoreId | string | | +action_result.data.\*.ERSEndPoint.link.href | string | `url` | https://10.16.0.92:9060/ers/config/endpoint/d0337940-a86f-11e7-b6e9-000c29d5f0ea +action_result.data.\*.ERSEndPoint.link.rel | string | | self +action_result.data.\*.ERSEndPoint.link.type | string | | application/xml +action_result.data.\*.ERSEndPoint.mac | string | | 8C:85:90:17:D6:39 +action_result.data.\*.ERSEndPoint.name | string | | 8C:85:90:17:D6:39 +action_result.data.\*.ERSEndPoint.portalUser | string | | +action_result.data.\*.ERSEndPoint.profileId | string | | 09663280-8c00-11e6-996c-525400b48521 +action_result.data.\*.ERSEndPoint.staticGroupAssignment | boolean | | True False +action_result.data.\*.ERSEndPoint.staticProfileAssignment | boolean | | True False +action_result.summary | string | | +action_result.message | string | | Endpoint found +summary.total_objects | numeric | | 1 +summary.total_objects_successful | numeric | | 1 ## action: 'update device info' Update information or attributes for a specific endpoint @@ -311,28 +311,28 @@ Read only: **False** #### Action Parameters PARAMETER | REQUIRED | DESCRIPTION | TYPE | CONTAINS --------- | -------- | ----------- | ---- | -------- -**endpoint\_id** | required | ISE Endpoint ID for device | string | `ise endpoint id` `ise resource id` +**endpoint_id** | required | ISE Endpoint ID for device | string | `ise endpoint id` `ise resource id` **attribute** | optional | Attribute to update for the Endpoint | string | -**attribute\_value** | optional | Value to put in the attribute for the Endpoint | string | -**custom\_attribute** | optional | Custom attribute to update for the Endpoint | string | -**custom\_attribute\_value** | optional | Value to put in the custom attribute for the Endpoint | string | +**attribute_value** | optional | Value to put in the attribute for the Endpoint | string | +**custom_attribute** | optional | Custom attribute to update for the Endpoint | string | +**custom_attribute_value** | optional | Value to put in the custom attribute for the Endpoint | string | #### Action Output -DATA PATH | TYPE | CONTAINS ---------- | ---- | -------- -action\_result\.status | string | -action\_result\.parameter\.attribute | string | -action\_result\.parameter\.attribute\_value | string | -action\_result\.parameter\.custom\_attribute | string | -action\_result\.parameter\.custom\_attribute\_value | string | -action\_result\.parameter\.endpoint\_id | string | `ise endpoint id` `ise resource id` -action\_result\.data\.\*\.UpdatedFieldsList\.updatedField\.\*\.field | string | -action\_result\.data\.\*\.UpdatedFieldsList\.updatedField\.\*\.newValue | string | -action\_result\.data\.\*\.UpdatedFieldsList\.updatedField\.\*\.oldValue | string | -action\_result\.summary | string | -action\_result\.message | string | -summary\.total\_objects | numeric | -summary\.total\_objects\_successful | numeric | +DATA PATH | TYPE | CONTAINS | EXAMPLE VALUES +--------- | ---- | -------- | -------------- +action_result.status | string | | success failed +action_result.parameter.attribute | string | | ITSecurityBlock +action_result.parameter.attribute_value | string | | True +action_result.parameter.custom_attribute | string | | CustomAttribute +action_result.parameter.custom_attribute_value | string | | True +action_result.parameter.endpoint_id | string | `ise endpoint id` `ise resource id` | d0337940-a86f-11e7-b6e9-000c29d5f0ea +action_result.data.\*.UpdatedFieldsList.updatedField.\*.field | string | | customAttributes +action_result.data.\*.UpdatedFieldsList.updatedField.\*.newValue | string | | {ITSecurityBlock=True} +action_result.data.\*.UpdatedFieldsList.updatedField.\*.oldValue | string | | {ITSecurityBlock=False} +action_result.summary | string | | +action_result.message | string | | Endpoint Updated +summary.total_objects | numeric | | 1 +summary.total_objects_successful | numeric | | 1 ## action: 'list sessions' List the sessions currently available on the Monitoring node @@ -344,23 +344,23 @@ Read only: **True** No parameters are required for this action #### Action Output -DATA PATH | TYPE | CONTAINS ---------- | ---- | -------- -action\_result\.status | string | -action\_result\.data\.\*\.acct\_session\_id | string | -action\_result\.data\.\*\.audit\_session\_id | string | `ise session id` -action\_result\.data\.\*\.calling\_station\_id | string | `mac address` -action\_result\.data\.\*\.framed\_ip\_address | string | `ip` -action\_result\.data\.\*\.framed\_ipv6\_address | string | -action\_result\.data\.\*\.is\_quarantined | string | -action\_result\.data\.\*\.nas\_ip\_address | string | `nas server` -action\_result\.data\.\*\.server | string | `ise server` -action\_result\.data\.\*\.user\_name | string | `user name` -action\_result\.summary | string | -action\_result\.summary\.sessions\_found | numeric | -action\_result\.message | string | -summary\.total\_objects | numeric | -summary\.total\_objects\_successful | numeric | +DATA PATH | TYPE | CONTAINS | EXAMPLE VALUES +--------- | ---- | -------- | -------------- +action_result.status | string | | success failed +action_result.data.\*.acct_session_id | string | | +action_result.data.\*.audit_session_id | string | `ise session id` | +action_result.data.\*.calling_station_id | string | `mac address` | +action_result.data.\*.framed_ip_address | string | `ip` | +action_result.data.\*.framed_ipv6_address | string | | +action_result.data.\*.is_quarantined | string | | +action_result.data.\*.nas_ip_address | string | `nas server` | +action_result.data.\*.server | string | `ise server` | +action_result.data.\*.user_name | string | `user name` | +action_result.summary | string | | +action_result.summary.sessions_found | numeric | | 0 +action_result.message | string | | +summary.total_objects | numeric | | 1 +summary.total_objects_successful | numeric | | 1 ## action: 'terminate session' Terminate sessions @@ -374,15 +374,15 @@ PARAMETER | REQUIRED | DESCRIPTION | TYPE | CONTAINS **macaddress** | required | MAC address of device to terminate sessions of | string | `mac address` #### Action Output -DATA PATH | TYPE | CONTAINS ---------- | ---- | -------- -action\_result\.status | string | -action\_result\.parameter\.macaddress | string | `mac address` -action\_result\.data | string | -action\_result\.summary | string | -action\_result\.message | string | -summary\.total\_objects | numeric | -summary\.total\_objects\_successful | numeric | +DATA PATH | TYPE | CONTAINS | EXAMPLE VALUES +--------- | ---- | -------- | -------------- +action_result.status | string | | success failed +action_result.parameter.macaddress | string | `mac address` | 11:11:11:11:11:11 +action_result.data | string | | +action_result.summary | string | | +action_result.message | string | | +summary.total_objects | numeric | | +summary.total_objects_successful | numeric | | ## action: 'list resources' Lists all the resources configured on the system of a particular resource @@ -394,27 +394,27 @@ Read only: **True** PARAMETER | REQUIRED | DESCRIPTION | TYPE | CONTAINS --------- | -------- | ----------- | ---- | -------- **resource** | required | Resource type of the resources to fetch | string | -**max\_results** | optional | Total number of observables to return | numeric | +**max_results** | optional | Total number of observables to return | numeric | #### Action Output -DATA PATH | TYPE | CONTAINS ---------- | ---- | -------- -action\_result\.status | string | -action\_result\.parameter\.max\_results | numeric | -action\_result\.parameter\.resource | string | -action\_result\.data\.\*\.description | string | -action\_result\.data\.\*\.id | string | `ise resource id` -action\_result\.data\.\*\.link\.href | string | `url` -action\_result\.data\.\*\.link\.rel | string | -action\_result\.data\.\*\.link\.type | string | -action\_result\.data\.\*\.name | string | -action\_result\.summary\.resources\_returned | numeric | -action\_result\.message | string | -summary\.total\_objects | numeric | -summary\.total\_objects\_successful | numeric | +DATA PATH | TYPE | CONTAINS | EXAMPLE VALUES +--------- | ---- | -------- | -------------- +action_result.status | string | | success failed +action_result.parameter.max_results | numeric | | 2 +action_result.parameter.resource | string | | Endpoints +action_result.data.\*.description | string | | Default portal used by sponsors to create and manage accounts for authorized visitors to securely access the network +action_result.data.\*.id | string | `ise resource id` | 40963c00-2e02-11e8-ba71-005056872c7f +action_result.data.\*.link.href | string | `url` | https://10.1.16.169:9060/ers/config/portal/40963c00-2e02-11e8-ba71-005056872c7f +action_result.data.\*.link.rel | string | | self +action_result.data.\*.link.type | string | | application/xml +action_result.data.\*.name | string | | Sponsor Portal (default) +action_result.summary.resources_returned | numeric | | 5 +action_result.message | string | | Resources returned: 5 +summary.total_objects | numeric | | 1 +summary.total_objects_successful | numeric | | 1 ## action: 'get resources' -Get the information about resource if resource\_id is provided\. Fetch the list of resources match with the key\-value filter +Get the information about resource if resource_id is provided. Fetch the list of resources match with the key-value filter Type: **investigate** Read only: **True** @@ -423,37 +423,37 @@ Read only: **True** PARAMETER | REQUIRED | DESCRIPTION | TYPE | CONTAINS --------- | -------- | ----------- | ---- | -------- **resource** | required | Resource type of the resource to fetch | string | -**resource\_id** | optional | Resource ID | string | `ise resource id` +**resource_id** | optional | Resource ID | string | `ise resource id` **key** | optional | Key | string | **value** | optional | Value | string | #### Action Output -DATA PATH | TYPE | CONTAINS ---------- | ---- | -------- -action\_result\.status | string | -action\_result\.parameter\.key | string | -action\_result\.parameter\.resource | string | -action\_result\.parameter\.resource\_id | string | `ise resource id` -action\_result\.parameter\.value | string | -action\_result\.data\.\*\.description | string | -action\_result\.data\.\*\.groupId | string | -action\_result\.data\.\*\.id | string | `ise resource id` -action\_result\.data\.\*\.identityStore | string | -action\_result\.data\.\*\.identityStoreId | string | -action\_result\.data\.\*\.link\.href | string | `url` -action\_result\.data\.\*\.link\.rel | string | -action\_result\.data\.\*\.link\.type | string | -action\_result\.data\.\*\.mac | string | -action\_result\.data\.\*\.name | string | -action\_result\.data\.\*\.portalUser | string | -action\_result\.data\.\*\.profileId | string | -action\_result\.data\.\*\.staticGroupAssignment | boolean | -action\_result\.data\.\*\.staticProfileAssignment | boolean | -action\_result\.summary\.resource\_id | string | `ise resource id` -action\_result\.summary\.resources\_returned | numeric | -action\_result\.message | string | -summary\.total\_objects | numeric | -summary\.total\_objects\_successful | numeric | +DATA PATH | TYPE | CONTAINS | EXAMPLE VALUES +--------- | ---- | -------- | -------------- +action_result.status | string | | success failed +action_result.parameter.key | string | | mac +action_result.parameter.resource | string | | Endpoints +action_result.parameter.resource_id | string | `ise resource id` | 2e9cf1c0-30b6-11ea-8f06-ce112ec9f8fa +action_result.parameter.value | string | | 00:00:00:00:00:00 +action_result.data.\*.description | string | | This endpoint for test +action_result.data.\*.groupId | string | | aa10ae00-8bff-11e6-996c-525400b48521 +action_result.data.\*.id | string | `ise resource id` | d335f970-10e0-11ea-8f06-ce112ec9f8fa +action_result.data.\*.identityStore | string | | +action_result.data.\*.identityStoreId | string | | +action_result.data.\*.link.href | string | `url` | https://10.1.16.169:9060/ers/config/endpoint/d335f970-10e0-11ea-8f06-ce112ec9f8fa +action_result.data.\*.link.rel | string | | self +action_result.data.\*.link.type | string | | application/xml +action_result.data.\*.mac | string | | 00:00:00:00:00:00 +action_result.data.\*.name | string | | 00:00:00:00:00:00 +action_result.data.\*.portalUser | string | | +action_result.data.\*.profileId | string | | 44031480-8c00-11e6-996c-525400b48521 +action_result.data.\*.staticGroupAssignment | boolean | | True False +action_result.data.\*.staticProfileAssignment | boolean | | True False +action_result.summary.resource_id | string | `ise resource id` | d335f970-10e0-11ea-8f06-ce112ec9f8fa +action_result.summary.resources_returned | numeric | | 0 +action_result.message | string | | Resource id: d335f970-10e0-11ea-8f06-ce112ec9f8fa +summary.total_objects | numeric | | 1 +summary.total_objects_successful | numeric | | 1 ## action: 'delete resource' Delete a resource @@ -465,19 +465,19 @@ Read only: **False** PARAMETER | REQUIRED | DESCRIPTION | TYPE | CONTAINS --------- | -------- | ----------- | ---- | -------- **resource** | required | Resource type of the resource to be deleted | string | -**resource\_id** | required | Resource ID | string | `ise resource id` +**resource_id** | required | Resource ID | string | `ise resource id` #### Action Output -DATA PATH | TYPE | CONTAINS ---------- | ---- | -------- -action\_result\.status | string | -action\_result\.parameter\.resource | string | -action\_result\.parameter\.resource\_id | string | `ise resource id` -action\_result\.data | string | -action\_result\.summary | string | -action\_result\.message | string | -summary\.total\_objects | numeric | -summary\.total\_objects\_successful | numeric | +DATA PATH | TYPE | CONTAINS | EXAMPLE VALUES +--------- | ---- | -------- | -------------- +action_result.status | string | | success failed +action_result.parameter.resource | string | | Endpoints +action_result.parameter.resource_id | string | `ise resource id` | 2e9cf1c0-30b6-11ea-8f06-ce112ec9f8fa +action_result.data | string | | +action_result.summary | string | | +action_result.message | string | | Resource deleted successfully +summary.total_objects | numeric | | 1 +summary.total_objects_successful | numeric | | 1 ## action: 'create resource' Create a resource @@ -489,19 +489,25 @@ Read only: **False** PARAMETER | REQUIRED | DESCRIPTION | TYPE | CONTAINS --------- | -------- | ----------- | ---- | -------- **resource** | required | Resource type of the resource to be created | string | -**resource\_json** | required | JSON which contains all values needed to create a resource | string | +**resource_json** | required | JSON which contains all values needed to create a resource | string | #### Action Output -DATA PATH | TYPE | CONTAINS ---------- | ---- | -------- -action\_result\.status | string | -action\_result\.parameter\.resource | string | -action\_result\.parameter\.resource\_json | string | -action\_result\.data | string | -action\_result\.summary | string | -action\_result\.message | string | -summary\.total\_objects | numeric | -summary\.total\_objects\_successful | numeric | +DATA PATH | TYPE | CONTAINS | EXAMPLE VALUES +--------- | ---- | -------- | -------------- +action_result.status | string | | success failed +action_result.parameter.resource | string | | Endpoints +action_result.parameter.resource_json | string | | { +"ERSEndPoint": { +"name": "name", +"description": "MyEndpoint", +"mac": "11:22:33:44:55:66" +} +} +action_result.data | string | | +action_result.summary | string | | Resource created successfully +action_result.message | string | | Resource created successfully +summary.total_objects | numeric | | 1 +summary.total_objects_successful | numeric | | 1 ## action: 'update resource' Update a resource @@ -513,23 +519,23 @@ Read only: **False** PARAMETER | REQUIRED | DESCRIPTION | TYPE | CONTAINS --------- | -------- | ----------- | ---- | -------- **resource** | required | Resource type of the resource to be created | string | -**resource\_id** | required | ID of resource | string | `ise resource id` +**resource_id** | required | ID of resource | string | `ise resource id` **key** | required | Key of resource which needs to be updated | string | **value** | required | New value of key | string | #### Action Output -DATA PATH | TYPE | CONTAINS ---------- | ---- | -------- -action\_result\.status | string | -action\_result\.parameter\.key | string | -action\_result\.parameter\.resource | string | -action\_result\.parameter\.resource\_id | string | `ise resource id` -action\_result\.parameter\.value | string | -action\_result\.data | string | -action\_result\.summary | string | -action\_result\.message | string | -summary\.total\_objects | numeric | -summary\.total\_objects\_successful | numeric | +DATA PATH | TYPE | CONTAINS | EXAMPLE VALUES +--------- | ---- | -------- | -------------- +action_result.status | string | | success failed +action_result.parameter.key | string | | mac +action_result.parameter.resource | string | | Endpoints +action_result.parameter.resource_id | string | `ise resource id` | 2e9cf1c0-30b6-11ea-8f06-ce112ec9f8fa +action_result.parameter.value | string | | 11:11:11:11:11:11 +action_result.data | string | | +action_result.summary | string | | Resource created successfully +action_result.message | string | | Resource updated successfully +summary.total_objects | numeric | | 1 +summary.total_objects_successful | numeric | | 1 ## action: 'apply policy' Apply policy on selected Ip address or MAC address @@ -540,20 +546,20 @@ Read only: **False** #### Action Parameters PARAMETER | REQUIRED | DESCRIPTION | TYPE | CONTAINS --------- | -------- | ----------- | ---- | -------- -**policy\_name** | required | Policy Name | string | -**ip\_mac\_address** | required | MAC or IP Address of the device | string | `mac address` `ip` +**policy_name** | required | Policy Name | string | +**ip_mac_address** | required | MAC or IP Address of the device | string | `mac address` `ip` #### Action Output -DATA PATH | TYPE | CONTAINS ---------- | ---- | -------- -action\_result\.status | string | -action\_result\.parameter\.ip\_mac\_address | string | `mac address` `ip` -action\_result\.parameter\.policy\_name | string | -action\_result\.data | string | -action\_result\.summary | string | -action\_result\.message | string | -summary\.total\_objects | numeric | -summary\.total\_objects\_successful | numeric | +DATA PATH | TYPE | CONTAINS | EXAMPLE VALUES +--------- | ---- | -------- | -------------- +action_result.status | string | | success failed +action_result.parameter.ip_mac_address | string | `mac address` `ip` | 11:11:11:11:11:11 +action_result.parameter.policy_name | string | | testPolicy +action_result.data | string | | +action_result.summary | string | | +action_result.message | string | | Policy applied +summary.total_objects | numeric | | 1 +summary.total_objects_successful | numeric | | 1 ## action: 'clear policy' Clear policy on selected Ip address or MAC address @@ -564,20 +570,20 @@ Read only: **False** #### Action Parameters PARAMETER | REQUIRED | DESCRIPTION | TYPE | CONTAINS --------- | -------- | ----------- | ---- | -------- -**policy\_name** | required | Policy Name | string | -**ip\_mac\_address** | required | MAC or IP Address of the device | string | `mac address` `ip` +**policy_name** | required | Policy Name | string | +**ip_mac_address** | required | MAC or IP Address of the device | string | `mac address` `ip` #### Action Output -DATA PATH | TYPE | CONTAINS ---------- | ---- | -------- -action\_result\.status | string | -action\_result\.parameter\.ip\_mac\_address | string | `mac address` `ip` -action\_result\.parameter\.policy\_name | string | -action\_result\.data | string | -action\_result\.summary | string | -action\_result\.message | string | -summary\.total\_objects | numeric | -summary\.total\_objects\_successful | numeric | +DATA PATH | TYPE | CONTAINS | EXAMPLE VALUES +--------- | ---- | -------- | -------------- +action_result.status | string | | success failed +action_result.parameter.ip_mac_address | string | `mac address` `ip` | 11:11:11:11:11:11 +action_result.parameter.policy_name | string | | testPolicy +action_result.data | string | | +action_result.summary | string | | +action_result.message | string | | Policy cleared +summary.total_objects | numeric | | 1 +summary.total_objects_successful | numeric | | 1 ## action: 'list policies' Lists all the ANC policies available @@ -589,20 +595,20 @@ Read only: **True** No parameters are required for this action #### Action Output -DATA PATH | TYPE | CONTAINS ---------- | ---- | -------- -action\_result\.status | string | -action\_result\.data\.\*\.actions | string | -action\_result\.data\.\*\.id | string | `ise policy id` -action\_result\.data\.\*\.link\.href | string | -action\_result\.data\.\*\.link\.rel | string | -action\_result\.data\.\*\.link\.type | string | -action\_result\.data\.\*\.name | string | -action\_result\.summary | string | -action\_result\.summary\.policies\_found | numeric | -action\_result\.message | string | -summary\.total\_objects | numeric | -summary\.total\_objects\_successful | numeric | +DATA PATH | TYPE | CONTAINS | EXAMPLE VALUES +--------- | ---- | -------- | -------------- +action_result.status | string | | success failed +action_result.data.\*.actions | string | | +action_result.data.\*.id | string | `ise policy id` | policy_name +action_result.data.\*.link.href | string | | https://10.0.0.0:9060/ers/config/ancpolicy/policy_name +action_result.data.\*.link.rel | string | | self +action_result.data.\*.link.type | string | | application/json +action_result.data.\*.name | string | | policy_name +action_result.summary | string | | +action_result.summary.policies_found | numeric | | +action_result.message | string | | Policies found: 1 +summary.total_objects | numeric | | 1 +summary.total_objects_successful | numeric | | 1 ## action: 'add policy' Add a new ANC Policy @@ -614,19 +620,19 @@ Read only: **False** PARAMETER | REQUIRED | DESCRIPTION | TYPE | CONTAINS --------- | -------- | ----------- | ---- | -------- **name** | required | Policy Name | string | -**action\_type** | required | Policy action type | string | +**action_type** | required | Policy action type | string | #### Action Output -DATA PATH | TYPE | CONTAINS ---------- | ---- | -------- -action\_result\.status | string | -action\_result\.parameter\.action\_type | string | -action\_result\.parameter\.name | string | -action\_result\.data | string | -action\_result\.summary | string | -action\_result\.message | string | -summary\.total\_objects | numeric | -summary\.total\_objects\_successful | numeric | +DATA PATH | TYPE | CONTAINS | EXAMPLE VALUES +--------- | ---- | -------- | -------------- +action_result.status | string | | success failed +action_result.parameter.action_type | string | | QUARANTINE +action_result.parameter.name | string | | policy_name +action_result.data | string | | +action_result.summary | string | | +action_result.message | string | | Policy created +summary.total_objects | numeric | | 1 +summary.total_objects_successful | numeric | | 1 ## action: 'delete policy' Delete a policy @@ -637,15 +643,15 @@ Read only: **False** #### Action Parameters PARAMETER | REQUIRED | DESCRIPTION | TYPE | CONTAINS --------- | -------- | ----------- | ---- | -------- -**policy\_name** | required | Policy Name | string | `ise policy id` +**policy_name** | required | Policy Name | string | `ise policy id` #### Action Output -DATA PATH | TYPE | CONTAINS ---------- | ---- | -------- -action\_result\.status | string | -action\_result\.parameter\.policy\_name | string | `ise policy id` -action\_result\.data | string | -action\_result\.summary | string | -action\_result\.message | string | -summary\.total\_objects | numeric | -summary\.total\_objects\_successful | numeric | \ No newline at end of file +DATA PATH | TYPE | CONTAINS | EXAMPLE VALUES +--------- | ---- | -------- | -------------- +action_result.status | string | | success failed +action_result.parameter.policy_name | string | `ise policy id` | +action_result.data | string | | +action_result.summary | string | | +action_result.message | string | | Policy deleted +summary.total_objects | numeric | | 1 +summary.total_objects_successful | numeric | | 1 \ No newline at end of file diff --git a/__init__.py b/__init__.py index 77b1650..445e59b 100644 --- a/__init__.py +++ b/__init__.py @@ -1,6 +1,6 @@ # File: __init__.py # -# Copyright (c) 2014-2022 Splunk Inc. +# Copyright (c) 2014-2023 Splunk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/ciscoise.json b/ciscoise.json index 1798639..127614d 100644 --- a/ciscoise.json +++ b/ciscoise.json @@ -5,7 +5,7 @@ "publisher": "Splunk", "type": "network security", "main_module": "ciscoise_connector.py", - "app_version": "3.0.1", + "app_version": "3.0.2", "utctime_updated": "2022-03-11T04:16:56.000000Z", "package_name": "phantom_ciscoise", "product_vendor": "Cisco Systems", @@ -14,7 +14,7 @@ "min_phantom_version": "5.1.0", "logo": "logo_cisco.svg", "logo_dark": "logo_cisco_dark.svg", - "license": "Copyright (c) 2014-2022 Splunk Inc.", + "license": "Copyright (c) 2014-2023 Splunk Inc.", "python_version": "3", "fips_compliant": true, "latest_tested_version": [ @@ -1903,30 +1903,10 @@ "module": "Cerberus", "input_file": "wheels/py3/Cerberus-1.3.4-py3-none-any.whl" }, - { - "module": "certifi", - "input_file": "wheels/shared/certifi-2021.10.8-py2.py3-none-any.whl" - }, - { - "module": "chardet", - "input_file": "wheels/shared/chardet-3.0.4-py2.py3-none-any.whl" - }, - { - "module": "idna", - "input_file": "wheels/shared/idna-2.10-py2.py3-none-any.whl" - }, - { - "module": "requests", - "input_file": "wheels/shared/requests-2.25.0-py2.py3-none-any.whl" - }, { "module": "setuptools", "input_file": "wheels/py3/setuptools-59.6.0-py3-none-any.whl" }, - { - "module": "urllib3", - "input_file": "wheels/shared/urllib3-1.26.8-py2.py3-none-any.whl" - }, { "module": "xmltodict", "input_file": "wheels/shared/xmltodict-0.12.0-py2.py3-none-any.whl" @@ -1939,29 +1919,9 @@ "module": "Cerberus", "input_file": "wheels/py3/Cerberus-1.3.4-py3-none-any.whl" }, - { - "module": "certifi", - "input_file": "wheels/shared/certifi-2021.10.8-py2.py3-none-any.whl" - }, - { - "module": "chardet", - "input_file": "wheels/shared/chardet-3.0.4-py2.py3-none-any.whl" - }, - { - "module": "idna", - "input_file": "wheels/shared/idna-2.10-py2.py3-none-any.whl" - }, - { - "module": "requests", - "input_file": "wheels/shared/requests-2.25.0-py2.py3-none-any.whl" - }, { "module": "setuptools", - "input_file": "wheels/py3/setuptools-60.8.2-py3-none-any.whl" - }, - { - "module": "urllib3", - "input_file": "wheels/shared/urllib3-1.26.8-py2.py3-none-any.whl" + "input_file": "wheels/py3/setuptools-69.0.2-py3-none-any.whl" }, { "module": "xmltodict", @@ -1969,4 +1929,4 @@ } ] } -} \ No newline at end of file +} diff --git a/ciscoise_connector.py b/ciscoise_connector.py index 9e28670..67d32b8 100644 --- a/ciscoise_connector.py +++ b/ciscoise_connector.py @@ -1,6 +1,6 @@ # File: ciscoise_connector.py # -# Copyright (c) 2014-2022 Splunk Inc. +# Copyright (c) 2014-2023 Splunk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -87,11 +87,11 @@ def _validate_integers(self, action_result, parameter, key, allow_zero=False): if parameter is not None: try: if not float(parameter).is_integer(): - return action_result.set_status(phantom.APP_ERROR, CISCOISE_ERR_INVALID_PARAM.format(key)), None + return action_result.set_status(phantom.APP_ERROR, CISCOISE_ERROR_INVALID_PARAM.format(key)), None parameter = int(parameter) except Exception: - return action_result.set_status(phantom.APP_ERROR, CISCOISE_ERR_INVALID_PARAM.format(key)), None + return action_result.set_status(phantom.APP_ERROR, CISCOISE_ERROR_INVALID_PARAM.format(key)), None if parameter < 0: return action_result.set_status(phantom.APP_ERROR, @@ -132,7 +132,7 @@ def _call_ers_api(self, endpoint, action_result, data=None, allow_unknown=True, request_func = getattr(requests, method) except AttributeError as e: self.debug_print("Exception occurred: {}".format(e)) - return action_result.set_status(phantom.APP_ERROR, CISCOISE_ERR_REST_API, e), ret_data + return action_result.set_status(phantom.APP_ERROR, CISCOISE_ERROR_REST_API, e), ret_data try: headers = {"Content-Type": "application/json", "ACCEPT": "application/json"} resp = request_func( # nosemgrep: python.requests.best-practice.use-timeout.use-timeout @@ -144,7 +144,7 @@ def _call_ers_api(self, endpoint, action_result, data=None, allow_unknown=True, ) except Exception as e: self.debug_print("Exception occurred: {}".format(e)) - return action_result.set_status(phantom.APP_ERROR, CISCOISE_ERR_REST_API, e), ret_data + return action_result.set_status(phantom.APP_ERROR, CISCOISE_ERROR_REST_API, e), ret_data if not (200 <= resp.status_code < 399): error_message = resp.text @@ -156,7 +156,7 @@ def _call_ers_api(self, endpoint, action_result, data=None, allow_unknown=True, return ( action_result.set_status( phantom.APP_ERROR, - CISCOISE_ERR_REST_API_ERR_CODE, + CISCOISE_REST_API_ERROR_CODE, code=resp.status_code, message=error_message ), @@ -190,13 +190,13 @@ def _call_rest_api(self, endpoint, action_result, schema=None, data=None, allow_ auth=self._auth) except Exception as e: self.debug_print("Exception occurred: {}".format(e)) - return action_result.set_status(phantom.APP_ERROR, CISCOISE_ERR_REST_API, e), ret_data + return action_result.set_status(phantom.APP_ERROR, CISCOISE_ERROR_REST_API, e), ret_data if resp.status_code != 200: return ( action_result.set_status( phantom.APP_ERROR, - CISCOISE_ERR_REST_API_ERR_CODE, + CISCOISE_REST_API_ERROR_CODE, code=resp.status_code, message=resp.text, ), @@ -210,14 +210,14 @@ def _call_rest_api(self, endpoint, action_result, schema=None, data=None, allow_ response_dict = xmltodict.parse(xml) except Exception as e: self.debug_print("Exception occurred: {}".format(e)) - return action_result.set_status(phantom.APP_ERROR, CISCOISE_ERR_UNABLE_TO_PARSE_REPLY, e), ret_data + return action_result.set_status(phantom.APP_ERROR, CISCOISE_ERROR_UNABLE_TO_PARSE_REPLY, e), ret_data ret_data = response_dict if schema is not None: v = Validator(schema, allow_unknown=allow_unknown) if v.validate(ret_data) is False: - action_result.set_status(phantom.APP_ERROR, CISCOISE_ERR_UNABLE_TO_PARSE_REPLY) + action_result.set_status(phantom.APP_ERROR, CISCOISE_ERROR_UNABLE_TO_PARSE_REPLY) action_result.append_to_message(v.errors) return action_result.get_status(), ret_data @@ -372,15 +372,15 @@ def _logoff_system(self, param): remote_coa = ret_data.get("remoteCoA") if remote_coa is None: - return action_result.set_status(phantom.APP_ERROR, CISCOISE_ERR_PARSE_REPLY) + return action_result.set_status(phantom.APP_ERROR, CISCOISE_ERROR_PARSE_REPLY) result = remote_coa.get("results") if result is None: - return action_result.set_status(phantom.APP_ERROR, CISCOISE_ERR_PARSE_REPLY) + return action_result.set_status(phantom.APP_ERROR, CISCOISE_ERROR_PARSE_REPLY) if result == "false": - return action_result.set_status(phantom.APP_ERROR, CISCOISE_ERR_LOGOFF_SYSTEM) + return action_result.set_status(phantom.APP_ERROR, CISCOISE_ERROR_LOGOFF_SYSTEM) return action_result.set_status(phantom.APP_SUCCESS) @@ -412,15 +412,15 @@ def _terminate_session(self, param): remote_coa = ret_data.get("remoteCoA") if remote_coa is None: - return action_result.set_status(phantom.APP_ERROR, CISCOISE_ERR_PARSE_REPLY) + return action_result.set_status(phantom.APP_ERROR, CISCOISE_ERROR_PARSE_REPLY) result = remote_coa.get("results") if result is None: - return action_result.set_status(phantom.APP_ERROR, CISCOISE_ERR_PARSE_REPLY) + return action_result.set_status(phantom.APP_ERROR, CISCOISE_ERROR_PARSE_REPLY) if result == "false": - return action_result.set_status(phantom.APP_ERROR, CISCOISE_ERR_TERMINATE_SESSION) + return action_result.set_status(phantom.APP_ERROR, CISCOISE_ERROR_TERMINATE_SESSION) return action_result.set_status(phantom.APP_SUCCESS, CISCOISE_SUCC_SESSION_TERMINATED) @@ -602,7 +602,7 @@ def _handle_policy_change(self, action_result, param, change_type="apply"): payload["OperationAdditionalData"]["additionalData"][0]["name"] = "ipAddress" else: return ( - action_result.set_status(phantom.APP_ERROR, CISCOISE_ERR_MAC_AND_IP_NOT_SPECIFIED), + action_result.set_status(phantom.APP_ERROR, CISCOISE_ERROR_MAC_AND_IP_NOT_SPECIFIED), ret_data, ) @@ -708,14 +708,14 @@ def _test_connectivity_to_device(self, base_url, verify=True): verify=verify) except Exception as e: self.debug_print("Exception is test connectivity: {}".format(e)) - return self.set_status_save_progress(phantom.APP_ERROR, CISCOISE_ERR_TEST_CONNECTIVITY_FAILED) + return self.set_status_save_progress(phantom.APP_ERROR, CISCOISE_ERROR_TEST_CONNECTIVITY_FAILED) if resp.status_code == 200: return self.set_status_save_progress(phantom.APP_SUCCESS, CISCOISE_SUCC_TEST_CONNECTIVITY_PASSED) else: return self.set_status_save_progress( phantom.APP_ERROR, - CISCOISE_ERR_TEST_CONNECTIVITY_FAILED_ERR_CODE, + CISCOISE_TEST_CONNECTIVITY_FAILED_ERROR_CODE, code=resp.status_code ) diff --git a/ciscoise_consts.py b/ciscoise_consts.py index 9dab218..dd95e0c 100644 --- a/ciscoise_consts.py +++ b/ciscoise_consts.py @@ -1,6 +1,6 @@ # File: ciscoise_consts.py # -# Copyright (c) 2014-2022 Splunk Inc. +# Copyright (c) 2014-2023 Splunk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -33,22 +33,22 @@ ERS_POLICIES = ":9060/ers/config/ancpolicy" # Error/Success -CISCOISE_ERR_TEST_CONNECTIVITY_FAILED = "Test connectivity failed" -CISCOISE_ERR_TEST_CONNECTIVITY_FAILED_ERR_CODE = "Test connectivity failed with status code: '{code}'" +CISCOISE_ERROR_TEST_CONNECTIVITY_FAILED = "Test connectivity failed" +CISCOISE_TEST_CONNECTIVITY_FAILED_ERROR_CODE = "Test connectivity failed with status code: '{code}'" CISCOISE_SUCC_TEST_CONNECTIVITY_PASSED = "Test connectivity passed" -CISCOISE_ERR_REST_API = "REST Api error" -CISCOISE_ERR_REST_API_ERR_CODE = "REST Api error with status code: {code}, Message from server: {message}" -CISCOISE_ERR_UNABLE_TO_PARSE_REPLY = "Parsing error, Unable to convert xml reply to json" +CISCOISE_ERROR_REST_API = "REST Api error" +CISCOISE_REST_API_ERROR_CODE = "REST Api error with status code: {code}, Message from server: {message}" +CISCOISE_ERROR_UNABLE_TO_PARSE_REPLY = "Parsing error, Unable to convert xml reply to json" CISCOISE_SUCC_SESSION_TERMINATED = "Session terminated" -CISCOISE_ERR_PARSE_REPLY = "Error parsing reply" -CISCOISE_ERR_TERMINATE_SESSION = "Session termination failed. Session possibly not found" -CISCOISE_ERR_LOGOFF_SYSTEM = "System Logoff failed" -CISCOISE_ERR_MAC_AND_IP_NOT_SPECIFIED = "Please specify a valid mac or ip address to execute action" -CISCOISE_ERR_ACTION_FAILED = "Action failed with error code: {error_code}" +CISCOISE_ERROR_PARSE_REPLY = "Error parsing reply" +CISCOISE_ERROR_TERMINATE_SESSION = "Session termination failed. Session possibly not found" +CISCOISE_ERROR_LOGOFF_SYSTEM = "System Logoff failed" +CISCOISE_ERROR_MAC_AND_IP_NOT_SPECIFIED = "Please specify a valid mac or ip address to execute action" +CISCOISE_ERROR_ACTION_FAILED = "Action failed with error code: {error_code}" CISCOISE_SUCC_LIST_ENDPOINTS = "{0} Endpoints found" CISCOISE_SUCC_GET_ENDPOINT = "Endpoint found" CISCOISE_SUCC_UPDATE_ENDPOINT = "Endpoint updated" -CISCOISE_ERR_INVALID_PARAM = "Please provide a non-zero positive integer in {param}" +CISCOISE_ERROR_INVALID_PARAM = "Please provide a non-zero positive integer in {param}" CISCOISE_MAP_IP_ABSENT_ERROR = "Please provide either mac address or ip address" CISCOISE_ERS_CRED_MISSING = "ERS credentials in asset configuration are required for this action" DEFAULT_MAX_RESULTS = 7 diff --git a/manual_readme_content.md b/manual_readme_content.md index 6d14ff0..4cc9e20 100644 --- a/manual_readme_content.md +++ b/manual_readme_content.md @@ -1,5 +1,5 @@ [comment]: # " File: README.md" -[comment]: # " Copyright (c) 2014-2022 Splunk Inc." +[comment]: # " Copyright (c) 2014-2023 Splunk Inc." [comment]: # "" [comment]: # " SPLUNK CONFIDENTIAL - Use or disclosure of this material in whole or in part" [comment]: # " without a valid written license from Splunk Inc. is PROHIBITED." @@ -82,7 +82,7 @@ "name": "guestUser", "guestInfo": { "userName": "DS3ewdsa34wWE", - "password": "asdlkj324ew", + "password": "asdlkj324ew", # pragma: allowlist secret "enabled": true }, "guestAccessInfo": { @@ -110,7 +110,7 @@ "enabled": true, "password": "*******", "changePassword": true, - "passwordIDStore": "Internal Users" + "passwordIDStore": "Internal Users" # pragma: allowlist secret } } @@ -140,7 +140,7 @@ "pushIdSupport": false }, "tacacsSettings": { - "sharedSecret": "aaa" + "sharedSecret": "aaa" # pragma: allowlist secret }, "profileName": "Cisco", "NetworkDeviceIPList": [ diff --git a/release_notes/unreleased.md b/release_notes/unreleased.md index fbcb2fd..96e416d 100644 --- a/release_notes/unreleased.md +++ b/release_notes/unreleased.md @@ -1 +1,2 @@ **Unreleased** +* Updated requests and certifi dependencies in order to use platform packages [PAPP-30822,PAPP-31096] diff --git a/requirements.txt b/requirements.txt index 20258f1..757f9df 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,2 @@ Cerberus==1.3.4 -requests==2.25.0 xmltodict==0.12.0 diff --git a/tox.ini b/tox.ini index 127a08b..c4644ad 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [flake8] max-line-length = 145 max-complexity = 28 -ignore = F403,E128,E126,E111,E121,E127,E731,E201,E202,F405,E722,D,W292 +extend-ignore = F403,E128,E126,E111,E121,E127,E731,E201,E202,F405,E722,D,W292 [isort] line_length = 145 diff --git a/wheels/py3/setuptools-60.8.2-py3-none-any.whl b/wheels/py3/setuptools-60.8.2-py3-none-any.whl deleted file mode 100644 index a64ea49..0000000 Binary files a/wheels/py3/setuptools-60.8.2-py3-none-any.whl and /dev/null differ diff --git a/wheels/py3/setuptools-69.0.2-py3-none-any.whl b/wheels/py3/setuptools-69.0.2-py3-none-any.whl new file mode 100644 index 0000000..a609341 Binary files /dev/null and b/wheels/py3/setuptools-69.0.2-py3-none-any.whl differ diff --git a/wheels/shared/certifi-2021.10.8-py2.py3-none-any.whl b/wheels/shared/certifi-2021.10.8-py2.py3-none-any.whl deleted file mode 100644 index fbcb86b..0000000 Binary files a/wheels/shared/certifi-2021.10.8-py2.py3-none-any.whl and /dev/null differ diff --git a/wheels/shared/chardet-3.0.4-py2.py3-none-any.whl b/wheels/shared/chardet-3.0.4-py2.py3-none-any.whl deleted file mode 100644 index d276977..0000000 Binary files a/wheels/shared/chardet-3.0.4-py2.py3-none-any.whl and /dev/null differ diff --git a/wheels/shared/idna-2.10-py2.py3-none-any.whl b/wheels/shared/idna-2.10-py2.py3-none-any.whl deleted file mode 100644 index 41225cb..0000000 Binary files a/wheels/shared/idna-2.10-py2.py3-none-any.whl and /dev/null differ diff --git a/wheels/shared/requests-2.25.0-py2.py3-none-any.whl b/wheels/shared/requests-2.25.0-py2.py3-none-any.whl deleted file mode 100644 index c3f28e5..0000000 Binary files a/wheels/shared/requests-2.25.0-py2.py3-none-any.whl and /dev/null differ diff --git a/wheels/shared/urllib3-1.26.8-py2.py3-none-any.whl b/wheels/shared/urllib3-1.26.8-py2.py3-none-any.whl deleted file mode 100644 index bad52ab..0000000 Binary files a/wheels/shared/urllib3-1.26.8-py2.py3-none-any.whl and /dev/null differ