Skip to content
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

'wazuh-certs-generator' doesn't work in air-gapped or offline environments #1694

Open
spatterIight opened this issue Jan 16, 2025 · 3 comments
Assignees

Comments

@spatterIight
Copy link

spatterIight commented Jan 16, 2025

Since the wazuh-certs-generator docker image does not have wazuh-certs-tool.sh baked into the image it is fetched at run-time using curl from an S3 bucket.

This is not ideal since it requires an outbound internet connection, which may not be available in the security hardened environments that Wazuh is deployed to.

Would it possible to include this script in the image, so it can work in isolated environments?

Thanks

@spatterIight
Copy link
Author

Additionally, when run in such an environment there is no error to indicate what the problem is. It just hangs silently forever:

Image

@vcerenu vcerenu self-assigned this Jan 27, 2025
@vcerenu
Copy link
Member

vcerenu commented Jan 27, 2025

Hello @spatterIight

The image for creating certificates is a method of help for users that we create to speed up the deployment process and we normally generate new binaries of the wazuh-cert-tool.sh tools, so we do not tie the use of this binary to the image and we download it at the moment, so we require an internet connection for its use.

If you need to use a method of creating certificates offline, I recommend that you download the tool on your own and then use it, the way of use is simple and if you need help you can guide yourself with the entrypoint of the image to know what changes to make:
https://github.com/wazuh/wazuh-docker/blob/v4.10.1/indexer-certs-creator/config/entrypoint.sh

This image will be deprecated in future versions, so we are not generating new developments in it, but if it generates any error in your deployment, let us know so we can verify it

@spatterIight
Copy link
Author

thanks, appreciate it

for now i have modified the entry point of the image to load the script from the local file system instead of downloading it from the internet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants