mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-11-26 01:49:28 +00:00
feat: use CIS EKS 1.5.0 by default
This commit is contained in:
parent
489865ce3d
commit
cf0c87bbbe
@ -114,8 +114,8 @@ groups:
|
|||||||
text: "Minimize the admission of containers wishing to share the host network namespace (Automated)"
|
text: "Minimize the admission of containers wishing to share the host network namespace (Automated)"
|
||||||
type: "manual"
|
type: "manual"
|
||||||
remediation: |
|
remediation: |
|
||||||
Create a PSP as described in the Kubernetes documentation, ensuring that the
|
Add policies to each namespace in the cluster which has user workloads to restrict the
|
||||||
.spec.hostNetwork field is omitted or set to false.
|
admission of hostNetwork containers.
|
||||||
scored: false
|
scored: false
|
||||||
|
|
||||||
- id: 4.2.5
|
- id: 4.2.5
|
||||||
|
@ -460,6 +460,12 @@ func TestValidTargets(t *testing.T) {
|
|||||||
targets: []string{"node", "policies", "controlplane", "managedservices"},
|
targets: []string{"node", "policies", "controlplane", "managedservices"},
|
||||||
expected: true,
|
expected: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "eks-1.5.0 valid",
|
||||||
|
benchmark: "eks-1.5.0",
|
||||||
|
targets: []string{"node", "policies", "controlplane", "managedservices"},
|
||||||
|
expected: true,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, c := range cases {
|
for _, c := range cases {
|
||||||
|
@ -489,7 +489,7 @@ func getPlatformBenchmarkVersion(platform Platform) string {
|
|||||||
glog.V(3).Infof("getPlatformBenchmarkVersion platform: %s", platform)
|
glog.V(3).Infof("getPlatformBenchmarkVersion platform: %s", platform)
|
||||||
switch platform.Name {
|
switch platform.Name {
|
||||||
case "eks":
|
case "eks":
|
||||||
return "eks-1.2.0"
|
return "eks-1.5.0"
|
||||||
case "gke":
|
case "gke":
|
||||||
switch platform.Version {
|
switch platform.Version {
|
||||||
case "1.15", "1.16", "1.17", "1.18", "1.19":
|
case "1.15", "1.16", "1.17", "1.18", "1.19":
|
||||||
|
@ -650,7 +650,7 @@ func Test_getPlatformBenchmarkVersion(t *testing.T) {
|
|||||||
args: args{
|
args: args{
|
||||||
platform: Platform{Name: "eks"},
|
platform: Platform{Name: "eks"},
|
||||||
},
|
},
|
||||||
want: "eks-1.2.0",
|
want: "eks-1.5.0",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "gke 1.19",
|
name: "gke 1.19",
|
||||||
|
Loading…
Reference in New Issue
Block a user