Actions
Bug #20142
openInvalid metadata (section with empty name) generated by the technique editor
Pull Request:
Severity:
Critical - prevents main use of Rudder | no workaround | data loss | security
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
Description
While working on the CIS technique for rhel7 in rudder language, I ended up with a broken metadata.xml, resulting in a broken technique.
No errors where detected or thrown by the technique editor, but my technique does not appear in the directive webapp page nor in the technique tree.
The webapp logs are raising the following errors:
[2021-10-11 14:13:22+0000] ERROR application - An error occurred when compiling technique 'My technique name' (id : 'BundleName(CIS_rhel7_setup_filesystem)') with rudderc, error details in /var/log/rudder/rudderc/failures/2021-10-11T14:13:22.704Z_CIS_rhel7_setup_filesystem.log, falling back to old saving process [2021-10-11 14:13:23+0000] ERROR techniques.reader - Error with technique at path: '/ncf_techniques/CIS_rhel7_setup_filesystem/1.0/metadata.xml', it will be ignored. Error: Chained: Couldn't parse Section in CIS_rhel7_setup_filesystem/1.0 -> My technique name for XML: <SECTION reporting="sum" name="Initial Setup" multivalued="true" component="true"> <SECTION reporting="sum" name="Additional Process Hardening" multivalued="true" component="true"> <SECTION reporting="sum" name="Ensure XD/NX support is enabled" multivalued="true" component="true"> <SECTION name="Condition from command" multivalued="true" component="true"> <REPORTKEYS> <VALUE>xd_nx_support_enabled</VALUE> </REPORTKEYS> </SECTION> <SECTION name="Report if condition" multivalued="true" component="true"> <REPORTKEYS> <VALUE>Ensure core dumps are restricted</VALUE>I could not find what the issue was, the xml seems correct (xmllint accepts it).
The metadata.xml is pretty big, and is attached in the ticket. There are two issues here:
- The technique should not be saved and failing silently in the technique editor if the metadata.xml is incorrect
- The metadata does not seem to work as intended
Files
Updated by Vincent MEMBRÉ about 3 years ago
- Target version changed from 7.0.0~beta2 to 7.0.0~beta3
Updated by Vincent MEMBRÉ about 3 years ago
- Target version changed from 7.0.0~beta3 to 7.0.0~rc1
Updated by Vincent MEMBRÉ almost 3 years ago
- Target version changed from 7.0.0~rc1 to 7.0.0~rc2
- Priority changed from 76 to 75
Updated by Vincent MEMBRÉ almost 3 years ago
- Target version changed from 7.0.0~rc2 to 7.0.0~rc3
Updated by Vincent MEMBRÉ almost 3 years ago
- Target version changed from 7.0.0~rc3 to 7.0.0
- Priority changed from 75 to 73
Updated by Vincent MEMBRÉ almost 3 years ago
- Target version changed from 7.0.0 to 7.0.1
Updated by François ARMAND almost 3 years ago
- Priority changed from 73 to 72
The root cause is lower in the error trace:
cause was: Parsing: Section must have name. Missing name for: <SECTION reporting="weighted" name="" multivalued="true" component="true">
So the technique editor missed generation of a name somewhere.
Updated by François ARMAND almost 3 years ago
- Subject changed from Invalid metadata generated by the technique editor to Invalid metadata (section with empty name) generated by the technique editor
Updated by François ARMAND almost 3 years ago
- Related to Bug #19930: We were able to save a technique without a name which caused chaos added
Updated by Vincent MEMBRÉ almost 3 years ago
- Target version changed from 7.0.1 to 7.0.2
Updated by Vincent MEMBRÉ over 2 years ago
- Target version changed from 7.0.2 to 7.0.3
- Priority changed from 72 to 70
Updated by Vincent MEMBRÉ over 2 years ago
- Target version changed from 7.0.3 to 7.0.4
- Priority changed from 70 to 69
Updated by Vincent MEMBRÉ over 2 years ago
- Target version changed from 7.0.4 to 7.0.5
- Priority changed from 69 to 67
Updated by Vincent MEMBRÉ over 2 years ago
- Target version changed from 7.0.5 to 7.0.6
- Priority changed from 67 to 66
Updated by Vincent MEMBRÉ about 2 years ago
- Target version changed from 7.0.6 to 7.0.7
- Priority changed from 66 to 0
Updated by Vincent MEMBRÉ about 2 years ago
- Target version changed from 7.0.7 to 7.0.8
Updated by Vincent MEMBRÉ about 2 years ago
- Target version changed from 7.0.8 to 1002
Updated by Vincent MEMBRÉ about 2 years ago
- Target version changed from 1002 to 7.1.7
Updated by Vincent MEMBRÉ about 2 years ago
- Target version changed from 7.1.7 to 7.1.8
Updated by Vincent MEMBRÉ almost 2 years ago
- Target version changed from 7.1.8 to 7.1.9
Updated by Vincent MEMBRÉ almost 2 years ago
- Target version changed from 7.1.9 to 7.1.10
Updated by Vincent MEMBRÉ almost 2 years ago
- Target version changed from 7.1.10 to 1016
Updated by Alexis Mousset over 1 year ago
- Target version changed from 1016 to 7.2.5
Updated by Vincent MEMBRÉ over 1 year ago
- Target version changed from 7.2.5 to 7.2.6
Updated by Vincent MEMBRÉ over 1 year ago
- Target version changed from 7.2.6 to 7.2.7
Updated by Vincent MEMBRÉ over 1 year ago
- Target version changed from 7.2.7 to 7.2.8
Updated by Vincent MEMBRÉ over 1 year ago
- Target version changed from 7.2.8 to 7.2.9
Updated by Vincent MEMBRÉ over 1 year ago
- Target version changed from 7.2.9 to 7.2.10
Updated by Alexis Mousset over 1 year ago
- Target version changed from 7.2.10 to 7.2.11
Updated by Vincent MEMBRÉ about 1 year ago
- Target version changed from 7.2.11 to 1046
Updated by Alexis Mousset about 1 year ago
- Target version changed from 1046 to 7.3.8
Updated by Vincent MEMBRÉ about 1 year ago
- Target version changed from 7.3.8 to 7.3.9
Updated by Vincent MEMBRÉ about 1 year ago
- Target version changed from 7.3.9 to 7.3.10
Updated by Vincent MEMBRÉ 12 months ago
- Target version changed from 7.3.10 to 7.3.11
Updated by Vincent MEMBRÉ 10 months ago
- Target version changed from 7.3.11 to 7.3.12
Updated by Vincent MEMBRÉ 9 months ago
- Target version changed from 7.3.12 to 7.3.13
Updated by Vincent MEMBRÉ 9 months ago
- Target version changed from 7.3.13 to 7.3.14
Updated by Vincent MEMBRÉ 7 months ago
- Target version changed from 7.3.14 to 7.3.15
Updated by Vincent MEMBRÉ 6 months ago
- Target version changed from 7.3.15 to 7.3.16
Updated by Vincent MEMBRÉ 5 months ago
- Target version changed from 7.3.16 to 7.3.17
Actions