mirror of
https://github.com/openappsec/openappsec.git
synced 2025-09-29 19:24:26 +03:00
Nov_12_2023-Dev
This commit is contained in:
@@ -128,6 +128,8 @@ typedef enum ngx_http_plugin_metric_type
|
||||
AVERAGE_RSS_MEMORY_USAGE,
|
||||
MAX_VM_MEMORY_USAGE,
|
||||
MAX_RSS_MEMORY_USAGE,
|
||||
REQUEST_OVERALL_SIZE_COUNT,
|
||||
RESPONSE_OVERALL_SIZE_COUNT,
|
||||
|
||||
METRIC_TYPES_COUNT
|
||||
} ngx_http_plugin_metric_type_e;
|
||||
|
@@ -88,7 +88,7 @@ public:
|
||||
|
||||
// TODO: merge both loadConfiguration functions to one with vector of streams input when moving to c++17
|
||||
// (c++ < 17 does not support copy of streams and thus it cannot be part of any container)
|
||||
virtual bool loadConfiguration(istream &json_contents) = 0;
|
||||
virtual bool loadConfiguration(istream &json_contents, const string &path = "") = 0;
|
||||
virtual bool loadConfiguration(const vector<string> &configuration_flags) = 0;
|
||||
|
||||
virtual AsyncLoadConfigStatus
|
||||
|
@@ -60,6 +60,7 @@ DEFINE_FLAG(D_COMPONENT, D_ALL)
|
||||
DEFINE_FLAG(D_STREAMING_DATA, D_STREAMING)
|
||||
DEFINE_FLAG(D_CHECKSUM, D_STREAMING)
|
||||
DEFINE_FLAG(D_WAAP, D_COMPONENT)
|
||||
DEFINE_FLAG(D_OA_SCHEMA_UPDATER, D_WAAP)
|
||||
DEFINE_FLAG(D_WAAP_API, D_WAAP)
|
||||
DEFINE_FLAG(D_WAAP_AUTOMATION, D_WAAP)
|
||||
DEFINE_FLAG(D_WAAP_REGEX, D_WAAP)
|
||||
@@ -76,6 +77,7 @@ DEFINE_FLAG(D_COMPONENT, D_ALL)
|
||||
DEFINE_FLAG(D_WAAP_BASE64, D_WAAP)
|
||||
DEFINE_FLAG(D_WAAP_JSON, D_WAAP)
|
||||
DEFINE_FLAG(D_WAAP_BOT_PROTECTION, D_WAAP)
|
||||
DEFINE_FLAG(D_WAAP_STREAMING_PARSING, D_WAAP)
|
||||
DEFINE_FLAG(D_WAAP_PARSER, D_WAAP)
|
||||
DEFINE_FLAG(D_WAAP_PARSER_XML, D_WAAP_PARSER)
|
||||
DEFINE_FLAG(D_WAAP_PARSER_HTML, D_WAAP_PARSER)
|
||||
@@ -91,6 +93,7 @@ DEFINE_FLAG(D_COMPONENT, D_ALL)
|
||||
DEFINE_FLAG(D_WAAP_PARSER_URLENCODE, D_WAAP_PARSER)
|
||||
DEFINE_FLAG(D_WAAP_PARSER_PHPSERIALIZE, D_WAAP_PARSER)
|
||||
DEFINE_FLAG(D_WAAP_PARSER_PERCENT, D_WAAP_PARSER)
|
||||
DEFINE_FLAG(D_WAAP_PARSER_PAIRS, D_WAAP_PARSER)
|
||||
DEFINE_FLAG(D_WAAP_OVERRIDE, D_WAAP)
|
||||
|
||||
DEFINE_FLAG(D_IPS, D_COMPONENT)
|
||||
|
@@ -65,6 +65,7 @@ enum class Tags {
|
||||
HORIZON_TELEMETRY_METRICS,
|
||||
CROWDSEC,
|
||||
PLAYGROUND,
|
||||
API_DISCOVERY,
|
||||
|
||||
COUNT
|
||||
};
|
||||
@@ -152,8 +153,10 @@ enum class IssuingEngine {
|
||||
IOT_NEXT,
|
||||
SDWAN,
|
||||
FILE_UPLOAD,
|
||||
IDA_NEXT,
|
||||
HORIZON_TELEMETRY_METRICS
|
||||
IDA_NEXT_BLADE_REGISTRATION,
|
||||
IDA_NEXT_CLIENT_IP_NOTIFY,
|
||||
HORIZON_TELEMETRY_METRICS,
|
||||
API_DISCOVERY
|
||||
};
|
||||
|
||||
} // namespace ReportIS
|
||||
|
@@ -18,6 +18,8 @@
|
||||
#include <string>
|
||||
#include <boost/regex.hpp>
|
||||
|
||||
#include "maybe_res.h"
|
||||
|
||||
namespace NGEN
|
||||
{
|
||||
|
||||
@@ -26,7 +28,7 @@ namespace Filesystem
|
||||
|
||||
bool exists(const std::string &path);
|
||||
bool isDirectory(const std::string &path);
|
||||
|
||||
Maybe<std::vector<std::string>> getDirectoryFiles(const std::string &path);
|
||||
bool makeDir(const std::string &path, mode_t permission = S_IRWXU);
|
||||
bool makeDirRecursive(const std::string &path, mode_t permission = S_IRWXU);
|
||||
bool deleteDirectory(const std::string &path, bool delete_content = false);
|
||||
|
Reference in New Issue
Block a user