kube-bench icon indicating copy to clipboard operation
kube-bench copied to clipboard

Syntax errors in node targets for OCP

Open sm171190 opened this issue 3 years ago • 3 comments
trafficstars

Fixing syntax error in checks 4.1.1,4.1.2 for rhel-1.0. SLK-39504

sm171190 avatar Mar 23 '22 09:03 sm171190

@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.

mozillazg avatar Mar 23 '22 14:03 mozillazg

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 data Powered by Codecov. Last update 85020ff...ef67f21. Read the comment docs.

codecov[bot] avatar Mar 24 '22 06:03 codecov[bot]

@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

chen-keinan avatar Mar 27 '22 06:03 chen-keinan