forked from splunk-soar-connectors/crowdstrike
-
Notifications
You must be signed in to change notification settings - Fork 0
/
crowdstrike_consts.py
57 lines (52 loc) · 3.08 KB
/
crowdstrike_consts.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File: crowdstrike_consts.py
#
# Copyright (c) 2016-2020 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# either express or implied. See the License for the specific language governing permissions
# and limitations under the License.
#
#
# Json keys specific to the app's input parameters/config and the output result
CROWDSTRIKE_JSON_URL = "url"
CROWDSTRIKE_FILTER_REQUEST_STR = '{0}rest/container?page_size=0'\
'&_filter_asset={1}'\
'&_filter_name__contains="{2}"'\
'&_filter_start_time__gte="{3}"'
# Status messages for the app
CROWDSTRIKE_SUCC_CONNECTIVITY_TEST = "Connectivity test passed"
CROWDSTRIKE_ERR_CONNECTIVITY_TEST = "Connectivity test failed"
CROWDSTRIKE_ERR_CONNECTING = "Error connecting to server"
CROWDSTRIKE_ERR_FROM_SERVER = "Error from Server, Status Code: {status}, Message: {message}"
CROWDSTRIKE_UNABLE_TO_PARSE_DATA = "Unable to parse data from server"
CROWDSTRIKE_ERR_EVENTS_FETCH = "Error occurred while fetching the DetectionSummaryEvents from the CrowdStrike server datafeed URL stream"
CROWDSTRIKE_LIMIT_VALIDATION_ALLOW_ZERO_MSG = "Please provide zero or a valid positive integer value in the {parameter} parameter"
CROWDSTRIKE_LIMIT_VALIDATION_MSG = "Please provide a valid non-zero positive integer value in the {parameter} parameter"
CROWDSTRIKE_ERROR_CODE = "Error code unavailable"
CROWDSTRIKE_ERROR_MESSAGE = "Unknown error occurred. Please check the asset configuration and|or action parameters."
CROWDSTRIKE_INTEGER_VALIDATION_MESSAGE = "Please provide a valid integer value in the {} parameter"
# Progress messages format string
CROWDSTRIKE_USING_BASE_URL = "Using base url: {base_url}"
CROWDSTRIKE_BASE_ENDPOINT = "/sensors/entities/datafeed/v1"
CROWDSTRIKE_ERR_RESOURCES_KEY_EMPTY = "Resources key empty or not present"
CROWDSTRIKE_ERR_DATAFEED_EMPTY = "Datafeed key empty or not present"
CROWDSTRIKE_ERR_META_KEY_EMPTY = "Meta key empty or not present"
CROWDSTRIKE_ERR_SESSION_TOKEN_NOT_FOUND = "Session token, not found"
CROWDSTRIKE_MSG_GETTING_EVENTS = "Getting maximum {max_events} DetectionSummaryEvents from id {lower_id} onwards (ids might not be contiguous)"
CROWDSTRIKE_NO_MORE_FEEDS_AVAILABLE = "No more feeds available"
CROWDSTRIKE_JSON_UUID = "uuid"
CROWDSTRIKE_JSON_API_KEY = "api_key"
CROWDSTRIKE_JSON_ACCESS = "access"
CROWDSTRIKE_ERR_CONN_FAILED = "Please make sure the system time is correct."
CROWDSTRIKE_ERR_CONN_FAILED += "\r\nCrowdStrike credentials validation might fail in case the time is misconfigured."
CROWDSTRIKE_ERR_CONN_FAILED += "\r\nYou can also try choosing a different Access Type"
DEFAULT_POLLNOW_EVENTS_COUNT = 2000
DEFAULT_EVENTS_COUNT = 10000
DEFAULT_BLANK_LINES_ALLOWABLE_LIMIT = 50