Skip to content

Commit

Permalink
Removed requests, six and indirect requirements from requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
bb-splunk committed Oct 19, 2023
1 parent 58a763b commit f96acc6
Show file tree
Hide file tree
Showing 20 changed files with 125 additions and 150 deletions.
216 changes: 108 additions & 108 deletions README.md

Large diffs are not rendered by default.

50 changes: 15 additions & 35 deletions awswafv2.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"product_name": "WAF V2",
"product_version_regex": ".*",
"publisher": "Splunk",
"license": "Copyright (c) 2021 Splunk Inc.",
"license": "Copyright (c) 2021-2023 Splunk Inc.",
"app_version": "2.1.8",
"utctime_updated": "2022-01-07T20:07:08.000000Z",
"package_name": "phantom_awswafv2",
"main_module": "awswafv2_connector.py",
"min_phantom_version": "4.10.0.40961",
"min_phantom_version": "5.5.0",
"fips_compliant": true,
"app_wizard_version": "1.0.0",
"python_version": "3",
Expand All @@ -25,51 +25,31 @@
"wheel": [
{
"module": "boto3",
"input_file": "wheels/boto3-1.17.30-py2.py3-none-any.whl"
"input_file": "wheels/shared/boto3-1.17.30-py2.py3-none-any.whl"
},
{
"module": "botocore",
"input_file": "wheels/botocore-1.20.30-py2.py3-none-any.whl"
},
{
"module": "certifi",
"input_file": "wheels/certifi-2021.10.8-py2.py3-none-any.whl"
},
{
"module": "chardet",
"input_file": "wheels/chardet-3.0.4-py2.py3-none-any.whl"
},
{
"module": "docutils",
"input_file": "wheels/docutils-0.16-py2.py3-none-any.whl"
},
{
"module": "idna",
"input_file": "wheels/idna-2.10-py2.py3-none-any.whl"
"input_file": "wheels/shared/botocore-1.20.30-py2.py3-none-any.whl"
},
{
"module": "jmespath",
"input_file": "wheels/jmespath-0.10.0-py2.py3-none-any.whl"
"input_file": "wheels/shared/jmespath-0.10.0-py2.py3-none-any.whl"
},
{
"module": "python_dateutil",
"input_file": "wheels/python_dateutil-2.8.2-py2.py3-none-any.whl"
},
{
"module": "requests",
"input_file": "wheels/requests-2.25.0-py2.py3-none-any.whl"
"input_file": "wheels/shared/python_dateutil-2.8.2-py2.py3-none-any.whl"
},
{
"module": "s3transfer",
"input_file": "wheels/s3transfer-0.3.4-py2.py3-none-any.whl"
"input_file": "wheels/shared/s3transfer-0.3.7-py2.py3-none-any.whl"
},
{
"module": "six",
"input_file": "wheels/six-1.15.0-py2.py3-none-any.whl"
"input_file": "wheels/shared/six-1.16.0-py2.py3-none-any.whl"
},
{
"module": "urllib3",
"input_file": "wheels/urllib3-1.26.7-py2.py3-none-any.whl"
"input_file": "wheels/shared/urllib3-1.26.18-py2.py3-none-any.whl"
}
]
},
Expand Down Expand Up @@ -338,7 +318,7 @@
"data_path": "action_result.parameter.credentials",
"data_type": "string",
"example_values": [
"{'AccessKeyId': 'ASIASJL6ZZZZZ3M7QC2J', 'Expiration': '2021-06-07 22:28:04', 'SecretAccessKey': 'ZZZZZAmvLPictcVBPvjJx0d7MRezOuxiLCMZZZZZ', 'SessionToken': 'ZZZZZXIvYXdzEN///////////wEaDFRU0s4AVrw0k0oYICK4ATAzOqzAkg9bHY29lYmP59UvVOHjLufOy4s7SnAzOxGqGIXnukLis4TWNhrJl5R5nYyimrm6K/9d0Cw2SW9gO0ZRjEJHWJ+yY5Qk2QpWctS2BGn4n+G8cD6zEweCCMj+ScI5p8n7YI4wOdvXvOsVMmjV6F09Ujqr1w+NwoKXlglznXGs/7Q1kNZOMiioEhGUyoiHbQb37GCKslDK+oqe0KNaUKQ96YCepaLgMbMquDgdAM8I0TTxUO0o5ILF/gUyLT04R7QlOfktkdh6Qt0atTS+xeKi1hirKRizpJ8jjnxGQIikPRToL2v3ZZZZZZ=='}"
"{'AccessKeyId': '*REDACTED*', 'Expiration': '2021-06-07 22:28:04', 'SecretAccessKey': '*REDACTED*', 'SessionToken': '*REDACTED*'}"
],
"contains": [
"aws credentials"
Expand Down Expand Up @@ -531,7 +511,7 @@
"data_path": "action_result.parameter.credentials",
"data_type": "string",
"example_values": [
"{'AccessKeyId': 'ASIASJL6ZZZZZ3M7QC2J', 'Expiration': '2021-06-07 22:28:04', 'SecretAccessKey': 'ZZZZZAmvLPictcVBPvjJx0d7MRezOuxiLCMZZZZZ', 'SessionToken': 'ZZZZZXIvYXdzEN///////////wEaDFRU0s4AVrw0k0oYICK4ATAzOqzAkg9bHY29lYmP59UvVOHjLufOy4s7SnAzOxGqGIXnukLis4TWNhrJl5R5nYyimrm6K/9d0Cw2SW9gO0ZRjEJHWJ+yY5Qk2QpWctS2BGn4n+G8cD6zEweCCMj+ScI5p8n7YI4wOdvXvOsVMmjV6F09Ujqr1w+NwoKXlglznXGs/7Q1kNZOMiioEhGUyoiHbQb37GCKslDK+oqe0KNaUKQ96YCepaLgMbMquDgdAM8I0TTxUO0o5ILF/gUyLT04R7QlOfktkdh6Qt0atTS+xeKi1hirKRizpJ8jjnxGQIikPRToL2v3ZZZZZZ=='}"
"{'AccessKeyId': '*REDACTED*', 'Expiration': '2021-06-07 22:28:04', 'SecretAccessKey': '*REDACTED*', 'SessionToken': '*REDACTED*'}"
],
"contains": [
"aws credentials"
Expand Down Expand Up @@ -678,7 +658,7 @@
"data_path": "action_result.parameter.credentials",
"data_type": "string",
"example_values": [
"{'AccessKeyId': 'ASIASJL6ZZZZZ3M7QC2J', 'Expiration': '2021-06-07 22:28:04', 'SecretAccessKey': 'ZZZZZAmvLPictcVBPvjJx0d7MRezOuxiLCMZZZZZ', 'SessionToken': 'ZZZZZXIvYXdzEN///////////wEaDFRU0s4AVrw0k0oYICK4ATAzOqzAkg9bHY29lYmP59UvVOHjLufOy4s7SnAzOxGqGIXnukLis4TWNhrJl5R5nYyimrm6K/9d0Cw2SW9gO0ZRjEJHWJ+yY5Qk2QpWctS2BGn4n+G8cD6zEweCCMj+ScI5p8n7YI4wOdvXvOsVMmjV6F09Ujqr1w+NwoKXlglznXGs/7Q1kNZOMiioEhGUyoiHbQb37GCKslDK+oqe0KNaUKQ96YCepaLgMbMquDgdAM8I0TTxUO0o5ILF/gUyLT04R7QlOfktkdh6Qt0atTS+xeKi1hirKRizpJ8jjnxGQIikPRToL2v3ZZZZZZ=='}"
"{'AccessKeyId': '*REDACTED*', 'Expiration': '2021-06-07 22:28:04', 'SecretAccessKey': '*REDACTED*', 'SessionToken': '*REDACTED*'}"
],
"contains": [
"aws credentials"
Expand Down Expand Up @@ -815,7 +795,7 @@
"data_path": "action_result.parameter.credentials",
"data_type": "string",
"example_values": [
"{'AccessKeyId': 'ASIASJL6ZZZZZ3M7QC2J', 'Expiration': '2021-06-07 22:28:04', 'SecretAccessKey': 'ZZZZZAmvLPictcVBPvjJx0d7MRezOuxiLCMZZZZZ', 'SessionToken': 'ZZZZZXIvYXdzEN///////////wEaDFRU0s4AVrw0k0oYICK4ATAzOqzAkg9bHY29lYmP59UvVOHjLufOy4s7SnAzOxGqGIXnukLis4TWNhrJl5R5nYyimrm6K/9d0Cw2SW9gO0ZRjEJHWJ+yY5Qk2QpWctS2BGn4n+G8cD6zEweCCMj+ScI5p8n7YI4wOdvXvOsVMmjV6F09Ujqr1w+NwoKXlglznXGs/7Q1kNZOMiioEhGUyoiHbQb37GCKslDK+oqe0KNaUKQ96YCepaLgMbMquDgdAM8I0TTxUO0o5ILF/gUyLT04R7QlOfktkdh6Qt0atTS+xeKi1hirKRizpJ8jjnxGQIikPRToL2v3ZZZZZZ=='}"
"{'AccessKeyId': '*REDACTED*', 'Expiration': '2021-06-07 22:28:04', 'SecretAccessKey': '*REDACTED*', 'SessionToken': '*REDACTED*'}"
],
"contains": [
"aws credentials"
Expand Down Expand Up @@ -943,7 +923,7 @@
"data_path": "action_result.parameter.credentials",
"data_type": "string",
"example_values": [
"{'AccessKeyId': 'ASIASJL6ZZZZZ3M7QC2J', 'Expiration': '2021-06-07 22:28:04', 'SecretAccessKey': 'ZZZZZAmvLPictcVBPvjJx0d7MRezOuxiLCMZZZZZ', 'SessionToken': 'ZZZZZXIvYXdzEN///////////wEaDFRU0s4AVrw0k0oYICK4ATAzOqzAkg9bHY29lYmP59UvVOHjLufOy4s7SnAzOxGqGIXnukLis4TWNhrJl5R5nYyimrm6K/9d0Cw2SW9gO0ZRjEJHWJ+yY5Qk2QpWctS2BGn4n+G8cD6zEweCCMj+ScI5p8n7YI4wOdvXvOsVMmjV6F09Ujqr1w+NwoKXlglznXGs/7Q1kNZOMiioEhGUyoiHbQb37GCKslDK+oqe0KNaUKQ96YCepaLgMbMquDgdAM8I0TTxUO0o5ILF/gUyLT04R7QlOfktkdh6Qt0atTS+xeKi1hirKRizpJ8jjnxGQIikPRToL2v3ZZZZZZ=='}"
"{'AccessKeyId': '*REDACTED*', 'Expiration': '2021-06-07 22:28:04', 'SecretAccessKey': '*REDACTED*', 'SessionToken': '*REDACTED*'}"
],
"contains": [
"aws credentials"
Expand All @@ -956,4 +936,4 @@
"versions": "EQ(*)"
}
]
}
}
3 changes: 1 addition & 2 deletions awswafv2_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import botocore.response as br
import phantom.app as phantom
import requests
import six
from boto3 import Session, client
from botocore.config import Config
from phantom.action_result import ActionResult
Expand Down Expand Up @@ -64,7 +63,7 @@ def _sanitize_data(self, cur_obj):

if isinstance(cur_obj, dict):
new_dict = {}
for k, v in six.iteritems(cur_obj):
for k, v in cur_obj.items():
if isinstance(v, br.StreamingBody):
content = v.read()
new_dict[k] = json.loads(content)
Expand Down
1 change: 1 addition & 0 deletions release_notes/unreleased.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
**Unreleased**
* Removed requests, six and indirect dependencies from requirements
5 changes: 0 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
boto3==1.17.30
botocore==1.20.30
docutils==0.16
jmespath==0.10.0
requests==2.25.0
s3transfer==0.3.4
six==1.15.0
Binary file removed wheels/certifi-2021.10.8-py2.py3-none-any.whl
Binary file not shown.
Binary file removed wheels/chardet-3.0.4-py2.py3-none-any.whl
Binary file not shown.
Binary file removed wheels/docutils-0.16-py2.py3-none-any.whl
Binary file not shown.
Binary file removed wheels/idna-2.10-py2.py3-none-any.whl
Binary file not shown.
Binary file removed wheels/requests-2.25.0-py2.py3-none-any.whl
Binary file not shown.
Binary file removed wheels/s3transfer-0.3.4-py2.py3-none-any.whl
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file added wheels/shared/six-1.16.0-py2.py3-none-any.whl
Binary file not shown.
Binary file not shown.
Binary file removed wheels/six-1.15.0-py2.py3-none-any.whl
Binary file not shown.
Binary file removed wheels/urllib3-1.26.7-py2.py3-none-any.whl
Binary file not shown.

0 comments on commit f96acc6

Please sign in to comment.