mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-08 18:53:52 +00:00
59 lines
3.3 KiB
HTML
59 lines
3.3 KiB
HTML
<md-content ng-controller="updateRulesetController" layout="column">
|
|
<md-content class="md-padding">
|
|
<md-nav-bar md-selected-nav-item="menuNavItem" nav-bar-aria-label="navigation menu">
|
|
<md-nav-item id="header_logo" md-nav-href="#/" name="wazuh" aria-label="img logo">
|
|
<img aria-label="Logo image" src="/plugins/wazuh/icon.png" height="44" weight="252"></img>
|
|
</md-nav-item>
|
|
<md-nav-item md-nav-href="#/manager" name="manager">Manager</md-nav-item>
|
|
<md-nav-item md-nav-href="#/agents" name="agents">Agents</md-nav-item>
|
|
<md-nav-item md-nav-href="#/ruleset" name="ruleset">Ruleset</md-nav-item>
|
|
<md-nav-item md-nav-href="#/fim" name="fim">File integrity</md-nav-item>
|
|
<md-nav-item md-nav-href="#/policy_monitoring" name="policy_monitoring">Policy monitoring</md-nav-item>
|
|
<md-nav-item md-nav-href="#/settings" name="settings">Settings</md-nav-item>
|
|
</md-nav-bar>
|
|
</md-content>
|
|
|
|
<md-content class="md-padding">
|
|
<md-nav-bar md-selected-nav-item="submenuNavItem" nav-bar-aria-label="navigation submenu">
|
|
<md-nav-item md-nav-href="#/ruleset" name="rules">Rules</md-nav-item>
|
|
<md-nav-item md-nav-href="#/ruleset/decoders" name="decoders">Decoders</md-nav-item>
|
|
<md-nav-item md-nav-href="#/ruleset/update" name="update">Update</md-nav-item>
|
|
</md-nav-bar>
|
|
</md-content>
|
|
|
|
<md-progress-linear md-mode="indeterminate" ng-show="load"></md-progress-linear>
|
|
|
|
<md-content layout="column" ng-if="!load" layout-align="space-around center">
|
|
<h2 class="container_page_title">Update</h2>
|
|
<md-input-container>
|
|
<p>1. Select what you want to update:</p>
|
|
<md-select ng-model="$parent.updateType">
|
|
<md-option value="r">Rules</md-option>
|
|
<md-option value="c">Rootcheck</md-option>
|
|
<md-option value="b">Both</md-option>
|
|
</md-select>
|
|
</md-input-container>
|
|
<md-input-container>
|
|
<p>2. Do you want to force it?</p>
|
|
<md-switch ng-model="$parent.updateForce" aria-label="Force update?">
|
|
<span ng-show="$parent.updateForce">Overwrite all the rules (OSSEC manager is going to be restarted)</span>
|
|
<span ng-show="!$parent.updateForce">Update the outdated rules (Manager will be restarted only if enabled rules are updated)</span>
|
|
</md-switch>
|
|
</md-input-container>
|
|
|
|
<md-button type="submit" ng-click="updateRuleset();" class="md-primary md-raised">Update ruleset</md-button>
|
|
|
|
<md-divider></md-divider>
|
|
|
|
<md-input-container layout="column" ng-if="$parent.backups > 0">
|
|
<p>Backups:</p>
|
|
<span layout="row">
|
|
<md-select ng-model="$parent.selectedBackup">
|
|
<md-option value="{{backup}}" ng-repeat="backup in $parent.$parent.backups">{{backup}}</md-option>
|
|
</md-select>
|
|
<md-button type="submit" class="md-primary md-raised" ng-click="restoreBackup();">Restore backup</md-button>
|
|
</span>
|
|
<p style="font-weight: lighter;">* When ruleset is updated, a new backup (the first in the list) will be created.</p>
|
|
</md-input-container>
|
|
</md-content>
|
|
</md-content> |