mirror of
https://github.com/openappsec/openappsec.git
synced 2025-06-28 16:41:02 +03:00
Turning on local policy after initial orcherstation load
This commit is contained in:
parent
eb1bc9227b
commit
596033391b
@ -231,6 +231,7 @@ private:
|
||||
auto orchestration_tools = Singleton::Consume<I_OrchestrationTools>::by<OrchestrationComp>();
|
||||
if (orchestration_tools->doesFileExist(orchestration_policy_file)) {
|
||||
maybe_policy = loadOrchestrationPolicy();
|
||||
if (declarative) Singleton::Consume<I_DeclarativePolicy>::from<DeclarativePolicyUtils>()->turnOnApplyPolicyFlag();
|
||||
if (!maybe_policy.ok()) {
|
||||
dbgWarning(D_ORCHESTRATOR) << "Failed to load Orchestration policy. Error: " << maybe_policy.getErr();
|
||||
enforce_policy_flag = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user