Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SOAR-18025] Cloudflare 1.0.1 Release #2910

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions plugins/cloudflare/.CHECKSUM
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
{
"spec": "fe53c542f3b291d041d4a252ce4094ee",
"manifest": "1121dcc90662f0aa4d35713f5748ff87",
"setup": "ed76788111135900c021c6676b2d4785",
"spec": "17d49926f52933cd5a744f82039f2ffb",
"manifest": "f547bed16c5601f68b2547a7fb26806c",
"setup": "46f973133df4e5e84d5e9d6c1394e711",
"schemas": [
{
"identifier": "createZoneAccessRule/schema.py",
"hash": "e659fecf60f6568eef94a6eeb5d2d2af"
"hash": "bcb7805d78e35adb55b83805d2b851b6"
},
{
"identifier": "deleteZoneAccessRule/schema.py",
"hash": "b3ca7e6fda35f9155f052491b6637b82"
"hash": "992eb6fe2e85cd9f1fdcc3de0717131a"
},
{
"identifier": "getAccounts/schema.py",
"hash": "42d2852c752661b498fbe4e58c5d815f"
"hash": "0d0406706b0f0804daae4490ee3259a4"
},
{
"identifier": "getLists/schema.py",
"hash": "655aadce3b13eca92e61e63f572d3f7b"
"hash": "eeb2e7f22904112e8999f09337e3f11c"
},
{
"identifier": "getZoneAccessRules/schema.py",
"hash": "e55a70ab8e16ed8d37f2d8d97af64369"
"hash": "aca2d59713088dbe9c352a2385ca2746"
},
{
"identifier": "getZones/schema.py",
"hash": "a4440f0524b6d4582986fc0580e95faf"
"hash": "26bc28ab7033fd33bdfc2a8a96cfe7ae"
},
{
"identifier": "connection/schema.py",
"hash": "922e1bccbfd76e8eb2367ae1b18c51d2"
"hash": "0def942bad267cc268e86f8a6aad2f15"
}
]
}
18 changes: 6 additions & 12 deletions plugins/cloudflare/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
FROM rapid7/insightconnect-python-3-38-plugin:4
# Refer to the following documentation for available SDK parent images: https://komand.github.io/python/sdk.html#version
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.1.4

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
USER nobody

ENTRYPOINT ["/usr/local/bin/icon_cloudflare"]
ENTRYPOINT ["/usr/local/bin/icon_cloudflare"]
24 changes: 12 additions & 12 deletions plugins/cloudflare/bin/icon_cloudflare
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 = "Cloudflare"
Vendor = "rapid7"
Version = "1.0.0"
Version = "1.0.1"
Description = "Cloudflare is a global network designed to make everything you connect to the Internet secure, private, fast, and reliable. This plugin allows you to list accounts, zones, zone access rules and lists and create or delete access rules for specific zones"


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

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

class ICONCloudflare(insightconnect_plugin_runtime.Plugin):
def __init__(self):
Expand All @@ -34,18 +34,18 @@ def main():
description=Description,
connection=connection.Connection()
)
self.add_action(actions.CreateZoneAccessRule())

self.add_action(actions.DeleteZoneAccessRule())

self.add_action(actions.GetAccounts())


self.add_action(actions.GetZones())

self.add_action(actions.GetLists())


self.add_action(actions.CreateZoneAccessRule())

self.add_action(actions.DeleteZoneAccessRule())

self.add_action(actions.GetZoneAccessRules())

self.add_action(actions.GetZones())



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