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

SCA is not defined in the Wazuh Manager and Wazuh Agent templates #256

Closed
3 tasks done
jm404 opened this issue Sep 27, 2019 · 1 comment
Closed
3 tasks done

SCA is not defined in the Wazuh Manager and Wazuh Agent templates #256

jm404 opened this issue Sep 27, 2019 · 1 comment
Assignees
Milestone

Comments

@jm404
Copy link
Contributor

jm404 commented Sep 27, 2019

Hi team,

The Wazuh Agent/Manager installation doesn't include the <sca> configuration block in the ossec.conf file.

This block is included and enabled in a default installation and should be added in order to make use of SCA functionalities

Tasks:

  • Implement <sca> block in the Wazuh templates

  • Add related variables to enable and configure this block

  • Test configuration with different variables values

Best regards,

Jose

@jm404
Copy link
Contributor Author

jm404 commented Sep 27, 2019

Hi team,

I updated the template in the Wazuh Manager and Wazuh Agent adding the following configuration:

{% if ansible_system == "Linux" %}
<sca>
{% if wazuh_agent_config.sca.enabled | length > 0 %}
<enabled>{{ wazuh_agent_config.sca.enabled }}</enabled>
{% endif %}
{% if wazuh_agent_config.sca.scan_on_start | length > 0 %}
<scan_on_start>{{ wazuh_agent_config.sca.scan_on_start }}</scan_on_start>
{% endif %}
{% if wazuh_agent_config.sca.interval | length > 0 %}
<interval>{{ wazuh_agent_config.sca.interval }}</interval>
{% endif %}
{% if wazuh_agent_config.sca.skip_nfs | length > 0 %}
<skip_nfs>yes</skip_nfs>
{% endif %}
{% if wazuh_agent_config.sca.day | length > 0 %}
<day>yes</day>
{% endif %}
{% if wazuh_agent_config.sca.wday | length > 0 %}
<wday>yes</wday>
{% endif %}
{% if wazuh_agent_config.sca.time | length > 0 %}
<time>yes</time>
{% endif %}
</sca>
{% endif %}

Also, related values are now initialized by default:

sca:
enabled: 'yes'
scan_on_start: 'yes'
interval: '12h'
skip_nfs: 'yes'
day: ''
wday: ''
time: ''

From Wazuh 3.10, SCA no longer contains the <policy> field relative to every OS, making much easier to mantain the specified template in Jinja2

Best regards,

Jose

@manuasir manuasir added this to the Sprint - 101 milestone Oct 8, 2019
@manuasir manuasir closed this as completed Oct 8, 2019
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