Skip to content

Commit 777448a

Browse files
authored
[PLGN-561] Insight VM - Scan Completion Trigger (#2087) (#2182)
* [PLGN-561] Insight VM - Scan Completion Trigger (#2087) * Init commit - Simple connection test refactor * Spec mapped draft * Add new trigger outline * Trigger template * Fix snyk | Succesful scan API call | manifest fixed for new trigger * Save point #1 * Save point #2 * Map inputs * Start mapping outputs * Save point #3 * Save point #4 * All API calls mapped * Save point #5 * Add task init and update risk score to float * Add msft strip and remove nexpose id * Save point #6 query search and api calls * Update output, successful call and outputs * Update docstrings and type hints * Save point #7 * Save point #8 * Update single line in query * filter results and status_id * query fixed * Condense results finished * Changes made to filter * Cacheing begin * Save point #9 * Save point #10 * Dockerfile restored and debugging statements * Get latest to get latest completed * Trigger + cacheing works * it works .. * Trigger working and doc strings added * Some prospector issues fixed * Prospector fixes * Version updated to 620 * Remove software update id * Removed risk score * Help MD fix etc * Remove risk score * Update help md again * Update dockerfile * Add asset group & cve input * Small dot updates plus verify method * Updated to paged resource request * Update to determine cache for resource request * Black formatting * Update doc strings and comments * Update single letter variables * Fix prospector * Add severity and cvss score input * Validator fix * Update to remove condense results * Remove hostname and ip input * Update spec file with corrections * Remove caching * Add dot get * Fix plugin validator * Update :fingerscrossed * [PLGN-634] InsightVM - Asset Search | JsonDecode Error (#2185) * Improved error handling ever so slightly * Changed single letter variables * Change error to data
1 parent b97fb44 commit 777448a

File tree

15 files changed

+653
-124
lines changed

15 files changed

+653
-124
lines changed

plugins/rapid7_insightvm/.CHECKSUM

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"spec": "e8da36ef239156809597572946df2ea3",
3-
"manifest": "138d918083ad59c0f8de7c018212a929",
4-
"setup": "5f4d67fe3ecbe62a6ac891aa442e20b9",
2+
"spec": "8c162487e4fc21d316ae671ff14bdada",
3+
"manifest": "1ad7045d507da48f30f04999d8e73b3b",
4+
"setup": "1c6dcdf34833dd8b8ada2f2a80ae8279",
55
"schemas": [
66
{
77
"identifier": "add_scan_engine_pool_engine/schema.py",
@@ -21,7 +21,7 @@
2121
},
2222
{
2323
"identifier": "asset_vulnerability_solution/schema.py",
24-
"hash": "58bbe516a723ad6f7ab992533d3379b7"
24+
"hash": "c42741c78364bf55ff0c82fd735f3612"
2525
},
2626
{
2727
"identifier": "create_asset_group/schema.py",
@@ -370,6 +370,10 @@
370370
{
371371
"identifier": "new_scans/schema.py",
372372
"hash": "a907a9c47939be620564f30a3e8a6533"
373+
},
374+
{
375+
"identifier": "scan_completion/schema.py",
376+
"hash": "25386d06cb7cd3fe16a007c2aabe7c87"
373377
}
374378
]
375379
}

plugins/rapid7_insightvm/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
FROM rapid7/insightconnect-python-3-38-slim-plugin:5
1+
FROM rapid7/insightconnect-python-3-plugin:5
22
LABEL organization=komand
3+
34
LABEL sdk=python
45
LABEL type=plugin
56

plugins/rapid7_insightvm/bin/komand_rapid7_insightvm

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

77
Name = "Rapid7 InsightVM Console"
88
Vendor = "rapid7"
9-
Version = "6.1.1"
9+
Version = "6.2.0"
1010
Description = "InsightVM is a powerful vulnerability management tool which finds, prioritizes, and remediates vulnerabilities. This plugin uses an orchestrator to get top remediations, scan results and start scans"
1111

1212

@@ -38,6 +38,8 @@ def main():
3838

3939
self.add_trigger(triggers.NewExceptionRequest())
4040

41+
self.add_trigger(triggers.ScanCompletion())
42+
4143
self.add_action(actions.Scan())
4244

4345
self.add_action(actions.GetScan())

0 commit comments

Comments
 (0)