ComplianceAsCode / ComplianceAsCode/content

The `var_event_record_qps.var` doesn't match the type specified in the `yamlfile_value` template

Open
#9,564 0 comments 0 reactions 1 assignee Claimed by @ggbecker View on GitHub
OpenShift triaged
Dominant language
Shell
Stars
2.8k
Forks
828
Avg merge
3d 8m
Merged PRs (30d)
80

Description

The [var_event_record_qps.var](https://github.com/ComplianceAsCode/content/blob/stabilization-v0.1.64/applications/openshift/kubelet/var_event_record_qps.var) does not match the type specified in the following OVAL:

https://github.com/ComplianceAsCode/content/blob/4bac3653b762e50eb5a9d0786a1873bdd0113d5a/shared/templates/yamlfile_value/oval.template#L63

The template needs to be updated to accept the type of the variable as input and default to string if there is nothing defined.

This causes a warning to be produced in the OpenSCAP and the results can be unknown.

```
[7/13] [ocp4-content] linking IDs
Warning: XCCDF 'type' of "var_event_record_qps" value does not meet the XCCDF value 'type' to OVAL variable 'datatype' export matching constraint! Got: "number", Expected: "string". Resetting it! Set 'type' of "var_event_record_qps" to 'string' directly in the XCCDF content to dismiss this warning!
[13/13] [ocp4-content] Updating data stream ssg-ocp4-ds.xml to 1.3
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.