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

feat: update k8s specs id #149

Merged
merged 2 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion specs/compliance/eks-cis-1.4.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
spec:
id: eks-cis
id: eks-cis-1.4
title: AWS EKS CIS Foundations v1.4
description: AWS EKS CIS Foundations
version: "1.4"
Expand Down
2 changes: 1 addition & 1 deletion specs/compliance/k8s-cis-1.23.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
spec:
id: k8s-cis
id: k8s-cis-1.23
title: CIS Kubernetes Benchmarks v1.23
description: CIS Kubernetes Benchmarks
version: "1.23"
Expand Down
2 changes: 1 addition & 1 deletion specs/compliance/k8s-nsa-1.0.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
spec:
id: k8s-nsa
id: k8s-nsa-1.0
title: National Security Agency - Kubernetes Hardening Guidance v1.0
description: National Security Agency - Kubernetes Hardening Guidance
relatedResources :
Expand Down
2 changes: 1 addition & 1 deletion specs/compliance/k8s-pss-baseline.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
spec:
id: "k8s-pss-baseline"
id: "k8s-pss-baseline-0.1"
title: "Kubernetes Pod Security Standards - Baseline"
description: Kubernetes Pod Security Standards - Baseline
relatedResources :
Expand Down
2 changes: 1 addition & 1 deletion specs/compliance/k8s-pss-restricted.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
spec:
id: "k8s-pss-restricted"
id: "k8s-pss-restricted-0.1"
title: "Kubernetes Pod Security Standards - Restricted"
description: Kubernetes Pod Security Standards - Restricted
relatedResources :
Expand Down
8 changes: 4 additions & 4 deletions specs/loader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ func TestLoadSpecs(t *testing.T) {
specName string
wantSpecPath string
}{
{name: "nsa spec", specName: "k8s-nsa", wantSpecPath: "./compliance/k8s-nsa-1.0.yaml"},
{name: "k8s cis bench", specName: "k8s-cis", wantSpecPath: "./compliance/k8s-cis-1.23.yaml"},
{name: "k8s pss baseline", specName: "k8s-pss-baseline", wantSpecPath: "./compliance/k8s-pss-baseline.yaml"},
{name: "k8s pss restricted", specName: "k8s-pss-restricted", wantSpecPath: "./compliance/k8s-pss-restricted.yaml"},
{name: "nsa spec", specName: "k8s-nsa-1.0", wantSpecPath: "./compliance/k8s-nsa-1.0.yaml"},
{name: "k8s cis bench", specName: "k8s-cis-1.23", wantSpecPath: "./compliance/k8s-cis-1.23.yaml"},
{name: "k8s pss baseline", specName: "k8s-pss-baseline-0.1", wantSpecPath: "./compliance/k8s-pss-baseline.yaml"},
{name: "k8s pss restricted", specName: "k8s-pss-restricted-0.1", wantSpecPath: "./compliance/k8s-pss-restricted.yaml"},
{name: "awscis1.2", specName: "aws-cis-1.2", wantSpecPath: "./compliance/aws-cis-1.2.yaml"},
{name: "awscis1.4", specName: "aws-cis-1.4", wantSpecPath: "./compliance/aws-cis-1.4.yaml"},
{name: "docker cis bench", specName: "docker-cis", wantSpecPath: "./compliance/docker-cis.yaml"},
Expand Down
Loading