Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

updates for vulnerabilities #36

Merged
merged 3 commits into from
Jun 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ jobs:
strategy:
fail-fast: true
matrix:
python-version: ["3.7", "3.8", "3.9"]
nautobot-version: ["1.2.0"]
python-version: ["3.8", "3.9", "3.10"]
nautobot-version: ["1.5.9"]
runs-on: "ubuntu-20.04"
env:
INVOKE_NAUTOBOT_CHATOPS_ARISTA_CLOUDVISION_PYTHON_VER: "${{ matrix.python-version }}"
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## v1.3.0 - 2023-06-14

### Changed

- Dropping support for Python 3.7
- Dropping <1.5.9 support of Nautobot
- Update dependencies to close vulnerabilty

## v1.2.0 - 2021-08-31

### Changed
Expand Down
4 changes: 3 additions & 1 deletion nautobot_chatops_arista_cloudvision/cvpgrpcutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ def connect_cv(settings):
# Otherwise, the server is expected to have a valid certificate signed by a well-known CA.
else:
channel_creds = grpc.ssl_channel_credentials()
response = requests.post(f"https://{cvp_host}/cvpservice/login/authenticate.do", auth=(username, password))
response = requests.post(
f"https://{cvp_host}/cvpservice/login/authenticate.do", auth=(username, password)
) # nosec
call_creds = grpc.access_token_call_credentials(response.json()["sessionId"])
# Set up credentials for CVaaS using supplied token.
else:
Expand Down
2 changes: 1 addition & 1 deletion nautobot_chatops_arista_cloudvision/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ def get_token_crt():
)
else:
request = requests.post(
f"https://{CVP_HOST}/cvpservice/login/authenticate.do", auth=(CVP_USERNAME, CVP_PASSWORD)
f"https://{CVP_HOST}/cvpservice/login/authenticate.do", auth=(CVP_USERNAME, CVP_PASSWORD) # nosec
)

with open("token.txt", "w") as tokenfile: # pylint: disable=unspecified-encoding
Expand Down
1 change: 0 additions & 1 deletion nautobot_chatops_arista_cloudvision/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ def get_devices_in_container(dispatcher, container_name=None):
devices = get_cloudvision_container_devices(container_name)

if devices:

dispatcher.send_blocks(
dispatcher.command_response_header(
"cloudvision",
Expand Down
3,648 changes: 2,334 additions & 1,314 deletions poetry.lock

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nautobot-chatops-arista-cloudvision"
version = "1.2.0"
version = "1.3.0"
description = "Nautobot Chatops Arista Cloudvision Integration"
authors = ["Network to Code, LLC <[email protected]>"]
license = "Apache-2.0"
Expand All @@ -21,13 +21,12 @@ packages = [

[tool.poetry.dependencies]
# Used for local development
nautobot = { version = "*", optional = true }
python = "^3.7"
nautobot = "^1.5.9"
python = "^3.8"
protobuf = "^3.17"
cvprac = "^1.0.6"
cloudvision = "^1.1"
nautobot-chatops = "^1.5.0"
certifi = "^2021.5.30"

[tool.poetry.dev-dependencies]
bandit = "*"
Expand Down
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def is_truthy(arg):
namespace.configure(
{
"nautobot_chatops_arista_cloudvision": {
"nautobot_ver": "1.2.0",
"nautobot_ver": "1.5.9",
"project_name": "nautobot_chatops_arista_cloudvision",
"python_ver": "3.8",
"local": False,
Expand Down