Added Ruleset section

This commit is contained in:
JuanjiJG 2018-09-12 11:19:10 +02:00
parent 4886c16486
commit cfbb85fa9b
8 changed files with 305 additions and 3 deletions

View File

@ -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

View File

@ -0,0 +1,31 @@
<!-- The main card will all the settings -->
<md-card class="wz-md-card" ng-if="!JSONContent && !XMLContent && configurationSubTab === 'cdbs'">
<md-card-content>
<span class="font-size-16">CDB lists</span>
<div class="wz-margin-top-10">
<span class="md-subheader small">Constant databases references used by other rules</span>
</div>
<md-divider class="wz-margin-top-10"></md-divider>
<!-- Configuration block -->
<div class="wz-padding-top-10">
<table class="table table-striped table-condensed" style="table-layout: fixed !important; margin: 0 !important;">
<thead class="wz-text-bold">
<th class="wz-text-left col-lg-9">Path</th>
</thead>
<tbody class="wz-word-wrap">
<tr>
<td>test</td>
</tr>
<tr>
<td>test</td>
</tr>
</tbody>
</table>
</div>
<!-- End configuration block -->
</md-card-content>
</md-card>
<!-- End main card with all the settings -->

View File

@ -0,0 +1,86 @@
<!-- The main card will all the settings -->
<md-card class="wz-md-card" ng-if="!JSONContent && !XMLContent && configurationSubTab === 'decoders'">
<md-card-content>
<span class="font-size-16">Decoders directories</span>
<div class="wz-margin-top-10">
<span class="md-subheader small">Folders with decoders to load</span>
</div>
<md-divider class="wz-margin-top-10"></md-divider>
<!-- Configuration block -->
<div class="wz-padding-top-10">
<table class="table table-striped table-condensed" style="table-layout: fixed !important; margin: 0 !important;">
<thead class="wz-text-bold">
<th class="wz-text-left col-lg-9">Path</th>
<th class="wz-text-left col-lg-3">Pattern</th>
</thead>
<tbody class="wz-word-wrap">
<tr>
<td>test</td>
<td>test</td>
</tr>
<tr>
<td>test</td>
<td>test</td>
</tr>
</tbody>
</table>
</div>
<!-- End configuration block -->
<div class="wz-margin-top-10"><span class="font-size-16">Included decoders files</span></div>
<div class="wz-margin-top-10">
<span class="md-subheader small">Specific decoders files to include in load</span>
</div>
<md-divider class="wz-margin-top-10"></md-divider>
<!-- Configuration block -->
<div class="wz-padding-top-10">
<table class="table table-striped table-condensed" style="table-layout: fixed !important; margin: 0 !important;">
<thead class="wz-text-bold">
<th class="wz-text-left">Path</th>
</thead>
<tbody class="wz-word-wrap">
<tr>
<td>test</td>
</tr>
<tr>
<td>test</td>
</tr>
</tbody>
</table>
</div>
<!-- End configuration block -->
<div class="wz-margin-top-10"><span class="font-size-16">Excluded decoders files</span></div>
<div class="wz-margin-top-10">
<span class="md-subheader small">Specific decoders files to exclude from load</span>
</div>
<md-divider class="wz-margin-top-10"></md-divider>
<!-- Configuration block -->
<div class="wz-padding-top-10">
<table class="table table-striped table-condensed" style="table-layout: fixed !important; margin: 0 !important;">
<thead class="wz-text-bold">
<th class="wz-text-left">Path</th>
</thead>
<tbody class="wz-word-wrap">
<tr>
<td>test</td>
</tr>
<tr>
<td>test</td>
</tr>
</tbody>
</table>
</div>
<!-- End configuration block -->
</md-card-content>
</md-card>
<!-- End main card with all the settings -->

View File

@ -0,0 +1,86 @@
<!-- The main card will all the settings -->
<md-card class="wz-md-card" ng-if="!JSONContent && !XMLContent && configurationSubTab === 'rules'">
<md-card-content>
<span class="font-size-16">Rules directories</span>
<div class="wz-margin-top-10">
<span class="md-subheader small">Folders with rules to load</span>
</div>
<md-divider class="wz-margin-top-10"></md-divider>
<!-- Configuration block -->
<div class="wz-padding-top-10">
<table class="table table-striped table-condensed" style="table-layout: fixed !important; margin: 0 !important;">
<thead class="wz-text-bold">
<th class="wz-text-left col-lg-9">Path</th>
<th class="wz-text-left col-lg-3">Pattern</th>
</thead>
<tbody class="wz-word-wrap">
<tr>
<td>test</td>
<td>test</td>
</tr>
<tr>
<td>test</td>
<td>test</td>
</tr>
</tbody>
</table>
</div>
<!-- End configuration block -->
<div class="wz-margin-top-10"><span class="font-size-16">Included rules files</span></div>
<div class="wz-margin-top-10">
<span class="md-subheader small">Specific rules files to include in load</span>
</div>
<md-divider class="wz-margin-top-10"></md-divider>
<!-- Configuration block -->
<div class="wz-padding-top-10">
<table class="table table-striped table-condensed" style="table-layout: fixed !important; margin: 0 !important;">
<thead class="wz-text-bold">
<th class="wz-text-left">Path</th>
</thead>
<tbody class="wz-word-wrap">
<tr>
<td>test</td>
</tr>
<tr>
<td>test</td>
</tr>
</tbody>
</table>
</div>
<!-- End configuration block -->
<div class="wz-margin-top-10"><span class="font-size-16">Excluded rules files</span></div>
<div class="wz-margin-top-10">
<span class="md-subheader small">Specific rules files to exclude from load</span>
</div>
<md-divider class="wz-margin-top-10"></md-divider>
<!-- Configuration block -->
<div class="wz-padding-top-10">
<table class="table table-striped table-condensed" style="table-layout: fixed !important; margin: 0 !important;">
<thead class="wz-text-bold">
<th class="wz-text-left">Path</th>
</thead>
<tbody class="wz-word-wrap">
<tr>
<td>test</td>
</tr>
<tr>
<td>test</td>
</tr>
</tbody>
</table>
</div>
<!-- End configuration block -->
</md-card-content>
</md-card>
<!-- End main card with all the settings -->

