Skip to content

Commit

Permalink
Salesforce - Task Monitor Users: Improved logging (#2170)
Browse files Browse the repository at this point in the history
  • Loading branch information
igorski-r7 authored and cmcnally-r7 committed Dec 8, 2023
1 parent b149f5f commit d530d12
Show file tree
Hide file tree
Showing 41 changed files with 575 additions and 446 deletions.
26 changes: 13 additions & 13 deletions plugins/salesforce/.CHECKSUM
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
{
"spec": "c8b766efd557c851a9c3181dcaf54464",
"manifest": "555eb92acfda71ed1d255cd0b932e285",
"setup": "229c1c37adbe823c79a2718d4d34b481",
"spec": "39961b8237f24bf66810ef73d84a0b13",
"manifest": "1bf1a6ea3128f9c4c152ba785f0ba17a",
"setup": "adf7f461ad84d7bf7f5c3e81fc9c5b13",
"schemas": [
{
"identifier": "advanced_search/schema.py",
"hash": "179de4c019e98944cea79f1fe7276309"
"hash": "23a8e957376939193be68f4bbbadd396"
},
{
"identifier": "create_record/schema.py",
"hash": "d1c0647714d2723555f2328824b2d112"
"hash": "b34c4a7c225c9290d9b7049abc0623d7"
},
{
"identifier": "delete_record/schema.py",
"hash": "5a5bc6bbb5ed0739dafe19a683c407a0"
"hash": "47c1d595eab0adbcc18dfb8b693b3a56"
},
{
"identifier": "get_blob_data/schema.py",
"hash": "bc9a431b42e6e2b976dfc594209080f9"
"hash": "e61b59c746f208401eef920787f6ff40"
},
{
"identifier": "get_fields/schema.py",
"hash": "054b3e335478d44b28872638b1a3dee9"
"hash": "18f1510eb72bee75f79d07d30ac59458"
},
{
"identifier": "get_record/schema.py",
"hash": "9cfaddf95d8fae04906dac92eb096fda"
"hash": "03fd7c641d78ceb3401fda85ca6a082f"
},
{
"identifier": "simple_search/schema.py",
"hash": "b06060466013f1d3ded8233351e9e9bb"
"hash": "62b22126f4d16f72d58645bb794e53b6"
},
{
"identifier": "update_record/schema.py",
"hash": "e8f054c382b238b4bb809400462ce445"
"hash": "abd8db6f4ed253a25ab63262ef04a734"
},
{
"identifier": "connection/schema.py",
"hash": "fcf31f95b9a83aef05fdbe215a0115de"
"hash": "1656ec1e43c8581104c369faa18c177e"
},
{
"identifier": "monitor_users/schema.py",
"hash": "8b9d82e8786f1601d6c8006551deb227"
"hash": "5f655ee0326da8b7586009e58f28e162"
}
]
}
13 changes: 4 additions & 9 deletions plugins/salesforce/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,15 @@ FROM rapid7/insightconnect-python-3-plugin:5
LABEL organization=rapid7
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
ADD . /python/src

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

# User to run plugin code. The two supported users are: root, nobody
Expand Down
30 changes: 15 additions & 15 deletions plugins/salesforce/bin/komand_salesforce
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 = "Salesforce"
Vendor = "rapid7"
Version = "2.1.4"
Version = "2.1.5"
Description = "The Salesforce plugin allows you to search, update, and manage salesforce records"


Expand Down Expand Up @@ -34,24 +34,24 @@ def main():
description=Description,
connection=connection.Connection()
)
self.add_action(actions.SimpleSearch())

self.add_action(actions.AdvancedSearch())

self.add_action(actions.CreateRecord())


self.add_action(actions.UpdateRecord())

self.add_action(actions.GetRecord())

self.add_action(actions.DeleteRecord())

self.add_action(actions.GetBlobData())


self.add_action(actions.GetFields())

self.add_action(actions.GetRecord())

self.add_action(actions.SimpleSearch())

self.add_action(actions.UpdateRecord())


self.add_action(actions.GetBlobData())

self.add_task(tasks.MonitorUsers())


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

0 comments on commit d530d12

Please sign in to comment.