From cfbb85fa9b2cb8a6248ead5ac64b94ff5563c792 Mon Sep 17 00:00:00 2001 From: JuanjiJG Date: Wed, 12 Sep 2018 11:19:10 +0200 Subject: [PATCH] Added Ruleset section --- .../new-configuration/configuration.jade | 1 + .../new-configuration/ruleset/cdbs/cdbs.html | 31 +++++++ .../ruleset/decoders/decoders.html | 86 +++++++++++++++++++ .../ruleset/rules/rules.html | 86 +++++++++++++++++++ .../new-configuration/ruleset/ruleset.foot | 61 +++++++++++++ .../new-configuration/ruleset/ruleset.head | 31 +++++++ .../new-configuration/ruleset/ruleset.jade | 6 ++ .../management/new-configuration/welcome.html | 6 +- 8 files changed, 305 insertions(+), 3 deletions(-) create mode 100644 public/templates/management/new-configuration/ruleset/cdbs/cdbs.html create mode 100644 public/templates/management/new-configuration/ruleset/decoders/decoders.html create mode 100644 public/templates/management/new-configuration/ruleset/rules/rules.html create mode 100644 public/templates/management/new-configuration/ruleset/ruleset.foot create mode 100644 public/templates/management/new-configuration/ruleset/ruleset.head create mode 100644 public/templates/management/new-configuration/ruleset/ruleset.jade diff --git a/public/templates/management/new-configuration/configuration.jade b/public/templates/management/new-configuration/configuration.jade index 18abac832..564db8e53 100644 --- a/public/templates/management/new-configuration/configuration.jade +++ b/public/templates/management/new-configuration/configuration.jade @@ -5,5 +5,6 @@ include ./database-output/database-output.html include ./global-configuration/global-configuration.jade include ./integrations/integrations.html include ./registration-service/registration-service.html +include ./ruleset/ruleset.jade include ./wazuh-modules/wazuh-modules.jade include ../../footer.foot diff --git a/public/templates/management/new-configuration/ruleset/cdbs/cdbs.html b/public/templates/management/new-configuration/ruleset/cdbs/cdbs.html new file mode 100644 index 000000000..bb095eace --- /dev/null +++ b/public/templates/management/new-configuration/ruleset/cdbs/cdbs.html @@ -0,0 +1,31 @@ + + + + CDB lists +
+ Constant databases references used by other rules +
+ + + +
+ + + + + + + + + + + + + +
Path
test
test
+ +
+ +
+
+ diff --git a/public/templates/management/new-configuration/ruleset/decoders/decoders.html b/public/templates/management/new-configuration/ruleset/decoders/decoders.html new file mode 100644 index 000000000..d1cbb0d30 --- /dev/null +++ b/public/templates/management/new-configuration/ruleset/decoders/decoders.html @@ -0,0 +1,86 @@ + + + + Decoders directories +
+ Folders with decoders to load +
+ + + +
+ + + + + + + + + + + + + + + + +
PathPattern
testtest
testtest
+ +
+ + +
Included decoders files
+
+ Specific decoders files to include in load +
+ + + +
+ + + + + + + + + + + + + +
Path
test
test
+ +
+ + +
Excluded decoders files
+
+ Specific decoders files to exclude from load +
+ + + +
+ + + + + + + + + + + + + +
Path
test
test
+ +
+ +
+
+ diff --git a/public/templates/management/new-configuration/ruleset/rules/rules.html b/public/templates/management/new-configuration/ruleset/rules/rules.html new file mode 100644 index 000000000..32f51b71f --- /dev/null +++ b/public/templates/management/new-configuration/ruleset/rules/rules.html @@ -0,0 +1,86 @@ + + + + Rules directories +
+ Folders with rules to load +
+ + + +
+ + + + + + + + + + + + + + + + +
PathPattern
testtest
testtest
+ +
+ + +
Included rules files
+
+ Specific rules files to include in load +
+ + + +
+ + + + + + + + + + + + + +
Path
test
test
+ +
+ + +
Excluded rules files
+
+ Specific rules files to exclude from load +
+ + + +
+ + + + + + + + + + + + + +
Path
test
test
+ +
+ +
+
+ diff --git a/public/templates/management/new-configuration/ruleset/ruleset.foot b/public/templates/management/new-configuration/ruleset/ruleset.foot new file mode 100644 index 000000000..43543d0d6 --- /dev/null +++ b/public/templates/management/new-configuration/ruleset/ruleset.foot @@ -0,0 +1,61 @@ + + + + JSON viewer + + + +
+
+
+ +
+
+ + + + + + XML viewer + + + +
+
{{ XMLContent }}
+
+ +
+
+ + + + + + + + + Any questions? + Ruleset documentation + Ruleset reference + + + + Having trouble? + Ask on the mailing list + Ask on GitHub + + + + More options + + {{ JSONContent ? "Close JSON viewer" : "Open JSON viewer" }} + {{ XMLContent ? "Close XML viewer" : "Open XML viewer" }} + + + + + + + diff --git a/public/templates/management/new-configuration/ruleset/ruleset.head b/public/templates/management/new-configuration/ruleset/ruleset.head new file mode 100644 index 000000000..ceee89534 --- /dev/null +++ b/public/templates/management/new-configuration/ruleset/ruleset.head @@ -0,0 +1,31 @@ +
+ + +
+
+ Ruleset +
+ Current rules, decoders and CDB lists loaded in the cluster +
+ + + + + Rules + Decoders + CDB lists + + + + +
+ + + + + + +
diff --git a/public/templates/management/new-configuration/ruleset/ruleset.jade b/public/templates/management/new-configuration/ruleset/ruleset.jade new file mode 100644 index 000000000..3b596aef7 --- /dev/null +++ b/public/templates/management/new-configuration/ruleset/ruleset.jade @@ -0,0 +1,6 @@ +include ./ruleset.head +include ./rules/rules.html +include ./decoders/decoders.html +include ./cdbs/cdbs.html +include ./ruleset.foot +include ../../../footer.foot diff --git a/public/templates/management/new-configuration/welcome.html b/public/templates/management/new-configuration/welcome.html index 40742fbc6..25513b97d 100644 --- a/public/templates/management/new-configuration/welcome.html +++ b/public/templates/management/new-configuration/welcome.html @@ -59,13 +59,13 @@
- -

Pending description

+ +

Current rules, decoders and CDB lists loaded in the cluster

- +

Pending description