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

Improve security-scan's e2e validation with yamllint and kube-bench dry-run #227

Closed
2 tasks done
andypitcher opened this issue Oct 17, 2023 · 2 comments
Closed
2 tasks done

Comments

@andypitcher
Copy link
Contributor

andypitcher commented Oct 17, 2023

Improve validation of the cfgs as soon as they get created/modified, by running yamllint (checking the structure of the yamls) and kube-bench dry-run (checking the correctness of the cfgs).

@andypitcher andypitcher changed the title Improve security-scan's e2e to test each distribution's scan results Improve security-scan's e2e validation with yamllint and kube-bench dry-run Dec 12, 2023
@andypitcher
Copy link
Contributor Author

@vivek-shilimkar
Copy link

Tested the CIS scan with RKE1, RKE2, and K3S clusters on Rancher v2.8.0-rc1 with respective profiles. Cluster scans passed. Though there are some failures those are expected. Hence closing the ticket.

Following scans fail on RKE1 and RKE2 clusters but those are expected and will be release noted.
One failure in RKE1 hardened cluster:

Mixed
4.1.7	Ensure that the certificate authorities file permissions are set to 600 or more restrictive (Automated)

Failures on RKE2 Node driver cluster

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)

@zube zube bot modified the milestones: v2.8.3, v2.8-Next1 Jan 22, 2024
@zube zube bot removed the [zube]: Done label Apr 18, 2024
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

6 participants