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
{label: "empty - val",op: "eq",flagVal: "",compareValue: "",expectedResultPattern: "'flagName' is equal to ''",testResult: false,flagName: "flagName"}
How did you run kube-bench?
kube-bench run --benchmark eks-1.2.0
What happened?
The check should pass when flagVal and compareValue are the same (including empty) and flagName is not empty. However, it is failing with the given parameters. Here’s the reference test for the same:
The intention was to compare flagVal and compareVal ("" == ""). However, there was an internal assignment of flagName to compareVal, resulting in a comparison of "" == "disabledIntegrityMonitoring". This unexpected behavior led to a test failure and incorrect outcomes.
What did you expect to happen?
The check should pass when flagVal and compareValue are the same (including empty) and flagName is not empty.
Environment
Kube-bench: v0.6.19
Client Version: v1.21.3
Server Version: v1.24.14-gke.2700
The text was updated successfully, but these errors were encountered:
Overview
Kube-bench checks are failing when the
flagVal
andcompareValue
are empty strings andflagName
is given.How did you run kube-bench?
What happened?
The check should pass when
flagVal
andcompareValue
are the same (including empty) andflagName
is not empty. However, it is failing with the given parameters. Here’s the reference test for the same:Test Details
Golang Function
Given the parameters provided:
The intention was to compare
flagVal
andcompareVal
("" == ""
). However, there was an internal assignment offlagName
tocompareVal
, resulting in a comparison of"" == "disabledIntegrityMonitoring"
. This unexpected behavior led to a test failure and incorrect outcomes.What did you expect to happen?
The check should pass when
flagVal
andcompareValue
are the same (including empty) andflagName
is not empty.Environment
The text was updated successfully, but these errors were encountered: