packages/wpk/README.md
In this repository, you can find the necessary tools to build a WPK package.
Usage: ./generate_wpk_package.sh [OPTIONS] It is required to use -k or --aws-wpk-key, --aws-wpk-cert parameters
-t, --target-system <target> [Required] Select target wpk to build [linux/windows/macos].
-b, --branch <branch> [Required] Select Git branch.
-d, --destination <path> [Required] Set the destination path of package.
-pn, --package-name <name> [Required] Path to package file (rpm, deb, apk, msi, pkg) to pack in wpk.
-o, --output <name> [Required] Name to the output package.
-k, --key-dir <path> [Optional] Set the WPK key path to sign package.
--aws-wpk-key [Optional] AWS Secrets manager Name/ARN to get WPK private key.
--aws-wpk-cert [Optional] AWS secrets manager Name/ARN to get WPK certificate.
--aws-wpk-key-region [Optional] AWS Region where secrets are stored.
-c, --checksum [Optional] Generate checksum on destination folder. By default: no.
--dont-build-docker [Optional] Locally built docker image will be used instead of generating a new one. By default: yes.
--tag <name> [Optional] Tag to use with the docker image.
-h, --help Show this help.
Please, visit the following link for the full WPK packages building documentation: Generate Wazuh WPK packages automatically.
There are workflows to generate both the necessary Docker images and to generate the WPKs of each of the operating systems:
It is responsible for building and uploading the images necessary for the WPK script to our ghcr bucket. The image name for all systems it is 'common_wpk_builder'. The parameters it accepts are:
docker_image_tag: Tag name of the Docker image to be uploaded. Use 'developer' to set branch name as tag. Use 'auto' to set branch version as tag. If using a custom tag, use only '-', '_', '.' and alphanumeric characters. Default is 'auto'.
source_reference: Branch from wazuh/wazuh repository to use.
packages-build-wpk.yml It is responsible for generating the WPKs for each system using the generate_wpk_package script. The parameters it accepts are:
If you want to contribute to our project please don't hesitate to send a pull request. You can also join our users mailing list by sending an email to [email protected]or join to our Slack channel by filling this form to ask questions and participate in discussions.
WAZUH Copyright (C) 2015 Wazuh Inc. (License GPLv2)