kube-bench
kube-bench copied to clipboard
Syntax errors in node targets for OCP
Fixing syntax error in checks 4.1.1,4.1.2 for rhel-1.0. SLK-39504
@sm171190 Thanks for your contribution.
The audit contents look like don't have a syntax problem.
IMHO, the root cause of https://github.com/aquasecurity/kube-bench/discussions/1125 is the oc command was running failed due to miss profile file(https://docs.openshift.com/container-platform/4.6/cli_reference/openshift_cli/managing-cli-profiles.html) in the container. Please change to mount a profile file to the container then try again. @chen-keinan Could you help me verify this guess? Because I don't have an OCP account.
Codecov Report
Merging #1126 (ef67f21) into main (85020ff) will not change coverage. The diff coverage is
n/a.
@@ Coverage Diff @@
## main #1126 +/- ##
=======================================
Coverage 63.86% 63.86%
=======================================
Files 12 12
Lines 1882 1882
=======================================
Hits 1202 1202
Misses 619 619
Partials 61 61
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update 85020ff...ef67f21. Read the comment docs.
@mozillazg might take time to look into it.
@sm171190 this fix seems to be quite simple, Please confirm it solve the root cause of the issue