Skip to content

Commit

Permalink
[PLGN-617] Deprecate matplotlib plugin (#2127)
Browse files Browse the repository at this point in the history
* [PLGN-133] Samanage/Solarwinds updates (#1623)

* Updated docker file to include curl for adding attachment

* Updated examples for help.md to include strings for ids

* Updated output ids to strings for consistency

* Updated attach incident example

* Removed print statement

* Updated formatting with black check

---------

Co-authored-by: Dympna Laverty <dympna_laverty@rapid7.com>

* [PLGN-133] Solarwinds - updated id outputs as integers to line up with expected inputs (#1624)

* Updated to output ids as integers to line up with expected inputs

* Updated example fields

* Updated example fields

---------

Co-authored-by: Dympna Laverty <dympna_laverty@rapid7.com>

* [PLGN-46] - Cybereason - Archive Sensor Functionality (#1566)

* added get_sensor action

* fixed checksum

* sensor stats added acc

* finished spec file, regenerated

* generated archive sensor action

* added example output for archive sensor

* refactoring for lint

* updated descriptions in spec file for validator

* created and tested 2 new actions, need to add unit tests

* update spec file

* refactored quarantine action, added unit tests for most of the actions

* added unit tests 95 percent coverage

* fix for plugin validator

* fix lint

* prospector fix

* unit test fix

* dympna change

* igor updates

* lukasz changes

* formatting help.md to use 2 spaces instead of 4

* updated version history note

* Cybereason output fix (#1727)

* updated output

* updated output for cybereaosn

* regen

* version bump

* specific fake email

* fixed schema issue

* changing back to rapid7 vendor

* version bump in helpmd

* [MC-1452] Update Okta plugin (#1733)

* [MC-1452] Update Okta plugin

* [MC-1452] Fixed test

* [MC-1452] Fix prospector

* [MC-1452] Update help.md

* [MC-1452] Update SDK image to latest version

* [MC-1452] Update unit tests for task

---------

Co-authored-by: Cyprian Dankowski <cyprian_dankowski@rapid7.com>

* IC fixes (#1792)

* [MC-1452] Return status code in Monitor Logs task in Okta plugin (#1764)

* [MC-1452] Return status code in Monitor Logs task

* [MC-1452] Update exceptions in api.py

* [MC-1452] Fix prospector

* [MC-1452] Use logger instance

* Change port input back to string (#1809)

* [MC-1452] Update pagination in Monitor Logs task in Okta plugin (#1838)

* [MC-1452] Update pagination in Monitor Logs task in Okta plugin

* [MC-1452] Update unit tests

* Updated armorblox plugin with the review comments. (#1721)

* Initial commit for armorblox plugin

* Fix validate errors

* Timestamp changes

* Updated armorblox-sdk 0.1.4 version in requirements.txt

* Updated the suggestions for plugin.spec.yaml

* Update plugins/armorblox/help.md

* Update plugins/armorblox/help.md

* Update plugins/armorblox/help.md

* Update plugins/armorblox/help.md

* Update plugins/armorblox/help.md

* Update plugins/armorblox/help.md

* Update plugins/armorblox/help.md

* Updated review comments

* Update plugins/armorblox/icon_armorblox/triggers/get_incidents/schema.py

* Update plugins/armorblox/unit_test/payloads/get_remediation_action.json

* Update plugins/armorblox/unit_test/payloads/get_remediation_action.json

* Updated armorblox plugin with the required fixes

* Updated plugin with latest fixes

* Updated plugin with parameterized on test cases

* "Fixed review comments"

* Updated support field to community in plugin.spec.yaml

---------

Co-authored-by: Ankita Sharma <ankita.sharma@xoriant.com>
Co-authored-by: Rajat Upadhyaya <45485+urajat@users.noreply.github.com>

* [SOAR-14571] - Zoom - Delete User Returns Json Parsing Error (#1846)

* updated status codes + black formatting

* regen

* added examples to plugin spec

* Refresh

* removed quotes from variables in spec

* tidying up

* changed imports to work with github validators

* changed task unitest imports to work with github validators

* fixed unit tests

* Added example outputs to help.md

* spec & help changes + status codes fix

* checksum

* period validation

* revert description change

* remove full stop in trigger schema

* run black linter, fix unit tests and validators (#1857)

* Zoom Validator Fixes (#1870)

* [PLGN-361] Cloud Enable & Remove Defective Endpoint Actions from ICS Plugin (#1958)

* plgn-380 salesforce add deduping (#1993)

* plgn-412 remove clean data and stop converting output (#2002)

* [PLGN-560] Update Proofpoint TAP task handling (#2069)

* Updated task cutofftime, removed cleaning of logs, added debug

* Updated task cutofftime, removed cleaning of logs, added debug

* Removed page index from state if resetting collection time to max lookback

* Updated unit tests following task updates

---------

Co-authored-by: Dympna Laverty <dympna_laverty@rapid7.com>

* [PLGN-560] Update proofpoint task subsequent run (#2077)

* Updated task handling of query interval out of range

* Updated unit test following task function update

---------

Co-authored-by: Dympna Laverty <dympna_laverty@rapid7.com>

* Moved plugin status to obsolete

---------

Co-authored-by: Dympna Laverty <dympna_laverty@rapid7.com>
Co-authored-by: TKuzas-R7 <107193006+TKuzas-R7@users.noreply.github.com>
Co-authored-by: dsliwinski-r7 <73613193+dsliwinski-r7@users.noreply.github.com>
Co-authored-by: Cyprian Dankowski <cyprian_dankowski@rapid7.com>
Co-authored-by: Conor <93926445+cmcnally-r7@users.noreply.github.com>
Co-authored-by: SamhithaTatipalli <57620888+SamhithaTatipalli@users.noreply.github.com>
Co-authored-by: Ankita Sharma <ankita.sharma@xoriant.com>
Co-authored-by: Rajat Upadhyaya <45485+urajat@users.noreply.github.com>
Co-authored-by: llaszuk-r7 <99184394+llaszuk-r7@users.noreply.github.com>
Co-authored-by: Mike Rinehart <32079048+mrinehart-r7@users.noreply.github.com>
  • Loading branch information
11 people committed Nov 21, 2023
1 parent cc96c06 commit 6b793fc
Show file tree
Hide file tree
Showing 18 changed files with 111 additions and 108 deletions.
14 changes: 7 additions & 7 deletions plugins/matplotlib/.CHECKSUM
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
{
"spec": "36cd27807ed9505b0fd9d389bc8b50e2",
"spec": "a08b2fe669cda4852e9518a47ad56982",
"manifest": "cb9f2a0c6812a8be74169c3220a7ba57",
"setup": "60de923a251f440cf982a23c7e3775bc",
"schemas": [
{
"identifier": "create_distribution_plot/schema.py",
"hash": "abbd8bf8c932fb795dc4139191eb880b"
"hash": "792f65b33c8a1df87d91b2d428cab53d"
},
{
"identifier": "create_joint_plot/schema.py",
"hash": "152265a25e621cb7951b86ae7c2d1bef"
"hash": "fc600281960a69cd96a77a88a2611035"
},
{
"identifier": "create_line_plot/schema.py",
"hash": "0f2c6bf8d0e2ba459375fd9d23994a4a"
"hash": "4936aa1cbf635ac563280326e103ca4a"
},
{
"identifier": "create_pair_plot/schema.py",
"hash": "90a2e0512367ec4a1a65ff3e11b258f1"
"hash": "a6f7ae17608cdea4e4c956af0c0a0aa4"
},
{
"identifier": "create_scatter_plot/schema.py",
"hash": "62e883a803fe647be01294f896a8220b"
"hash": "ed4cf35a1ab1f9ce62ad4246c48235be"
},
{
"identifier": "connection/schema.py",
"hash": "da5382221ca2a33a2f854e17b068d502"
"hash": "9d48eac9e9c489dbd77132ce1378f009"
}
]
}
15 changes: 7 additions & 8 deletions plugins/matplotlib/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
FROM rapid7/insightconnect-python-3-38-plugin:5
FROM rapid7/insightconnect-python-3-38-plugin:4

LABEL organization=rapid7
LABEL sdk=python

RUN apt-get update && apt-get install -y build-essential gcc

# Add source code
WORKDIR /python/src
ADD ./plugin.spec.yaml /plugin.spec.yaml
ADD . /python/src

# 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
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/komand_matplotlib"]
ENTRYPOINT ["/usr/local/bin/icon_matplotlib"]
1 change: 1 addition & 0 deletions plugins/matplotlib/help.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ _This plugin does not contain any troubleshooting information._

# Version History

* 1.0.3 - Set plugin status to obsolete. This plugin will no longer be supported.
* 1.0.2 - Updated numpy package
* 1.0.1 - New spec and help.md format for the Extension Library
* 1.0.0 - Initial plugin
Expand Down
11 changes: 8 additions & 3 deletions plugins/matplotlib/komand_matplotlib/actions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# GENERATED BY KOMAND SDK - DO NOT EDIT
# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT

from .create_line_plot.action import CreateLinePlot

from .create_scatter_plot.action import CreateScatterPlot

from .create_distribution_plot.action import CreateDistributionPlot

from .create_joint_plot.action import CreateJointPlot
from .create_line_plot.action import CreateLinePlot

from .create_pair_plot.action import CreatePairPlot
from .create_scatter_plot.action import CreateScatterPlot
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# GENERATED BY KOMAND SDK - DO NOT EDIT
from .action import CreateDistributionPlot
# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT
from .action import CreateDistributionPlot
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GENERATED BY KOMAND SDK - DO NOT EDIT
# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT
import insightconnect_plugin_runtime
import json

Expand All @@ -13,12 +13,12 @@ class Input:
CSV_DATA = "csv_data"
KDE = "kde"
MARGIN_STYLE = "margin_style"


class Output:
CSV = "csv"
PLOT = "plot"


class CreateDistributionPlotInput(insightconnect_plugin_runtime.Input):
schema = json.loads("""
Expand All @@ -30,7 +30,6 @@ class CreateDistributionPlotInput(insightconnect_plugin_runtime.Input):
"type": "string",
"title": "Color Palette",
"description": "Color palette of the plot",
"default": "dark",
"enum": [
"deep",
"muted",
Expand All @@ -49,24 +48,22 @@ class CreateDistributionPlotInput(insightconnect_plugin_runtime.Input):
},
"csv_data": {
"type": "string",
"format": "bytes",
"display_type": "bytes",
"title": "CSV Data",
"displayType": "bytes",
"description": "Base64 encoded CSV data from which to create the plot",
"format": "bytes",
"order": 1
},
"kde": {
"type": "boolean",
"title": "KDE",
"description": "Display a kernel density estimation line on the plot",
"default": false,
"order": 3
},
"margin_style": {
"type": "string",
"title": "Margin Style",
"description": "Style of the margin of the plot",
"default": "dark",
"enum": [
"darkgrid",
"whitegrid",
Expand All @@ -83,7 +80,8 @@ class CreateDistributionPlotInput(insightconnect_plugin_runtime.Input):
"csv_data",
"kde",
"margin_style"
]
],
"definitions": {}
}
""")

Expand All @@ -99,27 +97,28 @@ class CreateDistributionPlotOutput(insightconnect_plugin_runtime.Output):
"properties": {
"csv": {
"type": "string",
"format": "bytes",
"display_type": "bytes",
"title": "CSV",
"displayType": "bytes",
"description": "Base64 encoded CSV data used to generate the plot",
"format": "bytes",
"order": 1
},
"plot": {
"type": "string",
"format": "bytes",
"display_type": "bytes",
"title": "Plot",
"displayType": "bytes",
"description": "Base64 encoded PNG plot data (can be attached to an email)",
"format": "bytes",
"order": 2
}
},
"required": [
"csv",
"plot"
]
],
"definitions": {}
}
""")

def __init__(self):
super(self.__class__, self).__init__(self.schema)
super(self.__class__, self).__init__(self.schema)
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# GENERATED BY KOMAND SDK - DO NOT EDIT
from .action import CreateJointPlot
# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT
from .action import CreateJointPlot
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GENERATED BY KOMAND SDK - DO NOT EDIT
# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT
import insightconnect_plugin_runtime
import json

Expand All @@ -14,12 +14,12 @@ class Input:
MARGIN_STYLE = "margin_style"
X_VALUE = "x_value"
Y_VALUE = "y_value"


class Output:
CSV = "csv"
PLOT = "plot"


class CreateJointPlotInput(insightconnect_plugin_runtime.Input):
schema = json.loads("""
Expand All @@ -31,7 +31,6 @@ class CreateJointPlotInput(insightconnect_plugin_runtime.Input):
"type": "string",
"title": "Color Palette",
"description": "Color palette of the plot",
"default": "dark",
"enum": [
"deep",
"muted",
Expand All @@ -44,17 +43,16 @@ class CreateJointPlotInput(insightconnect_plugin_runtime.Input):
},
"csv_data": {
"type": "string",
"format": "bytes",
"display_type": "bytes",
"title": "CSV Data",
"displayType": "bytes",
"description": "Base64 encoded CSV data from which to create the plot",
"format": "bytes",
"order": 1
},
"kind": {
"type": "string",
"title": "Kind",
"description": "Kind of data representation to use in the created plot",
"default": "scatter",
"enum": [
"scatter",
"reg",
Expand All @@ -68,7 +66,6 @@ class CreateJointPlotInput(insightconnect_plugin_runtime.Input):
"type": "string",
"title": "Margin Style",
"description": "Style of the margin of the plot",
"default": "dark",
"enum": [
"darkgrid",
"whitegrid",
Expand Down Expand Up @@ -98,7 +95,8 @@ class CreateJointPlotInput(insightconnect_plugin_runtime.Input):
"margin_style",
"x_value",
"y_value"
]
],
"definitions": {}
}
""")

Expand All @@ -114,27 +112,28 @@ class CreateJointPlotOutput(insightconnect_plugin_runtime.Output):
"properties": {
"csv": {
"type": "string",
"format": "bytes",
"display_type": "bytes",
"title": "CSV",
"displayType": "bytes",
"description": "Base64 encoded CSV data used to generate the plot",
"format": "bytes",
"order": 1
},
"plot": {
"type": "string",
"format": "bytes",
"display_type": "bytes",
"title": "Plot",
"displayType": "bytes",
"description": "Base64 encoded PNG plot data (can be attached to an email)",
"format": "bytes",
"order": 2
}
},
"required": [
"csv",
"plot"
]
],
"definitions": {}
}
""")

def __init__(self):
super(self.__class__, self).__init__(self.schema)
super(self.__class__, self).__init__(self.schema)
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# GENERATED BY KOMAND SDK - DO NOT EDIT
from .action import CreateLinePlot
# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT
from .action import CreateLinePlot
Loading

0 comments on commit 6b793fc

Please sign in to comment.