Skip to content

Close the SCA policies tag #270

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

Open
wants to merge 5 commits into
base: devel
Choose a base branch
from
Open

Close the SCA policies tag #270

wants to merge 5 commits into from

Conversation

mrtc0
Copy link

@mrtc0 mrtc0 commented Jul 10, 2020

policies tag is not closed and the XML cannot be parsed. This fix closes the tag.

@Zenidd
Copy link
Contributor

Zenidd commented Jul 27, 2020

Hi @mrtc0, first of all, sorry for the late reply.

I just confirmed what you said above. Let us run some tests on your commit and I will let you know the results as soon as possible ( We just added testing through GitHub actions ).

Thanks for contributing, it's really appreciated!

Greetings,
JP

@Zenidd Zenidd self-assigned this Jul 27, 2020
@Zenidd Zenidd changed the base branch from master to devel July 27, 2020 15:39
@mrtc0
Copy link
Author

mrtc0 commented Sep 15, 2020

@Zenidd I confirmed that the test passes using act in my local environment. Is it possible to merge?

@Zenidd
Copy link
Contributor

Zenidd commented Sep 16, 2020

Hello again @mrtc0,

Sorry for the late reply. We are working hard to adapt our modules to the upcoming Wazuh 4.0 version.

About the PR, I think the proposed changes could lead to an error state in the Wazuh manager:

  <policies>
  <%- if @debian_additional_templates == 'yes' -%>
    <policy>cis_debianlinux7-8_L1_rcl.yml</policy>
    <policy>cis_debianlinux7-8_L2_rcl.yml</policy>
  <%- end -%>
  </policies>

Whether the comparison @debian_additional_templates == 'yes' is false, an empty <policies> </policies> block will be rendered leading to error:

2020/09/16 11:30:30 wazuh-modulesd: ERROR: (1202): Configuration error at '/var/ossec/etc/ossec.conf'.
wazuh-modulesd: Configuration error. Exiting

Could you consider this case and avoid rendering an empty <policies> </policies> block? It could be fixed by joining the <policies> </policies> inside the conditional block.

I'll keep an eye on this PR, let me know how it goes !

Greetings,

JP

Copy link
Contributor

@Zenidd Zenidd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Bug issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants