Skip to content

Commit 1507b5b

Browse files
authored
Duo Auth - Updated dependencies and SDK to the latest version (6.4.1) (#3670) (#3680)
1 parent da57321 commit 1507b5b

File tree

13 files changed

+59
-35
lines changed

13 files changed

+59
-35
lines changed

plugins/duo_auth/.CHECKSUM

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"spec": "ff85d692a483975710c09a54310d6e74",
3-
"manifest": "c0f72d9ea137585ca83d612bfd3c23bb",
4-
"setup": "426658221d9fe1e3eca5dca34163072a",
2+
"spec": "a608ff2046e7870740b4da17876fafdc",
3+
"manifest": "20599c79d9b145616da5a683b84583f7",
4+
"setup": "77f8b55d504aa3ba58a522e9332ffeaf",
55
"schemas": [
66
{
77
"identifier": "auth/schema.py",
8-
"hash": "3730109fc4e5ae4a226cec9d4caaed6c"
8+
"hash": "226634d43afb2700b07488c0e3a89bdc"
99
},
1010
{
1111
"identifier": "connection/schema.py",
12-
"hash": "3507436916c3cb62d4113a3d5092ac33"
12+
"hash": "86efdbfb30d0a6057d57acdc366a9721"
1313
}
1414
]
1515
}

plugins/duo_auth/Dockerfile

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,36 @@
1-
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.2.3
1+
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.4.1 AS builder
2+
3+
WORKDIR /python/src
4+
5+
ADD ./plugin.spec.yaml /plugin.spec.yaml
6+
ADD ./requirements.txt /python/src/requirements.txt
7+
ADD . /python/src
8+
9+
10+
11+
RUN pip install .
12+
RUN pip uninstall -y setuptools
13+
14+
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.4.1
215

316
LABEL organization=rapid7
417
LABEL sdk=python
518

619
WORKDIR /python/src
720

8-
ADD ./plugin.spec.yaml /plugin.spec.yaml
9-
ADD ./requirements.txt /python/src/requirements.txt
21+
COPY --from=builder /python/src /python/src
22+
COPY --from=builder /plugin.spec.yaml /plugin.spec.yaml
23+
24+
RUN apt-get update && apt-get install ca-certificates -y
25+
1026

1127
RUN if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
1228

13-
ADD . /python/src
29+
ENV PYTHONPATH="/python/src:${PYTHONPATH}"
1430

15-
RUN python setup.py build && python setup.py install
31+
RUN rm -rf /root/.cache;
1632

1733
# User to run plugin code. The two supported users are: root, nobody
1834
USER nobody
1935

20-
ENTRYPOINT ["/usr/local/bin/komand_duo_auth"]
36+
ENTRYPOINT ["python", "/python/src/bin/komand_duo_auth"]

plugins/duo_auth/bin/komand_duo_auth

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ from sys import argv
66

77
Name = "Duo Auth API"
88
Vendor = "rapid7"
9-
Version = "1.0.4"
9+
Version = "1.0.5"
1010
Description = "[Duo](https://duo.com/)'s Trusted Access platform verifies the identity of your users with two-factor authentication and security health of their devices before they connect to the apps they use. The Duo Auth InsightConnect plugin enables users to create and send push notifications from within automation workflows"
1111

1212

plugins/duo_auth/help.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ Example output:
121121

122122
# Version History
123123

124+
* 1.0.5 - Updated dependencies and SDK to the latest version (6.4.1)
124125
* 1.0.4 - Updated dependencies and SDK to the latest version
125126
* 1.0.3 - Upgraded `duo_client` in requirements.txt to version `4.0.0` | Upgraded `duo_client` in vendor folder to version `4.0.0` | Use input and output constants | Change docker image from `komand/python-3-plugin:2` to `komand/python-3-37-slim-plugin:3` to reduce plugin image size
126127
* 1.0.2 - New spec and help.md format for the Extension Library
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT
22

33
from .auth.action import Auth
4-

plugins/duo_auth/komand_duo_auth/actions/auth/schema.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ class Output:
2626

2727

2828
class AuthInput(insightconnect_plugin_runtime.Input):
29-
schema = json.loads(r"""
29+
schema = json.loads(
30+
r"""
3031
{
3132
"type": "object",
3233
"title": "Variables",
@@ -83,14 +84,16 @@ class AuthInput(insightconnect_plugin_runtime.Input):
8384
},
8485
"definitions": {}
8586
}
86-
""")
87+
"""
88+
)
8789

8890
def __init__(self):
8991
super(self.__class__, self).__init__(self.schema)
9092

9193

9294
class AuthOutput(insightconnect_plugin_runtime.Output):
93-
schema = json.loads(r"""
95+
schema = json.loads(
96+
r"""
9497
{
9598
"type": "object",
9699
"title": "Variables",
@@ -128,7 +131,8 @@ class AuthOutput(insightconnect_plugin_runtime.Output):
128131
},
129132
"definitions": {}
130133
}
131-
""")
134+
"""
135+
)
132136

133137
def __init__(self):
134138
super(self.__class__, self).__init__(self.schema)

plugins/duo_auth/komand_duo_auth/connection/schema.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ class Input:
1010

1111

1212
class ConnectionSchema(insightconnect_plugin_runtime.Input):
13-
schema = json.loads(r"""
13+
schema = json.loads(
14+
r"""
1415
{
1516
"type": "object",
1617
"title": "Variables",
@@ -58,7 +59,8 @@ class ConnectionSchema(insightconnect_plugin_runtime.Input):
5859
}
5960
}
6061
}
61-
""")
62+
"""
63+
)
6264

6365
def __init__(self):
6466
super(self.__class__, self).__init__(self.schema)
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT
2-
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT
2-

plugins/duo_auth/plugin.spec.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ support: rapid7
88
supported_versions: ["Duo Client 5.3.0"]
99
status: []
1010
description: "[Duo](https://duo.com/)'s Trusted Access platform verifies the identity of your users with two-factor authentication and security health of their devices before they connect to the apps they use. The Duo Auth InsightConnect plugin enables users to create and send push notifications from within automation workflows"
11-
version: 1.0.4
11+
version: 1.0.5
1212
connection_version: 1
1313
resources:
1414
source_url: https://github.com/rapid7/insightconnect-plugins/tree/master/plugins/duo_auth
@@ -23,15 +23,18 @@ hub_tags:
2323
features: []
2424
sdk:
2525
type: slim
26-
version: 6.2.3
26+
version: 6.4.1
2727
user: nobody
28+
custom_cmd:
29+
- RUN apt-get update && apt-get install ca-certificates -y
2830
key_features:
2931
- Send push notifications for two-factor authentication
3032
requirements:
3133
- Requires a Duo integration key
3234
- Requires a Duo secret key
3335
- Requires a Duo hostname
3436
version_history:
37+
- "1.0.5 - Updated dependencies and SDK to the latest version (6.4.1)"
3538
- "1.0.4 - Updated dependencies and SDK to the latest version"
3639
- "1.0.3 - Upgraded `duo_client` in requirements.txt to version `4.0.0` | Upgraded `duo_client` in vendor folder to version `4.0.0` | Use input and output constants | Change docker image from `komand/python-3-plugin:2` to `komand/python-3-37-slim-plugin:3` to reduce plugin image size"
3740
- "1.0.2 - New spec and help.md format for the Extension Library"

0 commit comments

Comments
 (0)