Skip to content

Commit

Permalink
Automox 2.0.0 release (#2088)
Browse files Browse the repository at this point in the history
* Automox 2.0.0: Fixes to the Vulnerability Sync Actions (#2029)

* Fixes to the Vulnerability Sync Actions

* remove debugging print

* fix bug in update_device action

* help.md generation seems broken, fix manually

* feedback

* review feedback

* Black formatting for automox

* Automox - Fix unit test & PluginValidator checks (#2094)

* Update unit test imports

* Remove redundant unit test

* Update helpmd actions header and links

* Move triggers section below actions

* Help.md save point

* Helpmd refresh

* Insight tooling refresh minus schemas

* Help md violations corrected

* Update checksum and helpmd

* Please be the last of the errors

* Violations fixed

* Update output name

* Title validator fixed

* Update checksum

* Update titles

---------

Co-authored-by: Tyler Schmidtke <86071102+ax-tschmidtke@users.noreply.github.com>
  • Loading branch information
cmcnally-r7 and ax-tschmidtke authored Nov 1, 2023
1 parent 52b209d commit b5eb66e
Show file tree
Hide file tree
Showing 78 changed files with 3,567 additions and 2,449 deletions.
40 changes: 22 additions & 18 deletions plugins/automox/.CHECKSUM
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
{
"spec": "cef7bb305cd296dcfe4c91ad08817421",
"manifest": "3a0cbf67b2811b37bdb4b2261d7dfc9e",
"setup": "7cbcfbc077dc2f9a706059bea2ef8853",
"spec": "84465fc424dd87682adc6d0da7f322a9",
"manifest": "94f36a373309335d3662554011095836",
"setup": "791ef98d183f0b13d81b774b3de1a398",
"schemas": [
{
"identifier": "action_on_vulnerability_sync_batch/schema.py",
"hash": "4b3f998313fe5fcb484c5c4fff7fa004"
},
{
"identifier": "action_on_vulnerability_sync_task/schema.py",
"hash": "52c436eab10c0aeaa9a45b9c9401a4d3"
},
{
"identifier": "create_group/schema.py",
"hash": "b30f9e829c46827c90d201b294ecf048"
Expand All @@ -23,6 +15,14 @@
"identifier": "delete_group/schema.py",
"hash": "66b18c900b75652494434b68687062c3"
},
{
"identifier": "delete_vulnerability_sync_action_set/schema.py",
"hash": "c572818adf8aa5b2663a99a676af543d"
},
{
"identifier": "execute_vulnerability_sync_actions/schema.py",
"hash": "7575fcc4876accb8b39938cb9ec17514"
},
{
"identifier": "get_device_by_hostname/schema.py",
"hash": "13226c5058256e3368c7392eaad8b64d"
Expand All @@ -36,8 +36,8 @@
"hash": "42d9b8777f46e6709a38cf4faf40633c"
},
{
"identifier": "get_vulnerability_sync_batch/schema.py",
"hash": "5765f142f96aa185edc42e9b11f175c4"
"identifier": "get_vulnerability_sync_action_set/schema.py",
"hash": "818d5308aca1e2a9c99393d07a084b73"
},
{
"identifier": "list_devices/schema.py",
Expand All @@ -60,12 +60,16 @@
"hash": "b8d3145226dcf46c7cf14ef0d71e78cd"
},
{
"identifier": "list_vulnerability_sync_batches/schema.py",
"hash": "90bff67fac53fab74fab99f576f6c789"
"identifier": "list_vulnerability_sync_action_set_issues/schema.py",
"hash": "473e78302dc489953559411691330fd9"
},
{
"identifier": "list_vulnerability_sync_action_set_solutions/schema.py",
"hash": "067fc017cdf8fbfdfae8834db77970c5"
},
{
"identifier": "list_vulnerability_sync_tasks/schema.py",
"hash": "4b6eb5774bcfc5e7c0a7c0e0707b83ee"
"identifier": "list_vulnerability_sync_action_sets/schema.py",
"hash": "e9b02d295c7cb84f3dccda85d0c82bb2"
},
{
"identifier": "run_command/schema.py",
Expand All @@ -81,7 +85,7 @@
},
{
"identifier": "upload_vulnerability_sync_file/schema.py",
"hash": "47597b34d180d84050c8ea8297f44e0e"
"hash": "e6577f542f46a5035c6423bbff4bcbb5"
},
{
"identifier": "connection/schema.py",
Expand Down
22 changes: 8 additions & 14 deletions plugins/automox/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
FROM rapid7/insightconnect-python-3-38-slim-plugin:4
# Refer to the following documentation for available SDK parent images: https://komand.github.io/python/sdk.html#version
FROM rapid7/insightconnect-python-3-38-slim-plugin:5

LABEL organization=rapid7
LABEL organization=automox
LABEL sdk=python

# Add any custom package dependencies here
# NOTE: Add pip packages to requirements.txt

# End package dependencies

# Add source code
WORKDIR /python/src

ADD ./plugin.spec.yaml /plugin.spec.yaml
ADD . /python/src
ADD ./requirements.txt /python/src/requirements.txt

# Install pip dependencies
RUN if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

# Install plugin
RUN python setup.py build && python setup.py install
ADD . /python/src

RUN python setup.py build && python setup.py install

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

ENTRYPOINT ["/usr/local/bin/icon_automox"]
ENTRYPOINT ["/usr/local/bin/icon_automox"]
78 changes: 40 additions & 38 deletions plugins/automox/bin/icon_automox
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/env python
# GENERATED BY KOMAND SDK - DO NOT EDIT
# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT
import os
import json
from sys import argv

Name = "Automox"
Vendor = "automox"
Version = "1.2.0"
Version = "2.0.0"
Description = "Automox is modernizing IT operations with continuous visibility, insight, and agility for your entire IT environment"


Expand All @@ -23,7 +23,7 @@ def main():
monkey.patch_all()

import insightconnect_plugin_runtime
from icon_automox import connection, actions, triggers
from icon_automox import connection, actions, triggers, tasks

class ICONAutomox(insightconnect_plugin_runtime.Plugin):
def __init__(self):
Expand All @@ -35,47 +35,49 @@ def main():
connection=connection.Connection()
)
self.add_trigger(triggers.GetEvents())

self.add_action(actions.ActionOnVulnerabilitySyncBatch())

self.add_action(actions.ActionOnVulnerabilitySyncTask())

self.add_action(actions.CreateGroup())

self.add_action(actions.DeleteDevice())

self.add_action(actions.DeleteGroup())


self.add_action(actions.ListOrganizations())

self.add_action(actions.ListOrganizationUsers())

self.add_action(actions.ListPolicies())

self.add_action(actions.ListDevices())

self.add_action(actions.GetDeviceByHostname())

self.add_action(actions.GetDeviceByIp())


self.add_action(actions.UpdateDevice())

self.add_action(actions.DeleteDevice())

self.add_action(actions.GetDeviceSoftware())

self.add_action(actions.GetVulnerabilitySyncBatch())

self.add_action(actions.ListDevices())

self.add_action(actions.ListGroups())

self.add_action(actions.ListOrganizationUsers())

self.add_action(actions.ListOrganizations())

self.add_action(actions.ListPolicies())

self.add_action(actions.ListVulnerabilitySyncBatches())

self.add_action(actions.ListVulnerabilitySyncTasks())


self.add_action(actions.RunCommand())

self.add_action(actions.UpdateDevice())


self.add_action(actions.ListGroups())

self.add_action(actions.CreateGroup())

self.add_action(actions.UpdateGroup())


self.add_action(actions.DeleteGroup())

self.add_action(actions.UploadVulnerabilitySyncFile())


self.add_action(actions.GetVulnerabilitySyncActionSet())

self.add_action(actions.ListVulnerabilitySyncActionSets())

self.add_action(actions.ListVulnerabilitySyncActionSetIssues())

self.add_action(actions.ListVulnerabilitySyncActionSetSolutions())

self.add_action(actions.ExecuteVulnerabilitySyncActions())

self.add_action(actions.DeleteVulnerabilitySyncActionSet())


"""Run plugin"""
cli = insightconnect_plugin_runtime.CLI(ICONAutomox())
Expand Down
Loading

0 comments on commit b5eb66e

Please sign in to comment.