Open c-bordon opened 1 week ago
The process of building the different files has been implemented. The process for uploading the files to the S3 bucket and defining the directory where they will be stored is yet to be defined.
After deciding the names of the files to upload, their proper functionality has been tested.
A new input DEVELOPMENT
has been added to determine how to build the files. If this variable is activated, the files will be created with the commit hash added to the current name (e.g., wazuh-install-<hash>.sh
) and with the development option (-d
) enabled. If this option is not activated, the files will be built with the usual name.
To verify that the files were built correctly, an artifact has been created to check the construction of the files. When the development option is added, the files are built with the hash in the name.
$ ls -la
total 536
drwx------@ 5 enriquearaqueespinosa staff 160 Sep 18 18:45 .
drwxrwxrwx@ 51 enriquearaqueespinosa staff 1632 Sep 18 18:45 ..
-rw-r--r--@ 1 enriquearaqueespinosa staff 36475 Sep 18 16:44 wazuh-certs-tool-379769d234200b0d23b55befdfb4f976870a8b7d.sh
-rw-r--r--@ 1 enriquearaqueespinosa staff 192228 Sep 18 16:44 wazuh-install-379769d234200b0d23b55befdfb4f976870a8b7d.sh
-rw-r--r--@ 1 enriquearaqueespinosa staff 44178 Sep 18 16:44 wazuh-passwords-tool-379769d234200b0d23b55befdfb4f976870a8b7d.sh
Having the path where the artifacts need to be uploaded, the only thing left is to add the steps to upload the files to S3 and tests that the files are build correctly.
The necessary steps to upload the files to S3 have been added. The only thing left is to test that they were built correctly.
Please consider the next information, because our package generation script needs an undocumented mandatory input field and behaviors.
Specs:
run-name: Build Installation Assistant ${{ inputs.id }}
id:
type: string
required: false
id:
type: string
description: |
ID used to identify the workflow uniquely.
required: false
The file name for the Installation Assistant files has been changed so that, if it is not stage, a shorter commit hash is used to make the file name more readable. The workflow_call
event and the id
imput have also been added.
Once these changes were made, the three files were tested.
The workflow has been tested with the is stage
option and without it. This was done to verify that the files are generated correctly and to check whether the corresponding commit hash is added to the files uploaded to S3 for the workflow without theis stage
option.
Description
Because of the
Wazuh packages redesign tier 2
objective we need to migrate the Wazuh installation assistant-related files from thewazuh-packages
repository to this one. The Wazuh installation assistant, Wazuh password tool, and Wazuh certificates tool are created in pre-release with thepublish_unattended
pipeline.Tasks
packages-dev.internal.wazuh.com
oidc-wazuh-installation-assistant-repository
role to only allow performing actions within thepackages-dev.internal.wazuh.com
in the previously defined folderWAZUH_INSTALLATION_ASSISTANT_VERSION
input from theBuild Installation Assistant
workflow as it will be obtained from the workflow branch in the workflow form or call (using the API)packages-dev.internal.wazuh.com/development/wazuh/4.x/secondary/installation-assistant/4.x.x