From f7e580ab3900041c7d19ee01a370c34592b1f946 Mon Sep 17 00:00:00 2001 From: Shivam Sandbhor Date: Tue, 11 Jul 2023 16:44:26 +0530 Subject: [PATCH] Implement review suggestions Signed-off-by: Shivam Sandbhor --- docs/source/data_acquisition/TIProviders.rst | 2 +- docs/source/getting_started/msticpyconfig.rst | 2 +- msticpy/context/tiproviders/crowdsec.py | 8 +------- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/docs/source/data_acquisition/TIProviders.rst b/docs/source/data_acquisition/TIProviders.rst index 49699c16f..d3c9f957d 100644 --- a/docs/source/data_acquisition/TIProviders.rst +++ b/docs/source/data_acquisition/TIProviders.rst @@ -271,7 +271,7 @@ fictitious - the format of the keys may differ from what is shown Provider: "AzSTI" CrowdSec: Args: - AuthKey: 12ffVvqTaV1fYf7eieoic21rftntHQhO2Hdsxyzabcd + AuthKey: [PLACEHOLDER] Primary: True Provider: "CrowdSec" diff --git a/docs/source/getting_started/msticpyconfig.rst b/docs/source/getting_started/msticpyconfig.rst index 86c1a5378..0184243dd 100644 --- a/docs/source/getting_started/msticpyconfig.rst +++ b/docs/source/getting_started/msticpyconfig.rst @@ -139,7 +139,7 @@ Currently supported provider names are: Provider: "OPR" CrowdSec: Args: - AuthKey: 12ffVvqTaV1fYf7eieoic21rftntHQhO2Hdsxyzabcd + AuthKey: [PLACEHOLDER] Primary: True Provider: "CrowdSec" diff --git a/msticpy/context/tiproviders/crowdsec.py b/msticpy/context/tiproviders/crowdsec.py index 6c7831db3..572c90f98 100644 --- a/msticpy/context/tiproviders/crowdsec.py +++ b/msticpy/context/tiproviders/crowdsec.py @@ -36,14 +36,8 @@ class CrowdSec(HttpTIProvider): "User-Agent": "crowdsec-msticpy-tiprovider/v1.0.0", }, ), - "ipv6": APILookupParams( - path="/v2/smoke/{observable}", - headers={ - "x-api-key": "{AuthKey}", - "User-Agent": "crowdsec-msticpy-tiprovider/v1.0.0", - }, - ), } + _QUERIES["ipv6"] = _QUERIES["ipv4"] def parse_results(self, response: Dict) -> Tuple[bool, ResultSeverity, Any]: if self._failed_response(response):