-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[2nd iteration] Soft deprecation for ".wazuh" index #1771
Comments
Hi team, I've been working on the front-end side of this task. The working branch is https://github.com/wazuh/wazuh-kibana-app/tree/issue-1771-1. Started two new components for "How to configure the Wazuh API" and "Troubleshooting Wazuh API not reachable", not finished yet, but here is a sneak-peek: On the other hand, I'm also working on changing the "Settings" controller, some functions are no longer needed, other ones are wrong now and must be adapted for this task. |
Update 09.06.19 The following points related to this issue are solved in this branch: migrate-index-yml.
Working on: Every API entry found in wazuh-hosts.yml has a pair in wazuh-registry.json (old wazuh-version.json) with the cluster status, the manager name, and the related extensions. |
After the view changes on the client-side, we've refactored the controller dcee4c1 to remove unused methods, and to adapt the controller for latest changes. |
Update 09.09.19 The
[
{
"yqYyFm0BvJqWYtQxtyi9":{
"url":"http://localhost",
"port":55000,
"user":"foo",
"password":"******",
"cluster_info":{
"manager":"master",
"node":"manager_01",
"cluster":"wazuh",
"status":"enabled"
},
"extensions":{
"audit":true,
"pci":true,
"gdpr":true,
"hipaa":true,
"nist":true,
"oscap":false,
"ciscat":false,
"aws":false,
"virustotal":false,
"osquery":false,
"docker":false
}
}
},
{
"y6YyFm0BvJqWYtQxuChI":{
"url":"http://localhost",
"port":55000,
"user":"foo",
"password":"******",
"cluster_info":{
"manager":"master",
"node":"manager_01",
"cluster":"wazuh",
"status":"enabled"
},
"extensions":{
"audit":true,
"pci":true,
"gdpr":true,
"hipaa":true,
"nist":true,
"oscap":false,
"ciscat":false,
"aws":false,
"virustotal":false,
"osquery":false,
"docker":false
}
}
}
] |
Updated 10.09.19
|
Updated 11.09.19 Working on: Adapt our server endpoints for updating API properties, the front-end should be able to use the same endpoints as before, not changing its logic drastically. Some endpoints have been changed:
|
Update 12.09.19 Working on: Adapt our server endpoints for updating API properties, the front-end should be able to use the same endpoints as before, not changing its logic drastically.
|
Update 13.09.19
|
Update 18.09.19
|
Update 20.09.19 Fixed Removed |
Update 30.09.19
|
Update 02.10.19 Unsigned certifications are now is supported. |
Update 04.10.19 Fixed:
NOTE: If there's some API entry as default in the cookies when accessing the APP if the credentials have changed or the entry has been removed an error is shown in the health-check, this is normal behavior because the stored API cannot be connected, also, is the current behavior. |
Update 07.10.19 Improved error handler when stored API cannot be reached. |
Solved: #1811 |
Hi team,
After #1465 and after discussing internally how we should manage this task, here are the next steps for this task.
Client side (front-end)
Server side (back-end)
If the index
.wazuh
exists, copy its content towazuh-hosts.yml
@adri9valleEvery API entry found in
wazuh-hosts.yml
has a pair inwazuh-registry.json
(oldwazuh-version.json
) with the cluster status, the manager name, and the related extensions. @adri9valleRemove orphan code after the rework, for example, the "Save settings" option in the front-end is going to be removed, then the related back-end route is no longer needed.
Remove orphan registry entries when a host is deleted.
Default structure for
wazuh-hosts.yml
:Real example:
In the above example, both
production
andstaging
are API entries. Each one would have an entry in thewazuh-registry.json
with the extensions and the cluster information.The text was updated successfully, but these errors were encountered: