Skip to content

Commit

Permalink
Update master branch (#837)
Browse files Browse the repository at this point in the history
* Add debug (#701)

* Updated the logo color used for reporting

Updated the logo color to be consistent with that of Wazuh's website (#00a9e5ff)

* Improve states navigation (#702)

* Fix empty screen on Dev Tools on start (#735)

* Support new compliance groups HIPAA and NIST 800 53 (#733)

* Fix duplicated text box in Management > logs (#741)

* Sort properly (#722)

* Interactive guide to add agents (#727)

* Better checking for admin mode (#737)

* 3.10 fixes for issue #748 (#750)

* Update NIST 800-53 requirements (#755)

* Add latest changes from 3.9.3 to 3.10 (#772)

* Update DELETE calls to querystring (#777)

* Check admin mode properly (#776)

* Several UI/UX changes (#773)

* Do not show unsupported modules in agents (#778)

* Export group and agent configuration reports (#782)

* Fix null label (#784)

* Hide API password

* Fix hide api password from requests

* Remove repeated requests to API

* Improve check api connection performance

* Improve agents tab performance

* Improve agent overview performance

* Avoid infinite error messages when a job fails

* Fix redesign error on firefox

* Improve check api performance

* Improve open agents list performance

* Adapt app on microsoft edge

* Fix agents tab breadcrumb

* Fix scrollbar on Firefox file viewer

* Remove isLogs variable from scope

* Fix cluster tab

* Fix logo on Microsoft Edge browser

* Add new cards ard slider directive

* Rebuild HIPAA / NIST dashboards

* Fix card font weight

* Fix typo

* Fix agent summary request

* Fix select API error

* Fix enable/disable extensions

* Minor group report fix

* Add meaningful response when doing a request with admin mode disabled

* Fix Alerts summary visualization at overview policy monitoring dashboard

* Order alerts summary table by count descending

* Fix eye icon on firefox

* Add HIPAA & NIST columns to ruleset tables

* Fix open rule name to open its content

* Inventory report - Fix processes table

* Fix report tables margin

* Fix Last scan time differs in Inventory data tab

* Fix CDB lists styling error

* Show SCA tab on Management/Agent policy monitoring configuration section

* Fix SCA typo

* Fix agent status icon on Firefox

* Fix dashboard button not float right

* Fix error on dashboards using bar-chart

* Remove NULL labels from visualizations

* Change the 8 digit Hex to RGBA

* Fix ruleset when admin mode is disabled

* Add granular options to export Group pdf

* Prettier

* Update changelog & readme. Bump revision

* Fix type changelog

* Adapt app on microsoft edge

* Fix logo on Microsoft Edge browser

* Add new cards ard slider directive

* Rebuild HIPAA / NIST dashboards

* Fix card font weight

* Fix typo

* Update discover button styling

* Add missing visualizations to Overview-SecurityEvents report

* Fix the missing graphics in MS Edge

* Add info to the user when KvStore is initializing

* Remove cluster.name from Overview -> Top 5 agents visualization

* Remove double box when viewing group files

* Update revision

* Update guide to register agents

* Update revision

* Fix configuration box height when restart is applied

* Remove NULL labels from Overview -> Docker visualizations

* Set full width to card slider

* Fix config viewer header margin

* Update version

* Fix group export PDF

* Bump version
  • Loading branch information
pablotr9 authored and adri9valle committed Sep 16, 2019
1 parent 8af7f45 commit b0502f5
Show file tree
Hide file tree
Showing 226 changed files with 12,774 additions and 9,163 deletions.
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,40 @@

All notable changes to the Wazuh app for Splunk project will be documented in this file.


## Wazuh v3.10.0 - Splunk Enterprise v7.3.0 / v7.3.1 - Revision 42

### Added

- Support for Wazuh v3.10.0
- New design and several UI/UX changes. [#726](https://github.com/wazuh/wazuh-splunk/issues/726)
- Adapt Wazuh Splunk APP for Microsoft Edge Browser. [#813](https://github.com/wazuh/wazuh-splunk/issues/813)
- Added an interactive guide for registering agents, things are now easier for the user, guiding it through the steps needed ending in a copy & paste snippet for deploying his agent [#623](https://github.com/wazuh/wazuh-splunk/issues/623)
- Added new dashboards for the recently added regulatory compliance groups into the Wazuh core. They are HIPAA and NIST-800-53. [#705](https://github.com/wazuh/wazuh-splunk/issues/705)
- Export all the information of a Wazuh group and its related agents in a PDF document. [#641](https://github.com/wazuh/wazuh-splunk/issues/641)
- Export the configuration of a certain agent as a PDF document. Supports granularity for exporting just certain sections of the configuration [#640](https://github.com/wazuh/wazuh-splunk/issues/640)
- Added debug level for app logs [#637](https://github.com/wazuh/wazuh-splunk/issues/637)

### Changed
- Improved app performance [#798](https://github.com/wazuh/wazuh-splunk/issues/798)
- APP navigation have been improved using nested states [#669](https://github.com/wazuh/wazuh-splunk/issues/669)
- Reduced Agents preview load time using the new API endpoint /summary/agents [#798](https://github.com/wazuh/wazuh-splunk/issues/798)
- Replaced the requirements slider component with a new styled component [805(https://github.com/wazuh/wazuh-splunk/issues/805)
- Modules are just being shown only when supported by the agent OS. [#753](https://github.com/wazuh/wazuh-splunk/issues/753)

### Fixed
- API sensitive information is now hidden on every transition [#792](https://github.com/wazuh/wazuh-splunk/issues/792)
- Fixed NULL labels in visualizations [#783](https://github.com/wazuh/wazuh-splunk/issues/783)
- Agent data is now being shown correctly when the agent is not active [#748](https://github.com/wazuh/wazuh-splunk/issues/748)
- Devtools content is now successfully loaded [#734](https://github.com/wazuh/wazuh-splunk/issues/734)
- Filters are correctly applied in the search bar [#732](https://github.com/wazuh/wazuh-splunk/issues/732)
- Removed duplicated Log box [#740](https://github.com/wazuh/wazuh-splunk/issues/740)
- Applied the right sorting order on lists [#721](https://github.com/wazuh/wazuh-splunk/issues/721)
- Fixed blank page in Management->Cluster [#734](https://github.com/wazuh/wazuh-splunk/issues/734)
- Cluster is properly validated [#699](https://github.com/wazuh/wazuh-splunk/issues/699)
- Fixed Agents tab navigation using the breadcrumb [#810](https://github.com/wazuh/wazuh-splunk/issues/810)


## Wazuh v3.9.5 - Splunk Enterprise v7.3.0 - Revision 36

### Added
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
| 7.3.0 | 3.9.3 | <https://packages.wazuh.com/3.x/splunkapp/v3.9.3_7.3.0.tar.gz> |
| 7.3.0 | 3.9.4 | <https://packages.wazuh.com/3.x/splunkapp/v3.9.4_7.3.0.tar.gz> |
| 7.3.0 | 3.9.5 | <https://packages.wazuh.com/3.x/splunkapp/v3.9.5_7.3.0.tar.gz> |
| 7.3.0 | 3.10.0 | <https://packages.wazuh.com/3.x/splunkapp/v3.10.0_7.3.0.tar.gz> |


## Upgrade
Expand Down
1 change: 1 addition & 0 deletions SplunkAppForWazuh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Wazuh app for Splunk offers an option to visualize _Wazuh Alerts_ and _API data_
| 7.3.0 | 3.9.3 | <https://packages.wazuh.com/3.x/splunkapp/v3.9.3_7.3.0.tar.gz> |
| 7.3.0 | 3.9.4 | <https://packages.wazuh.com/3.x/splunkapp/v3.9.4_7.3.0.tar.gz> |
| 7.3.0 | 3.9.5 | <https://packages.wazuh.com/3.x/splunkapp/v3.9.5_7.3.0.tar.gz> |
| 7.3.0 | 3.10.0 | <https://packages.wazuh.com/3.x/splunkapp/v3.10.0_7.3.0.tar.gz> |

## Upgrade

Expand Down
Empty file.
171 changes: 152 additions & 19 deletions SplunkAppForWazuh/appserver/controllers/api.py

Large diffs are not rendered by default.

68 changes: 68 additions & 0 deletions SplunkAppForWazuh/appserver/controllers/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# -*- coding: utf-8 -*-
"""
Wazuh app - API backend module.
Copyright (C) 2015-2019 Wazuh, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Find more information about this on the LICENSE file.
"""

import jsonbak
import splunk.appserver.mrsparkle.controllers as controllers
from splunk.appserver.mrsparkle.lib.decorators import expose_page
from log import log
from edit_config import EditConfig

class Configuration(controllers.BaseController):

"""Queue class.
Handle Jobs queue methods
"""

def __init__(self):
"""Constructor."""
try:
self.config = EditConfig()
self.logger = log()
controllers.BaseController.__init__(self)
except Exception as e:
self.logger.error("config: Error in configuration module constructor: %s" % (e))
@expose_page(must_login=False, methods=['POST'])
def update_config(self, **kwargs):
"""Updates a parameter of the configuration.
Parameters
----------
kwargs : dict
Request parameters
"""
try:
self.logger.debug("config: Updating configuration.")
result = self.config.update_config(kwargs)
return jsonbak.dumps({"data": result, "error": 0})
except Exception as e:
self.logger.error("config: Error updating the configuration: %s" % (e))
return jsonbak.dumps({'error': str(e)})

@expose_page(must_login=False, methods=['GET'])
def get_config(self):
"""Gets the configuration.
Parameters
----------
kwargs : dict
Request parameters
"""
try:
self.logger.debug("config: Reading the config.conf file.")
config = self.config.get_config()
return jsonbak.dumps({"data": config, "error": 0})
except Exception as e:
self.logger.error("config: Error getting the configuration: %s" % (e))
return jsonbak.dumps({'error': str(e)})
Loading

0 comments on commit b0502f5

Please sign in to comment.