-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
default group merged.mg error #20851
default group merged.mg error #20851
Comments
Investigated in wazuh/wazuh-docker#1154 Reproduced through a 4.7.1 Wazuh installation assistant deployment, not related to Wazuh docker, added to @wazuh/core initially to triage it Thanks @IOTech17 |
UpdateAfter taking a look at the code and with the help of @Desvelao, these are the conclusions: The dashboard is sending a wazuh/framework/wazuh/core/configuration.py Lines 819 to 829 in 037ede2
There is an XML validator in the dashboard, which is the one that shows the error message since the content obtained is JSON format. ProposalAs I mentioned, except for the We need to rethink and refactor these endpoints: Since we are not transforming files to XML in the current |
Great news, so the file is fine it is just the validator trying to validate a file that is being parsed as Json not XML. Quick question, is there a guide to get all these file to be loaded for the non default groups? |
@IOTech17 agents can belong to multiple groups and will get files from all of them. Additionally, all of them belong to the default group unless explicitly indicated otherwise. Therefore, the easiest way to ensure that all agents have these files regardless of what other groups they belong to is to do nothing. You can take a look at this related documentation: The only alternative I can think of is to manually add the files to the other groups. |
UpdateI began analysing the affected endpoints, the potential solutions and their implications. |
UpdateI merged both endpoints into one that contains the I decided to make |
Update
|
UpdateUpdated the |
UpdateApplied the changes requested and tested them. |
Reopening this since it was closed automatically when merging the PR. The documentation will need to be updated (#21653 (review)) |
UpdateUpdated the documentation RBAC reference. |
I have upgrade from Wazuh docker 4.5.2 to 4.60 then from 4.6.0 to 4.7.0
When checking the merged.mg file of the default group I get an error that the file contains an error
error on line 1 at column 847: xmlParseEntityRef: no name
Is this a bug or normal?
Another question is there a way to make sure any news group created get all the files the default has?
Thank you in advance,
The text was updated successfully, but these errors were encountered: