-
Notifications
You must be signed in to change notification settings - Fork 72
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
[1993, 1999, 2003] Upgrade Kubescape to v3.0.8 and fix affected tests #2004
Conversation
* Update points file * Update specs * Update rationale doc * Update test categories doc * Update usage doc List of tests doc can be updated after the release/tag is made, because it requires the tag name and the line number in the file. Additionally, remove a few lines that were already commented out.
Identified an issue with There is one other failure to look into ( |
UpdatesThe previous build passed - https://github.com/cnti-testcatalog/testsuite/actions/runs/8830493531 To move forward
Next steps
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Related issues
service_account_mapping
test does not fail if the CNF includes an auto-mounted service account. #2003Description
(#1993) Kubescape version check
kubescape version
command. Don't prefer to maintain a parser for it in the testsuite. We just write the version to a plain text file and check against that.(#1999)
resource_policies
cpu_limits
andmemory_limits
tests.(#1999)
hostpath_mounts
armosec/regolibrary
.(#2003)
service_account_mapping
The automated spec for
service_account_mapping
was failing. Turns out thatKubectlClient::WORKLOAD_RESOURCES
inkubectl_client
dependency, did not have ServiceAccount in the list of resources to identify.The above findings mean that when the
Kubescape
module's helper functions are used to get the CNF's resources that failed a particular test, the service account is not included as part of CNF's resources.An update has been made tokubectl_client
repo (in thetestsuite/2003
branch), to fix this issue.Ashard.override.yml
file has also been temporarily added to this PR, to point to the updated dependency's branch.(#1999)
platform:control_plane_hardening
Updated test to use new control name in Kubescape NSA framework.
(#1999)
platform:cluster_admin
Updated the name of the Kubescape control. This fixes the test.
(#1999)
platform:exposed_dashboard
removednon_root_containers
non_root_containers
spec by updating the sample used for the check.(#1999) Other changes
v3.0.8
(latest)linux_hardening
test was throwing errors due to invalid rego syntax in the Kubescape control definition.Related PRs
Validation with sample coredns CNF
Tried running workload tests for the sample coredns CNF. No crashes/stacktraces displayed. Tests seem to be running.
How has this been tested:
Types of changes:
Checklist:
Documentation
Code Review
Issue