Skip to content

Commit

Permalink
Update rule assertion for CNI config permissions
Browse files Browse the repository at this point in the history
These rules were failing in the past because the networking operator
created the file with permissions of 644. That's been tightened, so this
rule is passing by default for 4.17:

  openshift/cluster-network-operator#2106
  • Loading branch information
rhmdnd committed Aug 14, 2024
1 parent b4b4b7b commit 2bda2e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/assertions/ocp4/ocp4-cis-node-4.17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ rule_results:
e2e-cis-node-master-file-owner-worker-service:
default_result: PASS
e2e-cis-node-master-file-permissions-cni-conf:
default_result: FAIL
default_result: PASS
e2e-cis-node-master-file-permissions-controller-manager-kubeconfig:
default_result: PASS
e2e-cis-node-master-file-permissions-etcd-data-dir:
Expand Down Expand Up @@ -316,7 +316,7 @@ rule_results:
e2e-cis-node-worker-file-owner-worker-service:
default_result: PASS
e2e-cis-node-worker-file-permissions-cni-conf:
default_result: FAIL
default_result: PASS
e2e-cis-node-worker-file-permissions-controller-manager-kubeconfig:
default_result: NOT-APPLICABLE
e2e-cis-node-worker-file-permissions-etcd-data-dir:
Expand Down
8 changes: 4 additions & 4 deletions tests/assertions/ocp4/ocp4-stig-node-4.17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ rule_results:
default_result: PASS
result_after_remediation: PASS
e2e-stig-node-master-file-permissions-cni-conf:
default_result: FAIL
result_after_remediation: FAIL
default_result: PASS
result_after_remediation: PASS
e2e-stig-node-master-file-permissions-controller-manager-kubeconfig:
default_result: PASS
result_after_remediation: PASS
Expand Down Expand Up @@ -495,8 +495,8 @@ rule_results:
default_result: PASS
result_after_remediation: PASS
e2e-stig-node-worker-file-permissions-cni-conf:
default_result: FAIL
result_after_remediation: FAIL
default_result: PASS
result_after_remediation: PASS
e2e-stig-node-worker-file-permissions-controller-manager-kubeconfig:
default_result: NOT-APPLICABLE
result_after_remediation: NOT-APPLICABLE
Expand Down

0 comments on commit 2bda2e0

Please sign in to comment.