Skip to content

Update the AL2023 box used for OVA build process in the S3 bucket #284

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

Open
Enaraque opened this issue May 7, 2025 · 2 comments
Open

Update the AL2023 box used for OVA build process in the S3 bucket #284

Enaraque opened this issue May 7, 2025 · 2 comments
Assignees
Labels
level/task Task issue type/bug Bug issue

Comments

@Enaraque
Copy link
Member

Enaraque commented May 7, 2025

Description

In the local OVA build process, a custom Vagrantfile is used. This file references a box based on AL2023, created by Wazuh and stored in S3 at s3://packages-dev.wazuh.com/vms/ova/.

config.vm.box_url = "https://packages-dev.wazuh.com/vms/ova/al2023.box"

However, this box is not being updated when a new OVA is generated for each release. As a result, the box used locally may be outdated and not match the one used in the production OVA.

Although the box is built during the OVA creation process, it is not currently being uploaded to S3. It is necessary to upload the box to S3 alongside the OVA image so that users building the OVA locally can use the exact same box that was used to generate the production OVA.

@CarlosALgit
Copy link
Member

Update Report

I have changed the PreConfigurer function that prepares the wazuh-virtual-machines directory to be used by the CoreConfigurer, Provisioner and PostConfigurer. This function deletes all unnecessary files from the directory to make the process faster. An exception has been added to leave the al2023.box file so that it can later be uploaded to AWS S3.

I have also started to modify what is needed in the workflow to upload the Vagrant Box to the bucket.

@CarlosALgit
Copy link
Member

Update Report

Today I made the changes to the workflow to upload the Vagrant box to the S3 bucket and when testing here it gave an error. I assume it is a permissions error, because the path seems to be correct. I want to investigate also what happens if you try to upload a file that already exists in the bucket, could that be the reason for the error.

@wazuhci wazuhci moved this to In progress in XDR+SIEM/Release 6.0.0 May 12, 2025
@wazuhci wazuhci moved this from In progress to Blocked in XDR+SIEM/Release 6.0.0 May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue type/bug Bug issue
Projects
Status: Blocked
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants