Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v2.7] Update latest CIS chart for k8s v1.27 support #44741

Closed
vardhaman22 opened this issue Mar 8, 2024 · 1 comment
Closed

[v2.7] Update latest CIS chart for k8s v1.27 support #44741

vardhaman22 opened this issue Mar 8, 2024 · 1 comment

Comments

@vardhaman22
Copy link
Contributor

CIS chart 4.3.0 was released with dev-v2.7.11 which supports k8s v1.27 so that support needs to be added to the 4.4.0 chart as well.

@rishabhmsra
Copy link
Contributor

Validated on rancher v2.7-head(1cef09f), using CIS chart 4.4.0-rc2

Fresh install - CIS v1.8-permissive profile scan:

  • RKE1 v1.27.11-rancher1-1 node driver and custom - passed
  • RKE2 v1.27.11+rke2r1 node driver and custom - observed below failures which are expected 42971
Fail
1.1.1	Ensure that the API server pod specification file permissions are set to 600 or more restrictive (Automated)
Fail
1.1.3	Ensure that the controller manager pod specification file permissions are set to 600 or more restrictive (Automated)
Fail
1.1.5	Ensure that the scheduler pod specification file permissions are set to 600 or more restrictive (Automated)
Fail
1.1.7	Ensure that the etcd pod specification file permissions are set to 600 or more restrictive (Automated)
  • K3s v1.27.11+k3s1 node driver and custom - passed

Upgrade checks :

  • Provisioned v1.26 RKE1, RKE2 and K3s node driver and custom cluster.
  • Installed 4.0.0 CIS chart.
  • Upgraded clusters to v1.27
  • Upgraded chart to 4.4.0-rc2
  • Ran permissive profile scan and it passed on all clusters except failures on RKE2 which is expected as mentioned in Fresh install.
  • Also performed chart upgrade on same clusters, that means on RKE1, RKE2, K3s v1.27 cluster upgraded only chart from version 4.0.0 to 4.4.0-rc2

Hardened RKE1, RKE2 and K3s - CIS v1.8 permissive as well as hardened profile:

  • RKE1 v1.27 - scan failed with below expected failure - 42971
Mixed
4.1.7	Ensure that the certificate authorities file permissions are set to 600 or more restrictive (Automated)
  • RKE2 v1.27 - passed.
  • K3s v1.27 - passed.

Imported clusters:

  • Provisioned RKE1 v1.27.11-rancher1-1 cluster and ran permissive v1.8 profile scan - passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants