mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 02:15:24 +00:00
AWS config
This commit is contained in:
parent
d783db8167
commit
5cbb70dcdb
@ -0,0 +1,97 @@
|
||||
<!-- Buckets card -->
|
||||
<md-card flex="auto" class="wz-md-card" ng-if="!JSONContent && !XMLContent && configurationSubTab === 'amazon-buckets'">
|
||||
<md-card-content flex layout="column">
|
||||
<div layout="row" layout-align="start center">
|
||||
<div>
|
||||
<span class="font-size-16">Buckets</span>
|
||||
<div class="wz-margin-top-10">
|
||||
<span class="md-subheader small">Amazon buckets from where logs are read</span>
|
||||
</div>
|
||||
</div>
|
||||
<span flex></span>
|
||||
<span ng-class="JSONContent ? 'wz-text-active' : ''" class="wz-text-link small" ng-click="getJSON(currentConfig['aws-s3'].buckets)">JSON</span>
|
||||
<span class="small"> · </span>
|
||||
<span ng-class="XMLContent ? 'wz-text-active' : ''" class="wz-text-link small" ng-click="getXML(currentConfig['aws-s3'].buckets)">XML</span>
|
||||
</div>
|
||||
<md-divider class="wz-margin-top-10"></md-divider>
|
||||
|
||||
<!-- The container for both list and detail -->
|
||||
<div flex="auto" layout="row" class="wz-margin-top-10">
|
||||
|
||||
<!-- List container -->
|
||||
<div flex="30" layout="column">
|
||||
|
||||
<md-list flex="auto" class="wz-item-list">
|
||||
<md-list-item class="wz-text-link" ng-click="updateSelectedItem($index)" ng-repeat="item in currentConfig['aws-s3'].buckets">{{item.name}} ({{item.aws_account_alias}})</md-list-item>
|
||||
</md-list>
|
||||
|
||||
</div>
|
||||
<!-- End list container -->
|
||||
|
||||
<!-- Detail container -->
|
||||
<div flex layout="column" ng-if="currentConfig['aws-s3'].buckets.length">
|
||||
<div flex="auto" class="wz-item-detail">
|
||||
<wz-config-item
|
||||
label="Bucket name"
|
||||
value="currentConfig['aws-s3'].buckets[selectedItem].name"
|
||||
notResponsive="true">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="Bucket type"
|
||||
value="currentConfig['aws-s3'].buckets[selectedItem].type"
|
||||
notResponsive="true">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="AWS account ID"
|
||||
value="currentConfig['aws-s3'].buckets[selectedItem].aws_account_id"
|
||||
notResponsive="true">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="AWS account alias"
|
||||
value="currentConfig['aws-s3'].buckets[selectedItem].aws_account_alias"
|
||||
notResponsive="true">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="IAM user access key"
|
||||
value="currentConfig['aws-s3'].buckets[selectedItem].access_key"
|
||||
notResponsive="true">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="IAM user secret key"
|
||||
value="currentConfig['aws-s3'].buckets[selectedItem].secret_key"
|
||||
notResponsive="true">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="Profile name with read permissions"
|
||||
value="currentConfig['aws-s3'].buckets[selectedItem].aws_profile"
|
||||
notResponsive="true">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="IAM ARN role to read bucket logs"
|
||||
value="currentConfig['aws-s3'].buckets[selectedItem].iam_role_arn"
|
||||
notResponsive="true">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="Bucket path"
|
||||
value="currentConfig['aws-s3'].buckets[selectedItem].path"
|
||||
notResponsive="true">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="Parse only logs from this date onwards"
|
||||
value="currentConfig['aws-s3'].buckets[selectedItem].only_logs_after"
|
||||
notResponsive="true">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="Limit log parsing to these regions"
|
||||
value="currentConfig['aws-s3'].buckets[selectedItem].regions"
|
||||
notResponsive="true">
|
||||
</wz-config-item>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- End detail container -->
|
||||
</div>
|
||||
<!-- End container for both list and detail -->
|
||||
</md-card-content>
|
||||
</md-card>
|
||||
<!-- End buckets card -->
|
@ -0,0 +1,47 @@
|
||||
<!-- General card -->
|
||||
<md-card class="wz-md-card" ng-if="!JSONContent && !XMLContent && configurationSubTab === 'amazon-general'">
|
||||
<md-card-content>
|
||||
<div layout="row" layout-align="start center">
|
||||
<div>
|
||||
<span class="font-size-16">Main settings</span>
|
||||
<div class="wz-margin-top-10">
|
||||
<span class="md-subheader small">Common settings applied to all Amazon S3 buckets</span>
|
||||
</div>
|
||||
</div>
|
||||
<span flex></span>
|
||||
<span ng-class="JSONContent ? 'wz-text-active' : ''" class="wz-text-link small" ng-click="getJSON(currentConfig['aws-s3'])">JSON</span>
|
||||
<span class="small"> · </span>
|
||||
<span ng-class="XMLContent ? 'wz-text-active' : ''" class="wz-text-link small" ng-click="getXML(currentConfig['aws-s3'])">XML</span>
|
||||
</div>
|
||||
<md-divider class="wz-margin-top-10"></md-divider>
|
||||
|
||||
<!-- Configuration block -->
|
||||
<div class="wz-padding-top-10">
|
||||
|
||||
<wz-config-item
|
||||
label="Amazon S3 integration status"
|
||||
value="currentConfig['aws-s3'].disabled === 'no' ? 'enabled' : 'disabled'">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="Frequency for reading from S3 buckets"
|
||||
value="currentConfig['aws-s3'].interval">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="Run on start"
|
||||
value="currentConfig['aws-s3'].run_on_start"
|
||||
notResponsive="true">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="Remove bucket logs after being read"
|
||||
value="'n/a'">
|
||||
</wz-config-item>
|
||||
<wz-config-item
|
||||
label="Skip logs that can't be processed"
|
||||
value="currentConfig['aws-s3'].skip_on_error">
|
||||
</wz-config-item>
|
||||
|
||||
</div>
|
||||
<!-- End configuration block -->
|
||||
</md-card-content>
|
||||
</md-card>
|
||||
<!-- End general card -->
|
@ -0,0 +1,69 @@
|
||||
<!-- JSON card -->
|
||||
<md-card flex="auto" class="wz-md-card" ng-if="JSONContent">
|
||||
<md-card-content flex layout="column">
|
||||
<div layout="row" layout-align="start center">
|
||||
<div>
|
||||
<span class="font-size-16">JSON viewer</span>
|
||||
<div class="wz-margin-top-10">
|
||||
<span class="md-subheader small">View this configuration in raw JSON format</span>
|
||||
</div>
|
||||
</div>
|
||||
<span flex></span>
|
||||
<span ng-class="JSONContent ? 'wz-text-active' : ''" class="wz-text-link small" ng-click="getJSON('aws-s3')">JSON</span>
|
||||
<span class="small"> · </span>
|
||||
<span ng-class="XMLContent ? 'wz-text-active' : ''" class="wz-text-link small" ng-click="getXML('aws-s3')">XML</span>
|
||||
</div>
|
||||
<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">
|
||||
<div layout="row" layout-align="start center">
|
||||
<div>
|
||||
<span class="font-size-16">XML viewer</span>
|
||||
<div class="wz-margin-top-10">
|
||||
<span class="md-subheader small">View this configuration in raw XML format</span>
|
||||
</div>
|
||||
</div>
|
||||
<span flex></span>
|
||||
<span ng-class="JSONContent ? 'wz-text-active' : ''" class="wz-text-link small" ng-click="getJSON('aws-s3')">JSON</span>
|
||||
<span class="small"> · </span>
|
||||
<span ng-class="XMLContent ? 'wz-text-active' : ''" class="wz-text-link small" ng-click="getXML('aws-s3')">XML</span>
|
||||
</div>
|
||||
<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>More info about this section</md-subheader>
|
||||
<md-list-item target="_blank" class="wz-text-link" ng-href="https://documentation.wazuh.com/current/amazon/index.html">Using Wazuh to monitor AWS</md-list-item>
|
||||
<md-list-item target="_blank" class="wz-text-link" ng-href="https://documentation.wazuh.com/current/user-manual/reference/ossec-conf/wodle-s3.html">Amazon S3 module reference</md-list-item>
|
||||
</md-list>
|
||||
</md-sidenav>
|
||||
<!-- End right sidenav section -->
|
||||
|
||||
</div>
|
||||
<!-- End main content and right sidenav section -->
|
@ -0,0 +1,31 @@
|
||||
<div flex="auto" layout="column" ng-if="!load && configurationTab === 'aws-s3'" ng-init="switchConfigurationSubTab('amazon-general')">
|
||||
|
||||
<!-- Headline -->
|
||||
<div layout="column" layout-padding>
|
||||
<div>
|
||||
<span class="font-size-18">Amazon S3</span>
|
||||
<span class="wz-agent-status-indicator small teal">Enabled</span>
|
||||
</div>
|
||||
<span class="md-subheader">Security events related to your Amazon AWS services, collected directly via AWS API</span>
|
||||
</div>
|
||||
<!-- End headline -->
|
||||
|
||||
<!-- Amazon S3 navigation bar -->
|
||||
<md-nav-bar
|
||||
class="wz-nav-bar"
|
||||
md-selected-nav-item="configurationSubTab"
|
||||
nav-bar-aria-label="Amazon S3 navigation links">
|
||||
<md-nav-item class="wz-nav-item" md-nav-click="switchConfigurationSubTab('amazon-general')" name="amazon-general">General</md-nav-item>
|
||||
<md-nav-item class="wz-nav-item" md-nav-click="switchConfigurationSubTab('amazon-buckets')" name="amazon-buckets">Buckets</md-nav-item>
|
||||
</md-nav-bar>
|
||||
<!-- End Amazon S3 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">
|
@ -0,0 +1,5 @@
|
||||
include ./amazon-s3.head
|
||||
include ./amazon-general.html
|
||||
include ./amazon-buckets.html
|
||||
include ./amazon-s3.foot
|
||||
include ../../../footer.foot
|
Loading…
Reference in New Issue
Block a user