mirror of
https://github.com/openappsec/openappsec.git
synced 2025-09-29 11:16:30 +03:00
My 11th 2023 update
This commit is contained in:
@@ -32,6 +32,8 @@ target_link_libraries(cp-nano-http-transaction-handler
|
||||
waap
|
||||
waap_clib
|
||||
reputation
|
||||
ips
|
||||
keywords
|
||||
-Wl,--end-group
|
||||
)
|
||||
|
||||
|
@@ -17,6 +17,8 @@
|
||||
#include "gradual_deployment.h"
|
||||
#include "http_manager.h"
|
||||
#include "waap.h"
|
||||
#include "ips_comp.h"
|
||||
#include "keyword_comp.h"
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
@@ -26,7 +28,9 @@ main(int argc, char **argv)
|
||||
NginxAttachment,
|
||||
GradualDeployment,
|
||||
HttpManager,
|
||||
WaapComponent
|
||||
WaapComponent,
|
||||
IPSComp,
|
||||
KeywordComp
|
||||
> comps;
|
||||
|
||||
comps.registerGlobalValue<bool>("Is Rest primary routine", true);
|
||||
|
@@ -95,6 +95,7 @@ enum class Service {
|
||||
HELLO_WORLD,
|
||||
IDA,
|
||||
IOT_ACCESS_CONTROL,
|
||||
HORIZON_TELEMETRY,
|
||||
|
||||
COUNT
|
||||
};
|
||||
@@ -171,6 +172,7 @@ getServiceString(const Service service)
|
||||
case (Service::HELLO_WORLD): return "hello-world";
|
||||
case (Service::IDA): return "identity-awareness";
|
||||
case (Service::IOT_ACCESS_CONTROL): return "iot-access-control";
|
||||
case (Service::HORIZON_TELEMETRY): return "horizon-telemetry";
|
||||
default:
|
||||
cerr
|
||||
<< "Internal Error: the provided service ("
|
||||
@@ -359,6 +361,11 @@ getServiceConfig (const Service service)
|
||||
filesystem_path + "/conf/cp-nano-iot-access-control-debug-conf.json",
|
||||
log_files_path + "/nano_agent/cp-nano-iot-access-control.dbg"
|
||||
);
|
||||
case (Service::HORIZON_TELEMETRY):
|
||||
return ServiceConfig(
|
||||
filesystem_path + "/conf/cp-nano-horizon-telemetry-debug-conf.json",
|
||||
log_files_path + "/nano_agent/cp-nano-horizon-telemetry.dbg"
|
||||
);
|
||||
default:
|
||||
cerr
|
||||
<< "Internal Error: the provided service ("
|
||||
@@ -1287,6 +1294,8 @@ extractServices(const vector<string> &args)
|
||||
services.push_back(Service::IDA);
|
||||
} else if (getServiceString(Service::IOT_ACCESS_CONTROL).find(maybe_service) == 0) {
|
||||
services.push_back(Service::IOT_ACCESS_CONTROL);
|
||||
} else if (getServiceString(Service::HORIZON_TELEMETRY).find(maybe_service) == 0) {
|
||||
services.push_back(Service::HORIZON_TELEMETRY);
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user