Skip to content

Commit e3944f3

Browse files
Release RDAP 2.0.8
1 parent 42c769d commit e3944f3

File tree

8 files changed

+21
-19
lines changed

8 files changed

+21
-19
lines changed

plugins/rdap/.CHECKSUM

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"spec": "934200e070993a5b74ba5ba0739273a1",
3-
"manifest": "7de249d265470ebee65d4689bf09ffdd",
4-
"setup": "4a24003efaa87274080a7ff56b4f6848",
2+
"spec": "02b2228d7025684f2690f42d37579d9d",
3+
"manifest": "8f6bdeb39b25cadf2c5824aa09c35fe1",
4+
"setup": "38a0af68f586f68822ad9dfd6c369bde",
55
"schemas": [
66
{
77
"identifier": "asnLookup/schema.py",

plugins/rdap/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.3.10 AS builder
1+
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.4.2 AS builder
22

33
WORKDIR /python/src
44

@@ -11,7 +11,7 @@ ADD . /python/src
1111
RUN pip install .
1212
RUN pip uninstall -y setuptools
1313

14-
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.3.10
14+
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.4.2
1515

1616
LABEL organization=rapid7
1717
LABEL sdk=python

plugins/rdap/bin/icon_rdap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ from sys import argv
66

77
Name = "RDAP"
88
Vendor = "rapid7"
9-
Version = "2.0.7"
9+
Version = "2.0.8"
1010
Description = "The Registration Data Access Protocol (RDAP) is the successor to WHOIS. Like WHOIS, RDAP provides access to information about Internet resources (domain names, autonomous system numbers, and IP addresses)"
1111

1212

plugins/rdap/help.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ Example output:
448448

449449
# Version History
450450

451+
* 2.0.8 - Updated OpenRDAP API endpoint | Updated SDK to the latest version (6.4.2)
451452
* 2.0.7 - Updated SDK to the latest version (6.3.10)
452453
* 2.0.6 - Updated SDK to the latest version (6.3.3)
453454
* 2.0.5 - Updated SDK to the latest version (6.2.5)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BASE_URL = "https://rdap.org"
1+
BASE_URL = "https://rdap.net"
22
ASN_ENDPOINT = BASE_URL + "/autnum/{asn}"
33
DOMAIN_LOOKUP_ENDPOINT = BASE_URL + "/domain/{domain}"
44
IP_ENDPOINT = BASE_URL + "/ip/{ip_address}"

plugins/rdap/plugin.spec.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: RDAP
66
description: The Registration Data Access Protocol (RDAP) is the successor to WHOIS.
77
Like WHOIS, RDAP provides access to information about Internet resources (domain
88
names, autonomous system numbers, and IP addresses)
9-
version: 2.0.7
9+
version: 2.0.8
1010
connection_version: 2
1111
vendor: rapid7
1212
support: rapid7
@@ -16,13 +16,14 @@ fedramp_ready: true
1616
supported_versions: [RDAP 20-12-2022]
1717
sdk:
1818
type: slim
19-
version: 6.3.10
19+
version: 6.4.2
2020
user: nobody
2121
key_features:
2222
- IP Lookup
2323
- Domain Lookup
2424
- ASN Lookup
2525
version_history:
26+
- 2.0.8 - Updated OpenRDAP API endpoint | Updated SDK to the latest version (6.4.2)
2627
- 2.0.7 - Updated SDK to the latest version (6.3.10)
2728
- 2.0.6 - Updated SDK to the latest version (6.3.3)
2829
- 2.0.5 - Updated SDK to the latest version (6.2.5)

plugins/rdap/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(
66
name="rdap-rapid7-plugin",
7-
version="2.0.7",
7+
version="2.0.8",
88
description="The Registration Data Access Protocol (RDAP) is the successor to WHOIS. Like WHOIS, RDAP provides access to information about Internet resources (domain names, autonomous system numbers, and IP addresses)",
99
author="rapid7",
1010
author_email="",

plugins/rdap/unit_test/util.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,25 @@ def __init__(self, status_code: int, filename: str = None):
4242
def json(self):
4343
return json.loads(self.text)
4444

45-
if kwargs.get("url") == "https://rdap.org/domain/example.com":
45+
if kwargs.get("url") == "https://rdap.net/domain/example.com":
4646
return MockResponse(200, "domain_lookup_found_domain.json.resp")
47-
if kwargs.get("url") == "https://rdap.org/domain/example":
47+
if kwargs.get("url") == "https://rdap.net/domain/example":
4848
return MockResponse(404, "")
49-
if kwargs.get("url") == "https://rdap.org/domain/examplefail.com":
49+
if kwargs.get("url") == "https://rdap.net/domain/examplefail.com":
5050
return MockResponse(404, "")
5151

52-
if kwargs.get("url").startswith("https://rdap.org/autnum/12345"):
52+
if kwargs.get("url").startswith("https://rdap.net/autnum/12345"):
5353
return MockResponse(200, "asn_lookup.json.resp")
54-
if kwargs.get("url").startswith("https://rdap.org/autnum/99999"):
54+
if kwargs.get("url").startswith("https://rdap.net/autnum/99999"):
5555
return MockResponse(404, "")
5656

57-
if kwargs.get("url") == "https://rdap.org/ip/2.2.2.2":
57+
if kwargs.get("url") == "https://rdap.net/ip/2.2.2.2":
5858
return MockResponse(200, "ip_lookup_with_asn.json.resp")
59-
if kwargs.get("url") == "https://rdap.org/ip/1.1.1.1":
59+
if kwargs.get("url") == "https://rdap.net/ip/1.1.1.1":
6060
return MockResponse(200, "ip_lookup.json.resp")
61-
if kwargs.get("url") == "https://rdap.org/ip/invalid_ip":
61+
if kwargs.get("url") == "https://rdap.net/ip/invalid_ip":
6262
return MockResponse(400, "")
63-
if kwargs.get("url") == "https://rdap.org/ip/255.255.11.135":
63+
if kwargs.get("url") == "https://rdap.net/ip/255.255.11.135":
6464
return MockResponse(404, "")
6565

6666
raise NotImplementedError("Not implemented", kwargs)

0 commit comments

Comments
 (0)