mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 02:15:24 +00:00
Merge pull request #1257 from wazuh/issue-1223
Show "configuration assessment" configuration
This commit is contained in:
commit
8848dc9c84
@ -1,4 +1,4 @@
|
||||
<div layout="row" ng-show="jsoncontent || xmlcontent" style="height: calc(100vh - 255px);">
|
||||
<div layout="row" ng-show="jsoncontent || xmlcontent" style="height: calc(100vh - 270px);">
|
||||
|
||||
<!-- JSON card -->
|
||||
<md-card flex="auto" class="wz-md-card" ng-show="jsoncontent">
|
||||
|
@ -0,0 +1,58 @@
|
||||
<!-- No configuration section -->
|
||||
<wz-no-config flex error="'not-present'" ng-if="configurationSubTab === 'pm-configuration-assessment' && !currentConfig['wmodules-wmodules'].wmodules[4]['configuration-assessment']"></wz-no-config>
|
||||
<!-- End no configuration section -->
|
||||
|
||||
<!-- The main card will all the settings -->
|
||||
<md-card class="wz-md-card" ng-if="!JSONContent && !XMLContent && configurationSubTab === 'pm-configuration-assessment' && currentConfig['wmodules-wmodules'].wmodules[4]['configuration-assessment']">
|
||||
<md-card-content>
|
||||
<div layout="row" layout-align="start center">
|
||||
<div>
|
||||
<span class="font-size-16">Configuration assessment</span>
|
||||
</div>
|
||||
<span flex></span>
|
||||
<span ng-class="JSONContent ? 'wz-text-active' : ''" class="wz-text-link small" ng-click="getJSON()">JSON</span>
|
||||
<span class="small"> · </span>
|
||||
<span ng-class="XMLContent ? 'wz-text-active' : ''" class="wz-text-link small" ng-click="getXML()">XML</span>
|
||||
</div>
|
||||
<md-divider class="wz-margin-top-10"></md-divider>
|
||||
|
||||
<!-- Configuration block -->
|
||||
<div class="wz-padding-top-10">
|
||||
<!-- content -->
|
||||
<wz-config-item label="Configuration assessment status" value="currentConfig['wmodules-wmodules'].wmodules[4]['configuration-assessment'].enabled === 'yes' ? 'enabled' : 'disabled'">
|
||||
</wz-config-item>
|
||||
<wz-config-item label="Interval" value="currentConfig['wmodules-wmodules'].wmodules[4]['configuration-assessment'].interval">
|
||||
</wz-config-item>
|
||||
<wz-config-item label="Scan on start" value="currentConfig['wmodules-wmodules'].wmodules[4]['configuration-assessment'].scan_on_start">
|
||||
</wz-config-item>
|
||||
<wz-config-item label="Skip nfs" value="currentConfig['wmodules-wmodules'].wmodules[4]['configuration-assessment'].skip_nfs">
|
||||
</wz-config-item>
|
||||
<!-- end content -->
|
||||
</div>
|
||||
<!-- End configuration block -->
|
||||
|
||||
<div class="wz-margin-top-10">
|
||||
<span class="font-size-16">Policies</span>
|
||||
</div>
|
||||
<md-divider class="wz-margin-top-10"></md-divider>
|
||||
|
||||
<!-- Policies block -->
|
||||
<div class="wz-padding-top-10">
|
||||
<!-- content -->
|
||||
<table class="table table-striped table-condensed" style="table-layout: fixed !important;">
|
||||
<thead class="wz-text-bold">
|
||||
<th class="wz-text-left">Name</th>
|
||||
</thead>
|
||||
<tbody class="wz-word-wrap">
|
||||
<tr ng-repeat="policy in currentConfig['wmodules-wmodules'].wmodules[4]['configuration-assessment'].policies">
|
||||
<td>{{policy}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</wz-config-item>
|
||||
<!-- end content -->
|
||||
</div>
|
||||
<!-- End configuration block -->
|
||||
</md-card-content>
|
||||
</md-card>
|
||||
<!-- End main card with all the settings -->
|
@ -30,6 +30,7 @@
|
||||
nav-bar-aria-label="Policy monitoring navigation links">
|
||||
<md-nav-item class="wz-nav-item" md-nav-click="switchConfigurationSubTab('pm-general')" name="pm-general">General</md-nav-item>
|
||||
<md-nav-item class="wz-nav-item" md-nav-click="switchConfigurationSubTab('pm-unix')" name="pm-unix">System audit</md-nav-item>
|
||||
<md-nav-item class="wz-nav-item" md-nav-click="switchConfigurationSubTab('pm-configuration-assessment')" name="pm-configuration-assessment">Configuration assessment</md-nav-item>
|
||||
</md-nav-bar>
|
||||
<!-- End Policy monitoring navigation bar -->
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
include ./policy-monitoring.head
|
||||
include ./pm-general.html
|
||||
include ./pm-unix.html
|
||||
include ./pm-configuration-assessment.html
|
||||
include ./policy-monitoring.foot
|
||||
include ../../../footer.foot
|
||||
|
@ -128,7 +128,7 @@
|
||||
<md-list layout="row" layout-wrap>
|
||||
<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="switchConfigTab('policy-monitoring', [{component:'syscheck',configuration:'rootcheck'}])">Policy
|
||||
<h3 class="wz-text-link" ng-click="switchConfigTab('policy-monitoring', [{component:'syscheck',configuration:'rootcheck'}, {component:'wmodules',configuration:'wmodules'}])">Policy
|
||||
monitoring</h3>
|
||||
<p>Configuration to ensure compliance with security policies, standards and hardening
|
||||
guides</p>
|
||||
|
Loading…
Reference in New Issue
Block a user