You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
autotailor: Apply review feedback for data stream validation
- Move XML namespace dict to module-level DS_NAMESPACES constant
- Split _parse_datastream into _extract_profiles/values/rules/groups
- Add selector validation for -V/--var-select option
- Fix terminology: "datastream" -> "data stream" in all user-facing text
- Add --no-validate option to the man page
Copy file name to clipboardExpand all lines: utils/autotailor.8
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,8 @@ A tailoring file adds a new profile, which is supposed to extend a profile that
8
8
Tailoring can add, remove or refine rules, and it also can redefine contents of XCCDF variables.
9
9
10
10
The tool requires data stream location and ID of the base profile as inputs.
11
-
Note however, that the referenced data stream is not opened, and the validity of tailoring is not checked against it.
12
-
The tool doesn't prevent you from extending non-existent profiles, selecting non-existent rules, and so on.
11
+
By default, the tool parses the referenced data stream and validates provided IDs (profiles, rules, values, groups, and selectors) against it.
12
+
Validation can be skipped using the \fB--no-validate\fR option, which significantly speeds up execution on large data streams at the cost of no longer catching invalid IDs.
@@ -81,6 +81,11 @@ Use local path for the benchmark href instead of absolute file:// URI. This opti
81
81
When this option is specified, absolute paths are converted to basename only, while relative paths are preserved as provided.
82
82
By default, the tool uses absolute file:// URIs for backward compatibility.
83
83
.RE
84
+
.TP
85
+
\fB--no-validate\fR
86
+
.RS
87
+
Skip validation of IDs against the data stream. This significantly speeds up execution on large data streams but may produce invalid tailoring files if incorrect IDs are provided. Use with caution.
0 commit comments