View File

@ -0,0 +1,61 @@
<!-- JSON card -->
<md-card flex="auto" class="wz-md-card" ng-if="JSONContent">
<md-card-content flex layout="column">
<span class="font-size-16">JSON viewer</span>
<md-divider class="wz-margin-top-10"></md-divider>
<!-- The JSON viewer -->
<div flex="auto" class="wz-margin-top-10 wz-code-viewer">
<pre><code wz-dynamic="JSONContent"></code></pre>
</div>
<!-- End JSON viewer -->
</md-card-content>
</md-card>
<!-- End JSON card -->
<!-- XML card -->
<md-card flex="auto" class="wz-md-card" ng-if="XMLContent">
<md-card-content flex layout="column">
<span class="font-size-16">XML viewer</span>
<md-divider class="wz-margin-top-10"></md-divider>
<!-- The XML viewer -->
<div flex="auto" class="wz-margin-top-10 wz-code-viewer">
<pre>{{ XMLContent }}</pre>
</div>
<!-- End XML viewer -->
</md-card-content>
</md-card>
<!-- End XML card -->
</div>
<!-- End main content section -->
<!-- This section is the right sidenav content -->
<md-sidenav
class="md-sidenav-right"
md-is-locked-open="true">
<md-list>
<md-subheader>Any questions?</md-subheader>
<md-list-item target="_blank" class="wz-text-link" ng-href="https://documentation.wazuh.com/current/user-manual/ruleset/index.html">Ruleset documentation</md-list-item>
<md-list-item target="_blank" class="wz-text-link" ng-href="https://documentation.wazuh.com/current/user-manual/reference/ossec-conf/ruleset.html">Ruleset reference</md-list-item>
<md-divider></md-divider>
<md-subheader>Having trouble?</md-subheader>
<md-list-item target="_blank" class="wz-text-link" ng-href="https://groups.google.com/forum/#!forum/wazuh">Ask on the mailing list</md-list-item>
<md-list-item target="_blank" class="wz-text-link" ng-href="https://github.com/wazuh/wazuh/issues">Ask on GitHub</md-list-item>
<md-divider></md-divider>
<md-subheader>More options</md-subheader>
<md-list-item layout-wrap>
<md-button ng-class="JSONContent ? 'active' : ''" class="wz-button md-raised md-primary small" ng-click="getJSON('ruleset')">{{ JSONContent ? "Close JSON viewer" : "Open JSON viewer" }}</md-button>
<md-button ng-class="XMLContent ? 'active' : ''" class="wz-button md-raised md-primary small" ng-click="getXML('ruleset')">{{ XMLContent ? "Close XML viewer" : "Open XML viewer" }}</md-button>
</md-list-item>
</md-list>
</md-sidenav>
<!-- End right sidenav section -->
</div>
<!-- End main content and right sidenav section -->

View File

@ -0,0 +1,31 @@
<div flex="auto" layout="column" ng-if="!load && configurationTab === 'ruleset'" ng-init="switchConfigurationSubTab('rules')">
<!-- Headline -->
<div layout="column" layout-padding>
<div>
<span class="font-size-18">Ruleset</span>
</div>
<span class="md-subheader">Current rules, decoders and CDB lists loaded in the cluster</span>
</div>
<!-- End headline -->
<!-- Ruleset navigation bar -->
<md-nav-bar
class="wz-nav-bar"
md-selected-nav-item="configurationSubTab"
nav-bar-aria-label="Ruleset navigation links">
<md-nav-item class="wz-nav-item" md-nav-click="switchConfigurationSubTab('rules')" name="rules">Rules</md-nav-item>
<md-nav-item class="wz-nav-item" md-nav-click="switchConfigurationSubTab('decoders')" name="decoders">Decoders</md-nav-item>
<md-nav-item class="wz-nav-item" md-nav-click="switchConfigurationSubTab('cdbs')" name="cdbs">CDB lists</md-nav-item>
</md-nav-bar>
<!-- End Ruleset navigation bar -->
<!-- This section contains the main content and the right sidenav -->
<div flex="auto" layout="row">
<!-- This section appears when there's no configuration -->
<wz-no-config flex ng-if="false"></wz-no-config>
<!-- End no configuration section -->
<!-- This section is the main content -->
<div flex layout="column">

View File

@ -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

View File

@ -59,13 +59,13 @@
</md-list-item>
<md-list-item flex="100" flex-gt-md="50" flex-gt-lg="33" class="md-2-line">
<div class="md-list-item-text">
<h3 class="wz-text-link" ng-click="switchConfigurationTab('commands-active-response')">Commands & Active response</h3>
<p>Pending description</p>
<h3 class="wz-text-link" ng-click="switchConfigurationTab('ruleset')">Ruleset</h3>
<p>Current rules, decoders and CDB lists loaded in the cluster</p>
</div>
</md-list-item>
<md-list-item flex="100" flex-gt-md="50" flex-gt-lg="33" class="md-2-line">
<div class="md-list-item-text">
<h3 class="wz-text-link" ng-click="switchConfigurationTab('ruleset')">Ruleset</h3>
<h3 class="wz-text-link" ng-click="switchConfigurationTab('commands-active-response')">Commands & Active response</h3>
<p>Pending description</p>
</div>
</md-list-item>