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

Improve the Wazuh unattended scripts to be used with a proxy #2829

Closed
rauldpm opened this issue Feb 15, 2024 · 0 comments
Closed

Improve the Wazuh unattended scripts to be used with a proxy #2829

rauldpm opened this issue Feb 15, 2024 · 0 comments
Labels
level/task Subtask issue type/enhancement Enhancement issue

Comments

@rauldpm
Copy link
Member

rauldpm commented Feb 15, 2024

Description

A community user has reported a problem when running the installation assistant and is unable to correctly set the GPG key when using the following command:

sudo curl --proxy myCompanyProxy.xxx.com:80 -sO https://packages.wazuh.com/4.7/wazuh-install.sh && sudo bash ./wazuh-install.sh -a

Note that to download the script, the --proxy option had to be used in the curl command, but this is not propagated to the script execution, and since it has multiple curl calls it will fail to download the resources.

We must allow the execution of the script if a proxy server is available; for this, it is necessary to add a new option that accepts the proxy address

To avoid this problem it is possible to set environment variables with export:

export http_proxy=http://proxy.example.com:8080
export https_proxy=http://proxy.example.com:8080

Or passing the variable directly to the script:

http_proxy=proxy.example.com:8080 https_proxy=proxy.example.com:8080 bash ./wazuh-install.sh -a

But we should not delegate this type of action since the script should be user-friendly with the functionality it offers

Note

Other download options such as installing the central components should be taken into account

@rauldpm rauldpm added level/task Subtask issue type/enhancement Enhancement issue labels Feb 15, 2024
@rauldpm rauldpm changed the title Improve the Wazuh installation assistant to be used with a proxy Improve the Wazuh unattended scripts to be used with a proxy Feb 15, 2024
@teddytpc1 teddytpc1 closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Subtask issue type/enhancement Enhancement issue
Projects
None yet
Development

No branches or pull requests

2 participants