Skip to content

Commit

Permalink
Merge pull request #11 from splunk-soar-connectors/next
Browse files Browse the repository at this point in the history
Merging next to main for release 2.1.2
  • Loading branch information
sodle-splunk authored Apr 3, 2024
2 parents faceb32 + fc11da4 commit 4b5d3ad
Show file tree
Hide file tree
Showing 21 changed files with 481 additions and 447 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/generate-doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Generate Readme Doc
on:
workflow_dispatch:
push:
paths:
- '*.json'
- 'readme.html'
- 'manual_readme_content.md'
tags-ignore:
- '**'
branches-ignore:
- next
- main
jobs:
generate-doc:
runs-on: ubuntu-latest
steps:
- uses: 'phantomcyber/dev-cicd-tools/github-actions/generate-doc@main'
with:
GITHUB_TOKEN: ${{ secrets.SOAR_APPS_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/review-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Review Release
concurrency:
group: app-release
cancel-in-progress: true
permissions:
contents: read
id-token: write
statuses: write
on:
workflow_dispatch:
inputs:
task_token:
description: 'StepFunction task token'
required: true

jobs:
review:
uses: 'phantomcyber/dev-cicd-tools/.github/workflows/review-release.yml@main'
with:
task_token: ${{ inputs.task_token }}
secrets:
resume_release_role_arn: ${{ secrets.RESUME_RELEASE_ROLE_ARN }}
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
repos:
- repo: https://github.com/phantomcyber/dev-cicd-tools
rev: v1.9
rev: v1.16
hooks:
- id: org-hook
- id: package-app-dependencies
- repo: https://github.com/Yelp/detect-secrets
rev: v1.1.0
rev: v1.4.0
hooks:
- id: detect-secrets
args: ['--no-verify', '--exclude-files', '^f5bigipltm.json$']
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) 2019-2022 Splunk Inc.
Copyright (c) 2019-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
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Splunk SOAR F5 BIG-IP LTM
Copyright (c) 2019-2022 Splunk Inc.
Copyright (c) 2019-2024 Splunk Inc.

Third-party Software Attributions:

Expand Down
820 changes: 410 additions & 410 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) 2019-2022 Splunk Inc.
# Copyright (c) 2019-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
38 changes: 15 additions & 23 deletions f5bigipltm.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"product_name": "Local Traffic Manager",
"product_version_regex": ".*",
"publisher": "Splunk",
"license": "Copyright (c) 2019-2022 Splunk Inc.",
"app_version": "2.1.1",
"license": "Copyright (c) 2019-2024 Splunk Inc.",
"app_version": "2.1.2",
"python_version": "3",
"fips_compliant": true,
"utctime_updated": "2022-01-19T00:53:17.000000Z",
"package_name": "phantom_f5bigipltm",
"main_module": "f5bigipltm_connector.py",
"min_phantom_version": "5.1.0",
"min_phantom_version": "6.1.1",
"app_wizard_version": "1.0.0",
"latest_tested_versions": [
"BIG-IP 15.0.0 Build 0.0.39 Final"
Expand Down Expand Up @@ -3252,32 +3252,24 @@
"wheel": [
{
"module": "beautifulsoup4",
"input_file": "wheels/beautifulsoup4-4.9.1-py3-none-any.whl"
"input_file": "wheels/py3/beautifulsoup4-4.9.1-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": "idna",
"input_file": "wheels/idna-2.10-py2.py3-none-any.whl"
},
"module": "soupsieve",
"input_file": "wheels/py3/soupsieve-2.3.2.post1-py3-none-any.whl"
}
]
},
"pip39_dependencies": {
"wheel": [
{
"module": "requests",
"input_file": "wheels/requests-2.25.0-py2.py3-none-any.whl"
"module": "beautifulsoup4",
"input_file": "wheels/py3/beautifulsoup4-4.9.1-py3-none-any.whl"
},
{
"module": "soupsieve",
"input_file": "wheels/soupsieve-2.3.1-py3-none-any.whl"
},
{
"module": "urllib3",
"input_file": "wheels/urllib3-1.26.7-py2.py3-none-any.whl"
"input_file": "wheels/py3/soupsieve-2.5-py3-none-any.whl"
}
]
}
}
}
14 changes: 7 additions & 7 deletions f5bigipltm_connector.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# File: f5bigipltm_connector.py
#
# Copyright (c) 2019-2022 Splunk Inc.
# Copyright (c) 2019-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 Expand Up @@ -112,9 +112,9 @@ def _process_json_response(self, r, action_result):
message = "Error from server. Status Code: {0} Data from server: {1}".format(
r.status_code, error_msg)
except Exception as e:
_, error_msg = self._get_error_message_from_exception(e)
_, error_message = self._get_error_message_from_exception(e)
message = "Unknown error occurred while processing the output response from the server. " \
"Status Code: {0}. Data from server: {1}".format(r.status_code, error_msg)
"Status Code: {0}. Data from server: {1}".format(r.status_code, error_message)

return RetVal(action_result.set_status(phantom.APP_ERROR, message), None)

Expand Down Expand Up @@ -213,9 +213,9 @@ def _make_rest_call(self, endpoint, action_result, method="get", data=None, **kw
try:
url = "{}{}".format(self._base_url, endpoint)
except Exception as e:
error_code, error_msg = self._get_error_message_from_exception(e)
error_code, error_message = self._get_error_message_from_exception(e)
return RetVal(action_result.set_status(phantom.APP_ERROR, "Error occurred while creating the REST URL for the API call. "
"Error Code: {0}. Error Message: {1}".format(error_code, error_msg)), None)
"Error Code: {0}. Error Message: {1}".format(error_code, error_message)), None)

try:
r = request_func(
Expand All @@ -225,9 +225,9 @@ def _make_rest_call(self, endpoint, action_result, method="get", data=None, **kw
data=data,
**kwargs)
except Exception as e:
error_code, error_msg = self._get_error_message_from_exception(e)
error_code, error_message = self._get_error_message_from_exception(e)
return RetVal(action_result.set_status(phantom.APP_ERROR, "Error occurred while making the REST call to the F5 server. "
"Error Code: {0}. Error Message: {1}".format(error_code, error_msg)), None)
"Error Code: {0}. Error Message: {1}".format(error_code, error_message)), None)

return self._process_response(r, action_result)

Expand Down
1 change: 1 addition & 0 deletions release_notes/2.1.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Remove requests dependency and use the one built into the platform instead [PAPP-33443]
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
beautifulsoup4==4.9.1
requests==2.25.0
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -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
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/idna-2.10-py2.py3-none-any.whl
Binary file not shown.
Binary file added wheels/py3/soupsieve-2.3.2.post1-py3-none-any.whl
Binary file not shown.
Binary file added wheels/py3/soupsieve-2.5-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/soupsieve-2.3.1-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 4b5d3ad

Please sign in to comment.