You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main structure for creating the OVA and AMI will be divided into different Python modules, with each module responsible for a specific part of the generation process.
Modules
Provisioner
First, a module will be required to handle the provisioning of the various Wazuh components and dependencies. This module will be referred to as the provisioner.
Configurer
Once Wazuh's components and dependencies have been provisioned, it is necessary to configure each component so they can communicate correctly with one another. This will be the responsibility of the configurer module.
To achieve this, the configurer will be divided into three submodules, each focusing on different configurations:
core_configurer: This will be the primary module responsible for the initial configuration of each component. It will configure each component to ensure a functional product (similar to the installation assistant).
ova_configurer: This submodule will focus on all configurations required for the OVA. After the essential configurations for a functional product are completed, this module will prepare the product for deployment as an OVA.
ami_configurer: This submodule will focus on all configurations required for the AMI. After the essential configurations for a functional product are completed, this module will prepare the product for deployment as an AWS AMI.
Tests
Unit Tests
As new functionalities are developed in each module mentioned earlier, a series of tests should be written to ensure that what is being developed works correctly. These unit tests will focus on validating individual functions, methods, and components of the codebase.
These tests will be written using pytest, the most widely used library in Python for creating tests.
Deployment Tests
In addition to unit tests, it is also necessary to create a set of deployment tests. These tests should verify that, once the entire configuration process is complete and the machine is ready, everything functions as expected.
The deployment tests must ensure the following:
Verify that log files contain no errors.
Confirm proper access to the Wazuh dashboard.
Validate that certificates are correctly created.
Check for correct connectivity between components.
Description
The main structure for creating the OVA and AMI will be divided into different Python modules, with each module responsible for a specific part of the generation process.
Modules
Provisioner
First, a module will be required to handle the provisioning of the various Wazuh components and dependencies. This module will be referred to as the provisioner.
Configurer
Once Wazuh's components and dependencies have been provisioned, it is necessary to configure each component so they can communicate correctly with one another. This will be the responsibility of the configurer module.
To achieve this, the configurer will be divided into three submodules, each focusing on different configurations:
Tests
Unit Tests
As new functionalities are developed in each module mentioned earlier, a series of tests should be written to ensure that what is being developed works correctly. These unit tests will focus on validating individual functions, methods, and components of the codebase.
These tests will be written using
pytest
, the most widely used library in Python for creating tests.Deployment Tests
In addition to unit tests, it is also necessary to create a set of deployment tests. These tests should verify that, once the entire configuration process is complete and the machine is ready, everything functions as expected.
The deployment tests must ensure the following:
Proposed project structure
DRI
@teddytpc1
The text was updated successfully, but these errors were encountered: