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

Update macOS installation guide and agent deployment variables #6123

Closed
jnasselle opened this issue May 23, 2023 · 0 comments · Fixed by #6125
Closed

Update macOS installation guide and agent deployment variables #6123

jnasselle opened this issue May 23, 2023 · 0 comments · Fixed by #6125
Assignees

Comments

@jnasselle
Copy link
Member

jnasselle commented May 23, 2023

Related issue wazuh/wazuh-packages#2205

Description

As described on wazuh/wazuh-packages#2205, since macOS Ventura 13.4 and its Secure Integrity Protection mechanism is not allowing to run launchctl setenv and launchctl getenv as root user .

To solve this problem, a custom temporary file will be created with the desired Deployment information and will be consumed by the installer, being removed after being read.

Related references:
https://documentation.wazuh.com/current/user-manual/deployment-variables/deployment-variables-macos.html
https://documentation.wazuh.com/current/upgrade-guide/wazuh-agent/macos.html

Current (4.4.2)

launchctl setenv WAZUH_MANAGER "10.0.0.2" && installer -pkg wazuh-agent-4.4.2-1.pkg -target /

4.4.3

sudo echo "WAZUH_MANAGER='1.1.1.1'" > /tmp/wazuh_envs && sudo installer -pkg wazuh-agent-4.4.3-1.pkg -target /

Command line specs: wazuh/wazuh-dashboard-plugins#5466 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants