-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from rapid7/abuseipdb
AbuseIPDB 3.0.1: Improved error handling
- Loading branch information
Showing
19 changed files
with
131 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,27 @@ | ||
FROM komand/python-pypy3-plugin:2 | ||
FROM komand/python-3-37-slim-plugin:3 | ||
# Refer to the following documentation for available SDK parent images: https://komand.github.io/python/sdk.html#version | ||
|
||
LABEL organization=komand | ||
LABEL sdk=python | ||
LABEL type=plugin | ||
|
||
ENV SSL_CERT_FILE /etc/ssl/certs/ca-certificates.crt | ||
ENV SSL_CERT_DIR /etc/ssl/certs | ||
ENV REQUESTS_CA_BUNDLE /etc/ssl/certs/ca-certificates.crt | ||
# Add any custom package dependencies here | ||
# NOTE: Add pip packages to requirements.txt | ||
|
||
ADD ./plugin.spec.yaml /plugin.spec.yaml | ||
ADD . /python/src | ||
# End package dependencies | ||
|
||
# Add source code | ||
WORKDIR /python/src | ||
# Add any package dependencies here | ||
ADD ./plugin.spec.yaml /plugin.spec.yaml | ||
ADD . /python/src | ||
|
||
# End package dependencies | ||
# 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 | ||
|
||
# User to run plugin code. The two supported users are: root, nobody | ||
USER nobody | ||
|
||
ENTRYPOINT ["/usr/local/bin/komand_abuseipdb"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
{ | ||
"body": { | ||
"action": "check_cidr", | ||
"meta": {}, | ||
"input": { | ||
"cidr": "207.126.144.0/20", | ||
"days": "30" | ||
"body": { | ||
"action": "check_cidr", | ||
"input": { | ||
"cidr": "207.126.144.0/20", | ||
"days": "30" | ||
}, | ||
"meta": {} | ||
}, | ||
"connection": { | ||
"credentials": { | ||
"secretKey": "" | ||
} | ||
} | ||
}, | ||
"type": "action_start", | ||
"version": "v1" | ||
} | ||
"type": "action_start", | ||
"version": "v1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
{ | ||
"body": { | ||
"action": "check_cidr", | ||
"meta": {}, | ||
"input": { | ||
"cidr": "1/20", | ||
"days": "30" | ||
"body": { | ||
"action": "check_cidr", | ||
"input": { | ||
"cidr": "1/20", | ||
"days": "30" | ||
}, | ||
"meta": {} | ||
}, | ||
"connection": { | ||
"credentials": { | ||
"secretKey": "" | ||
} | ||
} | ||
}, | ||
"type": "action_start", | ||
"version": "v1" | ||
} | ||
"type": "action_start", | ||
"version": "v1" | ||
} |
Oops, something went wrong.