From 074a901d738111fb39dfd649e1ef80a60f86dde9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20=C3=81ngel=20Gonz=C3=A1lez?= Date: Sat, 24 Mar 2018 12:11:37 +0100 Subject: [PATCH 1/2] Removed clear API password con checkStored route --- server/api/wazuh-api.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/api/wazuh-api.js b/server/api/wazuh-api.js index 0079b4fd98..496e33c369 100644 --- a/server/api/wazuh-api.js +++ b/server/api/wazuh-api.js @@ -81,6 +81,7 @@ module.exports = (server, options) => { wapi_config.cluster_info.manager = managerName; wapi_config.cluster_info.node = response.body.data.node; wapi_config.cluster_info.cluster = response.body.data.cluster; + wapi_config.password = '****'; reply({ 'statusCode': 200, 'data': wapi_config @@ -101,6 +102,7 @@ module.exports = (server, options) => { wapi_config.cluster_info.status = 'disabled'; wapi_config.cluster_info.cluster = 'Disabled'; wapi_config.cluster_info.manager = managerName; + wapi_config.password = '****'; reply({ 'statusCode': 200, 'data': wapi_config @@ -124,7 +126,7 @@ module.exports = (server, options) => { }) .catch(error => { if(error.code === 'ECONNREFUSED'){ - wapi_config.password = "You shall not pass"; + wapi_config.password = '****'; wapi_config.apiIsDown = true; reply({ 'statusCode': 200, From a88513159a2c047b31f02b2f15008a03d035aba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20=C3=81ngel=20Gonz=C3=A1lez?= Date: Sat, 24 Mar 2018 12:12:01 +0100 Subject: [PATCH 2/2] Increased query result size on checkPattern route --- server/api/wazuh-elastic.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/api/wazuh-elastic.js b/server/api/wazuh-elastic.js index 0564afa21a..4cf59eaa33 100644 --- a/server/api/wazuh-elastic.js +++ b/server/api/wazuh-elastic.js @@ -160,6 +160,7 @@ module.exports = (server, options) => { elasticRequest.callWithInternalUser('search', { index: '.kibana', body: { + 'size' : 999, 'query': { 'bool': { 'must': {