Skip to content

Commit

Permalink
Fix URL regex in server side
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesús Ángel González authored and Jesús Ángel committed Jul 10, 2018
1 parent e9b23c8 commit 11ae30d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/controllers/wazuh-api-elastic.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import ErrorResponse from './error-response';

const userRegEx = new RegExp(/^.{3,100}$/);
const passRegEx = new RegExp(/^.{3,100}$/);
const urlRegEx = new RegExp(/^https?:\/\/[a-zA-Z0-9]{1,300}$/);
const urlRegEx = new RegExp(/^https?:\/\/[a-zA-Z0-9-.]{1,300}$/);
const urlRegExIP = new RegExp(/^https?:\/\/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/);
const portRegEx = new RegExp(/^[0-9]{2,5}$/);

Expand Down

2 comments on commit 11ae30d

@tomaszsiemienik
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi, can we get this fix applied to plugin version which supports ELK version 6.2.4 and wazuh 3.3.0. We are currently on this version of plugin https://packages.wazuh.com/wazuhapp/wazuhapp-3.3.1_6.2.4.zip

thank you.

@jesusgn90
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @tomaszsiemienik ,

Currently, we are supporting up to Wazuh 3.6.1 and Elastic 6.4.2, if you still need your version, just edit the same file (server/controllers/wazuh-api-elastic.js) which is located under /usr/share/kibana/plugins/wazuh/. Once edited, execute the next steps to apply your changes:

systemctl stop kibana
rm -rf /usr/share/kibana/optimize/bundles
chown kibana:kibana -R /usr/share/kibana/optimize
chown kibana:kibana -R /usr/share/kibana/plugins
systemctl restart kibana

It will rebuild all Kibana components, so be patient.

Check status as follow:

systemctl status kibana -l

Regards!

Please sign in to comment.