This view is limited to 50 files because it contains too many changes. See the raw diff here.
Files changed (50) hide show
  1. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/ground-truth/fetch.sh +66 -0
  2. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/ground-truth/policy.rego +30 -0
  3. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/problem.md +57 -0
  4. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/deployments-all.yaml +80 -0
  5. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/deployments/compliant-deployment.yaml +77 -0
  6. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/pods-all.yaml +422 -0
  7. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/pods/compliant-deployment-d68cdc45f-7f49h.yaml +141 -0
  8. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/pods/compliant-deployment-d68cdc45f-vjlv8.yaml +141 -0
  9. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/pods/compliant-pod.yaml +137 -0
  10. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/replicasets-all.yaml +68 -0
  11. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/replicasets/compliant-deployment-d68cdc45f.yaml +65 -0
  12. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/rolebindings-all.yaml +24 -0
  13. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/rolebindings/test-rolebinding.yaml +20 -0
  14. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/roles-all.yaml +32 -0
  15. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/roles/test-role.yaml +28 -0
  16. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/serviceaccounts-all.yaml +26 -0
  17. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/serviceaccounts/default.yaml +8 -0
  18. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/serviceaccounts/test-serviceaccount.yaml +14 -0
  19. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/services-all.yaml +37 -0
  20. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/services/test-service.yaml +33 -0
  21. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/deployments-all.yaml +155 -0
  22. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/deployments/compliant-deployment.yaml +77 -0
  23. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/deployments/non-compliant-deployment.yaml +75 -0
  24. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/pods-all.yaml +671 -0
  25. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/pods/compliant-deployment-d68cdc45f-7f49h.yaml +141 -0
  26. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/pods/compliant-deployment-d68cdc45f-vjlv8.yaml +141 -0
  27. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/pods/compliant-pod.yaml +137 -0
  28. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/pods/non-compliant-deployment-5d47d9867f-rwdql.yaml +127 -0
  29. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/pods/non-compliant-pod.yaml +122 -0
  30. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/replicasets-all.yaml +134 -0
  31. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/replicasets/compliant-deployment-d68cdc45f.yaml +65 -0
  32. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/replicasets/non-compliant-deployment-5d47d9867f.yaml +64 -0
  33. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/rolebindings-all.yaml +24 -0
  34. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/rolebindings/test-rolebinding.yaml +20 -0
  35. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/roles-all.yaml +32 -0
  36. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/roles/test-role.yaml +28 -0
  37. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/serviceaccounts-all.yaml +26 -0
  38. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/serviceaccounts/default.yaml +8 -0
  39. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/serviceaccounts/test-serviceaccount.yaml +14 -0
  40. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/services-all.yaml +37 -0
  41. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/services/test-service.yaml +33 -0
  42. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.8/ground-truth/fetch.sh +48 -0
  43. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.8/ground-truth/policy.rego +15 -0
  44. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.8/problem.md +43 -0
  45. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.8/static-resources-compliant/configmaps/kube-root-ca.crt.yaml +50 -0
  46. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.8/static-resources-compliant/deployments/compliant-deployment.yaml +48 -0
  47. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.8/static-resources-compliant/pods/compliant-deployment-6f95c6c87c-9f4bc.yaml +73 -0
  48. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.8/static-resources-compliant/pods/compliant-deployment-6f95c6c87c-hwvlj.yaml +73 -0
  49. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.8/static-resources-compliant/pods/compliant-pod.yaml +68 -0
  50. snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.8/static-resources-compliant/replicasets/compliant-deployment-6f95c6c87c.yaml +49 -0
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/ground-truth/fetch.sh ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # CIS 5.2.7 - Fetch script to collect container security contexts
4
+ # for runAsUser compliance checking
5
+
6
+ echo "Collecting container security contexts from static resources..."
7
+
8
+ # Use Python to parse YAML files and extract container security contexts
9
+ python3 << 'EOF'
10
+ import yaml
11
+ import json
12
+ import os
13
+ import glob
14
+
15
+ containers = []
16
+
17
+ # Process pods
18
+ pod_files = glob.glob("static-resources/pods/*.yaml")
19
+ for file_path in pod_files:
20
+ try:
21
+ with open(file_path, 'r') as f:
22
+ pod = yaml.safe_load(f)
23
+
24
+ if pod and pod.get('kind') == 'Pod':
25
+ pod_name = pod.get('metadata', {}).get('name', os.path.basename(file_path))
26
+ for container in pod.get('spec', {}).get('containers', []):
27
+ containers.append({
28
+ 'name': container.get('name'),
29
+ 'securityContext': container.get('securityContext', {}),
30
+ 'resourceType': 'Pod',
31
+ 'resourceName': pod_name
32
+ })
33
+ except Exception as e:
34
+ print(f"Error processing {file_path}: {e}", file=sys.stderr)
35
+
36
+ # Process deployments
37
+ deployment_files = glob.glob("static-resources/deployments/*.yaml")
38
+ for file_path in deployment_files:
39
+ try:
40
+ with open(file_path, 'r') as f:
41
+ deployment = yaml.safe_load(f)
42
+
43
+ if deployment and deployment.get('kind') == 'Deployment':
44
+ deployment_name = deployment.get('metadata', {}).get('name', os.path.basename(file_path))
45
+ template_spec = deployment.get('spec', {}).get('template', {}).get('spec', {})
46
+ for container in template_spec.get('containers', []):
47
+ containers.append({
48
+ 'name': container.get('name'),
49
+ 'securityContext': container.get('securityContext', {}),
50
+ 'resourceType': 'Deployment',
51
+ 'resourceName': deployment_name
52
+ })
53
+ except Exception as e:
54
+ print(f"Error processing {file_path}: {e}", file=sys.stderr)
55
+
56
+ # Write output
57
+ output = {'containers': containers}
58
+ with open('collected_data.json', 'w') as f:
59
+ json.dump(output, f, indent=2)
60
+
61
+ print(f"Collected {len(containers)} containers")
62
+ EOF
63
+
64
+ echo "Data collection completed. Results saved to collected_data.json"
65
+
66
+ # Made with Bob
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/ground-truth/policy.rego ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ package check
2
+
3
+ import rego.v1
4
+
5
+ # Default to compliant (no violations found)
6
+ default result := true
7
+
8
+ # Check for violations - if any found, result becomes false
9
+ result := false if {
10
+ some container in input.containers
11
+ # Check if runAsUser is explicitly set to 0
12
+ container.securityContext.runAsUser == 0
13
+ }
14
+
15
+ result := false if {
16
+ some container in input.containers
17
+ # Check if runAsNonRoot is explicitly set to false
18
+ container.securityContext.runAsNonRoot == false
19
+ }
20
+
21
+ # Helper to identify violating containers (for detailed reporting)
22
+ violating_containers contains container if {
23
+ some container in input.containers
24
+ container.securityContext.runAsUser == 0
25
+ }
26
+
27
+ violating_containers contains container if {
28
+ some container in input.containers
29
+ container.securityContext.runAsNonRoot == false
30
+ }
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/problem.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Problem: CIS 5.2.7 Compliance Check - Minimize the admission of containers running as root user
2
+
3
+ ## Objective
4
+
5
+ Create an OPA-based compliance checking system to detect containers running as root user (UID 0) in Kubernetes resources, implementing CIS Benchmark 5.2.7.
6
+
7
+ ## Requirements
8
+
9
+ You need to implement two components:
10
+
11
+ 1. **Resource Fetcher** (`fetch.sh`): A script that collects relevant Kubernetes resource data
12
+ 2. **OPA Policy** (`policy.rego`): An OPA Rego policy that evaluates compliance against CIS 5.2.7
13
+
14
+ ## Compliance Rule
15
+
16
+ The CIS 5.2.7 benchmark requires minimizing the admission of containers running as root user. Specifically:
17
+
18
+ - Containers should NOT run with `securityContext.runAsUser: 0`
19
+ - Containers should NOT run with `securityContext.runAsNonRoot: false`
20
+ - Containers should ideally have `securityContext.runAsNonRoot: true` or `securityContext.runAsUser` set to a non-zero value
21
+
22
+ ## Available Resources
23
+
24
+ Static Kubernetes resources are available in the directory: `static-resources`
25
+
26
+ This directory contains YAML files representing various Kubernetes resources from a namespace, including pods, deployments, services, and other objects.
27
+
28
+ ## Expected Deliverables
29
+
30
+ Create the following files in your current working directory:
31
+
32
+ 1. **`fetch.sh`** - An executable script that:
33
+ - Processes the static resources from `static-resources`
34
+ - Outputs collected data to `collected_data.json` file
35
+ - Formats data for OPA policy evaluation
36
+
37
+ 2. **`policy.rego`** - An OPA policy file that:
38
+ - Uses package name `package check`
39
+ - Defines a `result` boolean field
40
+ - Returns `false` when compliance violations are detected
41
+ - Returns `true` when no violations are found (default)
42
+
43
+ ## Execution Flow
44
+
45
+ The evaluation will follow this process:
46
+ 1. Execute `./fetch.sh` to collect resource data
47
+ 2. Run `cat collected_data.json | opa eval -d policy.rego -I 'data.check.result'`
48
+ 3. Verify that violations are correctly detected (result = false when violations exist)
49
+ 4. Verify that compliant configurations pass (result = true when no violations)
50
+
51
+ ## Technical Requirements
52
+
53
+ - Use OPA version 1.0.0 syntax
54
+ - Ensure your fetcher script has executable permissions
55
+ - Output data in valid JSON format
56
+ - Focus on namespace-scoped resources only
57
+ - Handle both pod specifications and deployment templates
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/deployments-all.yaml ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ kind: List
3
+ items:
4
+ - apiVersion: apps/v1
5
+ kind: Deployment
6
+ metadata:
7
+ annotations:
8
+ deployment.kubernetes.io/revision: '1'
9
+ kubectl.kubernetes.io/last-applied-configuration: '{"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"labels":{"app":"compliant-web","compliance":"true"},"name":"compliant-deployment","namespace":"k8s-opa-static-cis-527"},"spec":{"replicas":2,"selector":{"matchLabels":{"app":"compliant-web"}},"template":{"metadata":{"labels":{"app":"compliant-web","compliance":"true"}},"spec":{"containers":[{"image":"nginx:1.21","name":"web","ports":[{"containerPort":8080}],"securityContext":{"allowPrivilegeEscalation":false,"readOnlyRootFilesystem":false,"runAsNonRoot":true,"runAsUser":1001}}],"securityContext":{"fsGroup":1001,"runAsNonRoot":true,"runAsUser":1001}}}}}
10
+
11
+ '
12
+ creationTimestamp: '2026-03-06T13:25:20Z'
13
+ generation: 1
14
+ labels:
15
+ app: compliant-web
16
+ compliance: 'true'
17
+ name: compliant-deployment
18
+ namespace: k8s-opa-static-cis-527
19
+ resourceVersion: '3040083'
20
+ uid: f2f00453-6f18-4415-a6ac-6c1dd5d08db9
21
+ spec:
22
+ progressDeadlineSeconds: 600
23
+ replicas: 2
24
+ revisionHistoryLimit: 10
25
+ selector:
26
+ matchLabels:
27
+ app: compliant-web
28
+ strategy:
29
+ rollingUpdate:
30
+ maxSurge: 25%
31
+ maxUnavailable: 25%
32
+ type: RollingUpdate
33
+ template:
34
+ metadata:
35
+ creationTimestamp: null
36
+ labels:
37
+ app: compliant-web
38
+ compliance: 'true'
39
+ spec:
40
+ containers:
41
+ - image: nginx:1.21
42
+ imagePullPolicy: IfNotPresent
43
+ name: web
44
+ ports:
45
+ - containerPort: 8080
46
+ protocol: TCP
47
+ resources: {}
48
+ securityContext:
49
+ allowPrivilegeEscalation: false
50
+ readOnlyRootFilesystem: false
51
+ runAsNonRoot: true
52
+ runAsUser: 1001
53
+ terminationMessagePath: /dev/termination-log
54
+ terminationMessagePolicy: File
55
+ dnsPolicy: ClusterFirst
56
+ restartPolicy: Always
57
+ schedulerName: default-scheduler
58
+ securityContext:
59
+ fsGroup: 1001
60
+ runAsNonRoot: true
61
+ runAsUser: 1001
62
+ terminationGracePeriodSeconds: 30
63
+ status:
64
+ conditions:
65
+ - lastTransitionTime: '2026-03-06T13:25:20Z'
66
+ lastUpdateTime: '2026-03-06T13:25:20Z'
67
+ message: Deployment does not have minimum availability.
68
+ reason: MinimumReplicasUnavailable
69
+ status: 'False'
70
+ type: Available
71
+ - lastTransitionTime: '2026-03-06T13:25:20Z'
72
+ lastUpdateTime: '2026-03-06T13:25:20Z'
73
+ message: ReplicaSet "compliant-deployment-d68cdc45f" is progressing.
74
+ reason: ReplicaSetUpdated
75
+ status: 'True'
76
+ type: Progressing
77
+ observedGeneration: 1
78
+ replicas: 2
79
+ unavailableReplicas: 2
80
+ updatedReplicas: 2
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/deployments/compliant-deployment.yaml ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: apps/v1
2
+ kind: Deployment
3
+ metadata:
4
+ annotations:
5
+ deployment.kubernetes.io/revision: '1'
6
+ kubectl.kubernetes.io/last-applied-configuration: '{"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"labels":{"app":"compliant-web","compliance":"true"},"name":"compliant-deployment","namespace":"k8s-opa-static-cis-527"},"spec":{"replicas":2,"selector":{"matchLabels":{"app":"compliant-web"}},"template":{"metadata":{"labels":{"app":"compliant-web","compliance":"true"}},"spec":{"containers":[{"image":"nginx:1.21","name":"web","ports":[{"containerPort":8080}],"securityContext":{"allowPrivilegeEscalation":false,"readOnlyRootFilesystem":false,"runAsNonRoot":true,"runAsUser":1001}}],"securityContext":{"fsGroup":1001,"runAsNonRoot":true,"runAsUser":1001}}}}}
7
+
8
+ '
9
+ creationTimestamp: '2026-03-06T13:25:20Z'
10
+ generation: 1
11
+ labels:
12
+ app: compliant-web
13
+ compliance: 'true'
14
+ name: compliant-deployment
15
+ namespace: k8s-opa-static-cis-527
16
+ resourceVersion: '3040083'
17
+ uid: f2f00453-6f18-4415-a6ac-6c1dd5d08db9
18
+ spec:
19
+ progressDeadlineSeconds: 600
20
+ replicas: 2
21
+ revisionHistoryLimit: 10
22
+ selector:
23
+ matchLabels:
24
+ app: compliant-web
25
+ strategy:
26
+ rollingUpdate:
27
+ maxSurge: 25%
28
+ maxUnavailable: 25%
29
+ type: RollingUpdate
30
+ template:
31
+ metadata:
32
+ creationTimestamp: null
33
+ labels:
34
+ app: compliant-web
35
+ compliance: 'true'
36
+ spec:
37
+ containers:
38
+ - image: nginx:1.21
39
+ imagePullPolicy: IfNotPresent
40
+ name: web
41
+ ports:
42
+ - containerPort: 8080
43
+ protocol: TCP
44
+ resources: {}
45
+ securityContext:
46
+ allowPrivilegeEscalation: false
47
+ readOnlyRootFilesystem: false
48
+ runAsNonRoot: true
49
+ runAsUser: 1001
50
+ terminationMessagePath: /dev/termination-log
51
+ terminationMessagePolicy: File
52
+ dnsPolicy: ClusterFirst
53
+ restartPolicy: Always
54
+ schedulerName: default-scheduler
55
+ securityContext:
56
+ fsGroup: 1001
57
+ runAsNonRoot: true
58
+ runAsUser: 1001
59
+ terminationGracePeriodSeconds: 30
60
+ status:
61
+ conditions:
62
+ - lastTransitionTime: '2026-03-06T13:25:20Z'
63
+ lastUpdateTime: '2026-03-06T13:25:20Z'
64
+ message: Deployment does not have minimum availability.
65
+ reason: MinimumReplicasUnavailable
66
+ status: 'False'
67
+ type: Available
68
+ - lastTransitionTime: '2026-03-06T13:25:20Z'
69
+ lastUpdateTime: '2026-03-06T13:25:20Z'
70
+ message: ReplicaSet "compliant-deployment-d68cdc45f" is progressing.
71
+ reason: ReplicaSetUpdated
72
+ status: 'True'
73
+ type: Progressing
74
+ observedGeneration: 1
75
+ replicas: 2
76
+ unavailableReplicas: 2
77
+ updatedReplicas: 2
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/pods-all.yaml ADDED
@@ -0,0 +1,422 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ kind: List
3
+ items:
4
+ - apiVersion: v1
5
+ kind: Pod
6
+ metadata:
7
+ creationTimestamp: '2026-03-06T13:25:20Z'
8
+ generateName: compliant-deployment-d68cdc45f-
9
+ labels:
10
+ app: compliant-web
11
+ compliance: 'true'
12
+ pod-template-hash: d68cdc45f
13
+ name: compliant-deployment-d68cdc45f-7f49h
14
+ namespace: k8s-opa-static-cis-527
15
+ ownerReferences:
16
+ - apiVersion: apps/v1
17
+ blockOwnerDeletion: true
18
+ controller: true
19
+ kind: ReplicaSet
20
+ name: compliant-deployment-d68cdc45f
21
+ uid: 132fd316-bde9-4353-8163-d50503d0aff9
22
+ resourceVersion: '3040160'
23
+ uid: d4282f1c-ee02-4a07-be65-6d069340d25d
24
+ spec:
25
+ containers:
26
+ - image: nginx:1.21
27
+ imagePullPolicy: IfNotPresent
28
+ name: web
29
+ ports:
30
+ - containerPort: 8080
31
+ protocol: TCP
32
+ resources: {}
33
+ securityContext:
34
+ allowPrivilegeEscalation: false
35
+ readOnlyRootFilesystem: false
36
+ runAsNonRoot: true
37
+ runAsUser: 1001
38
+ terminationMessagePath: /dev/termination-log
39
+ terminationMessagePolicy: File
40
+ volumeMounts:
41
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
42
+ name: kube-api-access-qgkxv
43
+ readOnly: true
44
+ dnsPolicy: ClusterFirst
45
+ enableServiceLinks: true
46
+ nodeName: kind-1-control-plane
47
+ preemptionPolicy: PreemptLowerPriority
48
+ priority: 0
49
+ restartPolicy: Always
50
+ schedulerName: default-scheduler
51
+ securityContext:
52
+ fsGroup: 1001
53
+ runAsNonRoot: true
54
+ runAsUser: 1001
55
+ serviceAccount: default
56
+ serviceAccountName: default
57
+ terminationGracePeriodSeconds: 30
58
+ tolerations:
59
+ - effect: NoExecute
60
+ key: node.kubernetes.io/not-ready
61
+ operator: Exists
62
+ tolerationSeconds: 300
63
+ - effect: NoExecute
64
+ key: node.kubernetes.io/unreachable
65
+ operator: Exists
66
+ tolerationSeconds: 300
67
+ volumes:
68
+ - name: kube-api-access-qgkxv
69
+ projected:
70
+ defaultMode: 420
71
+ sources:
72
+ - serviceAccountToken:
73
+ expirationSeconds: 3607
74
+ path: token
75
+ - configMap:
76
+ items:
77
+ - key: ca.crt
78
+ path: ca.crt
79
+ name: kube-root-ca.crt
80
+ - downwardAPI:
81
+ items:
82
+ - fieldRef:
83
+ apiVersion: v1
84
+ fieldPath: metadata.namespace
85
+ path: namespace
86
+ status:
87
+ conditions:
88
+ - lastProbeTime: null
89
+ lastTransitionTime: '2026-03-06T13:25:22Z'
90
+ status: 'True'
91
+ type: PodReadyToStartContainers
92
+ - lastProbeTime: null
93
+ lastTransitionTime: '2026-03-06T13:25:20Z'
94
+ status: 'True'
95
+ type: Initialized
96
+ - lastProbeTime: null
97
+ lastTransitionTime: '2026-03-06T13:25:20Z'
98
+ message: 'containers with unready status: [web]'
99
+ reason: ContainersNotReady
100
+ status: 'False'
101
+ type: Ready
102
+ - lastProbeTime: null
103
+ lastTransitionTime: '2026-03-06T13:25:20Z'
104
+ message: 'containers with unready status: [web]'
105
+ reason: ContainersNotReady
106
+ status: 'False'
107
+ type: ContainersReady
108
+ - lastProbeTime: null
109
+ lastTransitionTime: '2026-03-06T13:25:20Z'
110
+ status: 'True'
111
+ type: PodScheduled
112
+ containerStatuses:
113
+ - containerID: containerd://bec06defc9c8487a1f3d1c60df267206079dabc4738c18c4d07d2eca5e2ca663
114
+ image: docker.io/library/nginx:1.21
115
+ imageID: docker.io/library/nginx@sha256:2bcabc23b45489fb0885d69a06ba1d648aeda973fae7bb981bafbb884165e514
116
+ lastState:
117
+ terminated:
118
+ containerID: containerd://bec06defc9c8487a1f3d1c60df267206079dabc4738c18c4d07d2eca5e2ca663
119
+ exitCode: 1
120
+ finishedAt: '2026-03-06T13:25:22Z'
121
+ reason: Error
122
+ startedAt: '2026-03-06T13:25:22Z'
123
+ name: web
124
+ ready: false
125
+ restartCount: 1
126
+ started: false
127
+ state:
128
+ waiting:
129
+ message: back-off 10s restarting failed container=web pod=compliant-deployment-d68cdc45f-7f49h_k8s-opa-static-cis-527(d4282f1c-ee02-4a07-be65-6d069340d25d)
130
+ reason: CrashLoopBackOff
131
+ volumeMounts:
132
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
133
+ name: kube-api-access-qgkxv
134
+ readOnly: true
135
+ recursiveReadOnly: Disabled
136
+ hostIP: 172.18.0.2
137
+ hostIPs:
138
+ - ip: 172.18.0.2
139
+ phase: Running
140
+ podIP: 10.244.0.187
141
+ podIPs:
142
+ - ip: 10.244.0.187
143
+ qosClass: BestEffort
144
+ startTime: '2026-03-06T13:25:20Z'
145
+ - apiVersion: v1
146
+ kind: Pod
147
+ metadata:
148
+ creationTimestamp: '2026-03-06T13:25:20Z'
149
+ generateName: compliant-deployment-d68cdc45f-
150
+ labels:
151
+ app: compliant-web
152
+ compliance: 'true'
153
+ pod-template-hash: d68cdc45f
154
+ name: compliant-deployment-d68cdc45f-vjlv8
155
+ namespace: k8s-opa-static-cis-527
156
+ ownerReferences:
157
+ - apiVersion: apps/v1
158
+ blockOwnerDeletion: true
159
+ controller: true
160
+ kind: ReplicaSet
161
+ name: compliant-deployment-d68cdc45f
162
+ uid: 132fd316-bde9-4353-8163-d50503d0aff9
163
+ resourceVersion: '3040161'
164
+ uid: 6aef204c-c44a-42a2-a378-312c85a980d0
165
+ spec:
166
+ containers:
167
+ - image: nginx:1.21
168
+ imagePullPolicy: IfNotPresent
169
+ name: web
170
+ ports:
171
+ - containerPort: 8080
172
+ protocol: TCP
173
+ resources: {}
174
+ securityContext:
175
+ allowPrivilegeEscalation: false
176
+ readOnlyRootFilesystem: false
177
+ runAsNonRoot: true
178
+ runAsUser: 1001
179
+ terminationMessagePath: /dev/termination-log
180
+ terminationMessagePolicy: File
181
+ volumeMounts:
182
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
183
+ name: kube-api-access-wdd6p
184
+ readOnly: true
185
+ dnsPolicy: ClusterFirst
186
+ enableServiceLinks: true
187
+ nodeName: kind-1-control-plane
188
+ preemptionPolicy: PreemptLowerPriority
189
+ priority: 0
190
+ restartPolicy: Always
191
+ schedulerName: default-scheduler
192
+ securityContext:
193
+ fsGroup: 1001
194
+ runAsNonRoot: true
195
+ runAsUser: 1001
196
+ serviceAccount: default
197
+ serviceAccountName: default
198
+ terminationGracePeriodSeconds: 30
199
+ tolerations:
200
+ - effect: NoExecute
201
+ key: node.kubernetes.io/not-ready
202
+ operator: Exists
203
+ tolerationSeconds: 300
204
+ - effect: NoExecute
205
+ key: node.kubernetes.io/unreachable
206
+ operator: Exists
207
+ tolerationSeconds: 300
208
+ volumes:
209
+ - name: kube-api-access-wdd6p
210
+ projected:
211
+ defaultMode: 420
212
+ sources:
213
+ - serviceAccountToken:
214
+ expirationSeconds: 3607
215
+ path: token
216
+ - configMap:
217
+ items:
218
+ - key: ca.crt
219
+ path: ca.crt
220
+ name: kube-root-ca.crt
221
+ - downwardAPI:
222
+ items:
223
+ - fieldRef:
224
+ apiVersion: v1
225
+ fieldPath: metadata.namespace
226
+ path: namespace
227
+ status:
228
+ conditions:
229
+ - lastProbeTime: null
230
+ lastTransitionTime: '2026-03-06T13:25:22Z'
231
+ status: 'True'
232
+ type: PodReadyToStartContainers
233
+ - lastProbeTime: null
234
+ lastTransitionTime: '2026-03-06T13:25:20Z'
235
+ status: 'True'
236
+ type: Initialized
237
+ - lastProbeTime: null
238
+ lastTransitionTime: '2026-03-06T13:25:20Z'
239
+ message: 'containers with unready status: [web]'
240
+ reason: ContainersNotReady
241
+ status: 'False'
242
+ type: Ready
243
+ - lastProbeTime: null
244
+ lastTransitionTime: '2026-03-06T13:25:20Z'
245
+ message: 'containers with unready status: [web]'
246
+ reason: ContainersNotReady
247
+ status: 'False'
248
+ type: ContainersReady
249
+ - lastProbeTime: null
250
+ lastTransitionTime: '2026-03-06T13:25:20Z'
251
+ status: 'True'
252
+ type: PodScheduled
253
+ containerStatuses:
254
+ - containerID: containerd://ec5e5bbb8d6449f23f7035bf7ad6275acf116e8781b78c6cf356a2224fe94020
255
+ image: docker.io/library/nginx:1.21
256
+ imageID: docker.io/library/nginx@sha256:2bcabc23b45489fb0885d69a06ba1d648aeda973fae7bb981bafbb884165e514
257
+ lastState:
258
+ terminated:
259
+ containerID: containerd://ec5e5bbb8d6449f23f7035bf7ad6275acf116e8781b78c6cf356a2224fe94020
260
+ exitCode: 1
261
+ finishedAt: '2026-03-06T13:25:22Z'
262
+ reason: Error
263
+ startedAt: '2026-03-06T13:25:22Z'
264
+ name: web
265
+ ready: false
266
+ restartCount: 1
267
+ started: false
268
+ state:
269
+ waiting:
270
+ message: back-off 10s restarting failed container=web pod=compliant-deployment-d68cdc45f-vjlv8_k8s-opa-static-cis-527(6aef204c-c44a-42a2-a378-312c85a980d0)
271
+ reason: CrashLoopBackOff
272
+ volumeMounts:
273
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
274
+ name: kube-api-access-wdd6p
275
+ readOnly: true
276
+ recursiveReadOnly: Disabled
277
+ hostIP: 172.18.0.2
278
+ hostIPs:
279
+ - ip: 172.18.0.2
280
+ phase: Running
281
+ podIP: 10.244.0.186
282
+ podIPs:
283
+ - ip: 10.244.0.186
284
+ qosClass: BestEffort
285
+ startTime: '2026-03-06T13:25:20Z'
286
+ - apiVersion: v1
287
+ kind: Pod
288
+ metadata:
289
+ annotations:
290
+ kubectl.kubernetes.io/last-applied-configuration: '{"apiVersion":"v1","kind":"Pod","metadata":{"annotations":{},"labels":{"app":"compliant-app","compliance":"true"},"name":"compliant-pod","namespace":"k8s-opa-static-cis-527"},"spec":{"containers":[{"image":"nginx:1.21","name":"app","ports":[{"containerPort":8080}],"securityContext":{"allowPrivilegeEscalation":false,"runAsNonRoot":true,"runAsUser":1000}}],"securityContext":{"runAsNonRoot":true,"runAsUser":1000}}}
291
+
292
+ '
293
+ creationTimestamp: '2026-03-06T13:25:21Z'
294
+ labels:
295
+ app: compliant-app
296
+ compliance: 'true'
297
+ name: compliant-pod
298
+ namespace: k8s-opa-static-cis-527
299
+ resourceVersion: '3040149'
300
+ uid: 4fd0313e-8a5b-4244-9d33-f93a60974be2
301
+ spec:
302
+ containers:
303
+ - image: nginx:1.21
304
+ imagePullPolicy: IfNotPresent
305
+ name: app
306
+ ports:
307
+ - containerPort: 8080
308
+ protocol: TCP
309
+ resources: {}
310
+ securityContext:
311
+ allowPrivilegeEscalation: false
312
+ runAsNonRoot: true
313
+ runAsUser: 1000
314
+ terminationMessagePath: /dev/termination-log
315
+ terminationMessagePolicy: File
316
+ volumeMounts:
317
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
318
+ name: kube-api-access-c7jzc
319
+ readOnly: true
320
+ dnsPolicy: ClusterFirst
321
+ enableServiceLinks: true
322
+ nodeName: kind-1-control-plane
323
+ preemptionPolicy: PreemptLowerPriority
324
+ priority: 0
325
+ restartPolicy: Always
326
+ schedulerName: default-scheduler
327
+ securityContext:
328
+ runAsNonRoot: true
329
+ runAsUser: 1000
330
+ serviceAccount: default
331
+ serviceAccountName: default
332
+ terminationGracePeriodSeconds: 30
333
+ tolerations:
334
+ - effect: NoExecute
335
+ key: node.kubernetes.io/not-ready
336
+ operator: Exists
337
+ tolerationSeconds: 300
338
+ - effect: NoExecute
339
+ key: node.kubernetes.io/unreachable
340
+ operator: Exists
341
+ tolerationSeconds: 300
342
+ volumes:
343
+ - name: kube-api-access-c7jzc
344
+ projected:
345
+ defaultMode: 420
346
+ sources:
347
+ - serviceAccountToken:
348
+ expirationSeconds: 3607
349
+ path: token
350
+ - configMap:
351
+ items:
352
+ - key: ca.crt
353
+ path: ca.crt
354
+ name: kube-root-ca.crt
355
+ - downwardAPI:
356
+ items:
357
+ - fieldRef:
358
+ apiVersion: v1
359
+ fieldPath: metadata.namespace
360
+ path: namespace
361
+ status:
362
+ conditions:
363
+ - lastProbeTime: null
364
+ lastTransitionTime: '2026-03-06T13:25:22Z'
365
+ status: 'True'
366
+ type: PodReadyToStartContainers
367
+ - lastProbeTime: null
368
+ lastTransitionTime: '2026-03-06T13:25:21Z'
369
+ status: 'True'
370
+ type: Initialized
371
+ - lastProbeTime: null
372
+ lastTransitionTime: '2026-03-06T13:25:21Z'
373
+ message: 'containers with unready status: [app]'
374
+ reason: ContainersNotReady
375
+ status: 'False'
376
+ type: Ready
377
+ - lastProbeTime: null
378
+ lastTransitionTime: '2026-03-06T13:25:21Z'
379
+ message: 'containers with unready status: [app]'
380
+ reason: ContainersNotReady
381
+ status: 'False'
382
+ type: ContainersReady
383
+ - lastProbeTime: null
384
+ lastTransitionTime: '2026-03-06T13:25:21Z'
385
+ status: 'True'
386
+ type: PodScheduled
387
+ containerStatuses:
388
+ - containerID: containerd://b95d913dd64556b4668c6d51bd7a0bca71c289951ac66778b8431e7b263d42de
389
+ image: docker.io/library/nginx:1.21
390
+ imageID: docker.io/library/nginx@sha256:2bcabc23b45489fb0885d69a06ba1d648aeda973fae7bb981bafbb884165e514
391
+ lastState:
392
+ terminated:
393
+ containerID: containerd://dc0afbe4c01a60c8a034affb3d7080eaa22c061d3f408be6e5cb435674876587
394
+ exitCode: 1
395
+ finishedAt: '2026-03-06T13:25:22Z'
396
+ reason: Error
397
+ startedAt: '2026-03-06T13:25:22Z'
398
+ name: app
399
+ ready: false
400
+ restartCount: 1
401
+ started: false
402
+ state:
403
+ terminated:
404
+ containerID: containerd://b95d913dd64556b4668c6d51bd7a0bca71c289951ac66778b8431e7b263d42de
405
+ exitCode: 1
406
+ finishedAt: '2026-03-06T13:25:22Z'
407
+ reason: Error
408
+ startedAt: '2026-03-06T13:25:22Z'
409
+ volumeMounts:
410
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
411
+ name: kube-api-access-c7jzc
412
+ readOnly: true
413
+ recursiveReadOnly: Disabled
414
+ hostIP: 172.18.0.2
415
+ hostIPs:
416
+ - ip: 172.18.0.2
417
+ phase: Running
418
+ podIP: 10.244.0.188
419
+ podIPs:
420
+ - ip: 10.244.0.188
421
+ qosClass: BestEffort
422
+ startTime: '2026-03-06T13:25:21Z'
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/pods/compliant-deployment-d68cdc45f-7f49h.yaml ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ kind: Pod
3
+ metadata:
4
+ creationTimestamp: '2026-03-06T13:25:20Z'
5
+ generateName: compliant-deployment-d68cdc45f-
6
+ labels:
7
+ app: compliant-web
8
+ compliance: 'true'
9
+ pod-template-hash: d68cdc45f
10
+ name: compliant-deployment-d68cdc45f-7f49h
11
+ namespace: k8s-opa-static-cis-527
12
+ ownerReferences:
13
+ - apiVersion: apps/v1
14
+ blockOwnerDeletion: true
15
+ controller: true
16
+ kind: ReplicaSet
17
+ name: compliant-deployment-d68cdc45f
18
+ uid: 132fd316-bde9-4353-8163-d50503d0aff9
19
+ resourceVersion: '3040160'
20
+ uid: d4282f1c-ee02-4a07-be65-6d069340d25d
21
+ spec:
22
+ containers:
23
+ - image: nginx:1.21
24
+ imagePullPolicy: IfNotPresent
25
+ name: web
26
+ ports:
27
+ - containerPort: 8080
28
+ protocol: TCP
29
+ resources: {}
30
+ securityContext:
31
+ allowPrivilegeEscalation: false
32
+ readOnlyRootFilesystem: false
33
+ runAsNonRoot: true
34
+ runAsUser: 1001
35
+ terminationMessagePath: /dev/termination-log
36
+ terminationMessagePolicy: File
37
+ volumeMounts:
38
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
39
+ name: kube-api-access-qgkxv
40
+ readOnly: true
41
+ dnsPolicy: ClusterFirst
42
+ enableServiceLinks: true
43
+ nodeName: kind-1-control-plane
44
+ preemptionPolicy: PreemptLowerPriority
45
+ priority: 0
46
+ restartPolicy: Always
47
+ schedulerName: default-scheduler
48
+ securityContext:
49
+ fsGroup: 1001
50
+ runAsNonRoot: true
51
+ runAsUser: 1001
52
+ serviceAccount: default
53
+ serviceAccountName: default
54
+ terminationGracePeriodSeconds: 30
55
+ tolerations:
56
+ - effect: NoExecute
57
+ key: node.kubernetes.io/not-ready
58
+ operator: Exists
59
+ tolerationSeconds: 300
60
+ - effect: NoExecute
61
+ key: node.kubernetes.io/unreachable
62
+ operator: Exists
63
+ tolerationSeconds: 300
64
+ volumes:
65
+ - name: kube-api-access-qgkxv
66
+ projected:
67
+ defaultMode: 420
68
+ sources:
69
+ - serviceAccountToken:
70
+ expirationSeconds: 3607
71
+ path: token
72
+ - configMap:
73
+ items:
74
+ - key: ca.crt
75
+ path: ca.crt
76
+ name: kube-root-ca.crt
77
+ - downwardAPI:
78
+ items:
79
+ - fieldRef:
80
+ apiVersion: v1
81
+ fieldPath: metadata.namespace
82
+ path: namespace
83
+ status:
84
+ conditions:
85
+ - lastProbeTime: null
86
+ lastTransitionTime: '2026-03-06T13:25:22Z'
87
+ status: 'True'
88
+ type: PodReadyToStartContainers
89
+ - lastProbeTime: null
90
+ lastTransitionTime: '2026-03-06T13:25:20Z'
91
+ status: 'True'
92
+ type: Initialized
93
+ - lastProbeTime: null
94
+ lastTransitionTime: '2026-03-06T13:25:20Z'
95
+ message: 'containers with unready status: [web]'
96
+ reason: ContainersNotReady
97
+ status: 'False'
98
+ type: Ready
99
+ - lastProbeTime: null
100
+ lastTransitionTime: '2026-03-06T13:25:20Z'
101
+ message: 'containers with unready status: [web]'
102
+ reason: ContainersNotReady
103
+ status: 'False'
104
+ type: ContainersReady
105
+ - lastProbeTime: null
106
+ lastTransitionTime: '2026-03-06T13:25:20Z'
107
+ status: 'True'
108
+ type: PodScheduled
109
+ containerStatuses:
110
+ - containerID: containerd://bec06defc9c8487a1f3d1c60df267206079dabc4738c18c4d07d2eca5e2ca663
111
+ image: docker.io/library/nginx:1.21
112
+ imageID: docker.io/library/nginx@sha256:2bcabc23b45489fb0885d69a06ba1d648aeda973fae7bb981bafbb884165e514
113
+ lastState:
114
+ terminated:
115
+ containerID: containerd://bec06defc9c8487a1f3d1c60df267206079dabc4738c18c4d07d2eca5e2ca663
116
+ exitCode: 1
117
+ finishedAt: '2026-03-06T13:25:22Z'
118
+ reason: Error
119
+ startedAt: '2026-03-06T13:25:22Z'
120
+ name: web
121
+ ready: false
122
+ restartCount: 1
123
+ started: false
124
+ state:
125
+ waiting:
126
+ message: back-off 10s restarting failed container=web pod=compliant-deployment-d68cdc45f-7f49h_k8s-opa-static-cis-527(d4282f1c-ee02-4a07-be65-6d069340d25d)
127
+ reason: CrashLoopBackOff
128
+ volumeMounts:
129
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
130
+ name: kube-api-access-qgkxv
131
+ readOnly: true
132
+ recursiveReadOnly: Disabled
133
+ hostIP: 172.18.0.2
134
+ hostIPs:
135
+ - ip: 172.18.0.2
136
+ phase: Running
137
+ podIP: 10.244.0.187
138
+ podIPs:
139
+ - ip: 10.244.0.187
140
+ qosClass: BestEffort
141
+ startTime: '2026-03-06T13:25:20Z'
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/pods/compliant-deployment-d68cdc45f-vjlv8.yaml ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ kind: Pod
3
+ metadata:
4
+ creationTimestamp: '2026-03-06T13:25:20Z'
5
+ generateName: compliant-deployment-d68cdc45f-
6
+ labels:
7
+ app: compliant-web
8
+ compliance: 'true'
9
+ pod-template-hash: d68cdc45f
10
+ name: compliant-deployment-d68cdc45f-vjlv8
11
+ namespace: k8s-opa-static-cis-527
12
+ ownerReferences:
13
+ - apiVersion: apps/v1
14
+ blockOwnerDeletion: true
15
+ controller: true
16
+ kind: ReplicaSet
17
+ name: compliant-deployment-d68cdc45f
18
+ uid: 132fd316-bde9-4353-8163-d50503d0aff9
19
+ resourceVersion: '3040161'
20
+ uid: 6aef204c-c44a-42a2-a378-312c85a980d0
21
+ spec:
22
+ containers:
23
+ - image: nginx:1.21
24
+ imagePullPolicy: IfNotPresent
25
+ name: web
26
+ ports:
27
+ - containerPort: 8080
28
+ protocol: TCP
29
+ resources: {}
30
+ securityContext:
31
+ allowPrivilegeEscalation: false
32
+ readOnlyRootFilesystem: false
33
+ runAsNonRoot: true
34
+ runAsUser: 1001
35
+ terminationMessagePath: /dev/termination-log
36
+ terminationMessagePolicy: File
37
+ volumeMounts:
38
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
39
+ name: kube-api-access-wdd6p
40
+ readOnly: true
41
+ dnsPolicy: ClusterFirst
42
+ enableServiceLinks: true
43
+ nodeName: kind-1-control-plane
44
+ preemptionPolicy: PreemptLowerPriority
45
+ priority: 0
46
+ restartPolicy: Always
47
+ schedulerName: default-scheduler
48
+ securityContext:
49
+ fsGroup: 1001
50
+ runAsNonRoot: true
51
+ runAsUser: 1001
52
+ serviceAccount: default
53
+ serviceAccountName: default
54
+ terminationGracePeriodSeconds: 30
55
+ tolerations:
56
+ - effect: NoExecute
57
+ key: node.kubernetes.io/not-ready
58
+ operator: Exists
59
+ tolerationSeconds: 300
60
+ - effect: NoExecute
61
+ key: node.kubernetes.io/unreachable
62
+ operator: Exists
63
+ tolerationSeconds: 300
64
+ volumes:
65
+ - name: kube-api-access-wdd6p
66
+ projected:
67
+ defaultMode: 420
68
+ sources:
69
+ - serviceAccountToken:
70
+ expirationSeconds: 3607
71
+ path: token
72
+ - configMap:
73
+ items:
74
+ - key: ca.crt
75
+ path: ca.crt
76
+ name: kube-root-ca.crt
77
+ - downwardAPI:
78
+ items:
79
+ - fieldRef:
80
+ apiVersion: v1
81
+ fieldPath: metadata.namespace
82
+ path: namespace
83
+ status:
84
+ conditions:
85
+ - lastProbeTime: null
86
+ lastTransitionTime: '2026-03-06T13:25:22Z'
87
+ status: 'True'
88
+ type: PodReadyToStartContainers
89
+ - lastProbeTime: null
90
+ lastTransitionTime: '2026-03-06T13:25:20Z'
91
+ status: 'True'
92
+ type: Initialized
93
+ - lastProbeTime: null
94
+ lastTransitionTime: '2026-03-06T13:25:20Z'
95
+ message: 'containers with unready status: [web]'
96
+ reason: ContainersNotReady
97
+ status: 'False'
98
+ type: Ready
99
+ - lastProbeTime: null
100
+ lastTransitionTime: '2026-03-06T13:25:20Z'
101
+ message: 'containers with unready status: [web]'
102
+ reason: ContainersNotReady
103
+ status: 'False'
104
+ type: ContainersReady
105
+ - lastProbeTime: null
106
+ lastTransitionTime: '2026-03-06T13:25:20Z'
107
+ status: 'True'
108
+ type: PodScheduled
109
+ containerStatuses:
110
+ - containerID: containerd://ec5e5bbb8d6449f23f7035bf7ad6275acf116e8781b78c6cf356a2224fe94020
111
+ image: docker.io/library/nginx:1.21
112
+ imageID: docker.io/library/nginx@sha256:2bcabc23b45489fb0885d69a06ba1d648aeda973fae7bb981bafbb884165e514
113
+ lastState:
114
+ terminated:
115
+ containerID: containerd://ec5e5bbb8d6449f23f7035bf7ad6275acf116e8781b78c6cf356a2224fe94020
116
+ exitCode: 1
117
+ finishedAt: '2026-03-06T13:25:22Z'
118
+ reason: Error
119
+ startedAt: '2026-03-06T13:25:22Z'
120
+ name: web
121
+ ready: false
122
+ restartCount: 1
123
+ started: false
124
+ state:
125
+ waiting:
126
+ message: back-off 10s restarting failed container=web pod=compliant-deployment-d68cdc45f-vjlv8_k8s-opa-static-cis-527(6aef204c-c44a-42a2-a378-312c85a980d0)
127
+ reason: CrashLoopBackOff
128
+ volumeMounts:
129
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
130
+ name: kube-api-access-wdd6p
131
+ readOnly: true
132
+ recursiveReadOnly: Disabled
133
+ hostIP: 172.18.0.2
134
+ hostIPs:
135
+ - ip: 172.18.0.2
136
+ phase: Running
137
+ podIP: 10.244.0.186
138
+ podIPs:
139
+ - ip: 10.244.0.186
140
+ qosClass: BestEffort
141
+ startTime: '2026-03-06T13:25:20Z'
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/pods/compliant-pod.yaml ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ kind: Pod
3
+ metadata:
4
+ annotations:
5
+ kubectl.kubernetes.io/last-applied-configuration: '{"apiVersion":"v1","kind":"Pod","metadata":{"annotations":{},"labels":{"app":"compliant-app","compliance":"true"},"name":"compliant-pod","namespace":"k8s-opa-static-cis-527"},"spec":{"containers":[{"image":"nginx:1.21","name":"app","ports":[{"containerPort":8080}],"securityContext":{"allowPrivilegeEscalation":false,"runAsNonRoot":true,"runAsUser":1000}}],"securityContext":{"runAsNonRoot":true,"runAsUser":1000}}}
6
+
7
+ '
8
+ creationTimestamp: '2026-03-06T13:25:21Z'
9
+ labels:
10
+ app: compliant-app
11
+ compliance: 'true'
12
+ name: compliant-pod
13
+ namespace: k8s-opa-static-cis-527
14
+ resourceVersion: '3040149'
15
+ uid: 4fd0313e-8a5b-4244-9d33-f93a60974be2
16
+ spec:
17
+ containers:
18
+ - image: nginx:1.21
19
+ imagePullPolicy: IfNotPresent
20
+ name: app
21
+ ports:
22
+ - containerPort: 8080
23
+ protocol: TCP
24
+ resources: {}
25
+ securityContext:
26
+ allowPrivilegeEscalation: false
27
+ runAsNonRoot: true
28
+ runAsUser: 1000
29
+ terminationMessagePath: /dev/termination-log
30
+ terminationMessagePolicy: File
31
+ volumeMounts:
32
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
33
+ name: kube-api-access-c7jzc
34
+ readOnly: true
35
+ dnsPolicy: ClusterFirst
36
+ enableServiceLinks: true
37
+ nodeName: kind-1-control-plane
38
+ preemptionPolicy: PreemptLowerPriority
39
+ priority: 0
40
+ restartPolicy: Always
41
+ schedulerName: default-scheduler
42
+ securityContext:
43
+ runAsNonRoot: true
44
+ runAsUser: 1000
45
+ serviceAccount: default
46
+ serviceAccountName: default
47
+ terminationGracePeriodSeconds: 30
48
+ tolerations:
49
+ - effect: NoExecute
50
+ key: node.kubernetes.io/not-ready
51
+ operator: Exists
52
+ tolerationSeconds: 300
53
+ - effect: NoExecute
54
+ key: node.kubernetes.io/unreachable
55
+ operator: Exists
56
+ tolerationSeconds: 300
57
+ volumes:
58
+ - name: kube-api-access-c7jzc
59
+ projected:
60
+ defaultMode: 420
61
+ sources:
62
+ - serviceAccountToken:
63
+ expirationSeconds: 3607
64
+ path: token
65
+ - configMap:
66
+ items:
67
+ - key: ca.crt
68
+ path: ca.crt
69
+ name: kube-root-ca.crt
70
+ - downwardAPI:
71
+ items:
72
+ - fieldRef:
73
+ apiVersion: v1
74
+ fieldPath: metadata.namespace
75
+ path: namespace
76
+ status:
77
+ conditions:
78
+ - lastProbeTime: null
79
+ lastTransitionTime: '2026-03-06T13:25:22Z'
80
+ status: 'True'
81
+ type: PodReadyToStartContainers
82
+ - lastProbeTime: null
83
+ lastTransitionTime: '2026-03-06T13:25:21Z'
84
+ status: 'True'
85
+ type: Initialized
86
+ - lastProbeTime: null
87
+ lastTransitionTime: '2026-03-06T13:25:21Z'
88
+ message: 'containers with unready status: [app]'
89
+ reason: ContainersNotReady
90
+ status: 'False'
91
+ type: Ready
92
+ - lastProbeTime: null
93
+ lastTransitionTime: '2026-03-06T13:25:21Z'
94
+ message: 'containers with unready status: [app]'
95
+ reason: ContainersNotReady
96
+ status: 'False'
97
+ type: ContainersReady
98
+ - lastProbeTime: null
99
+ lastTransitionTime: '2026-03-06T13:25:21Z'
100
+ status: 'True'
101
+ type: PodScheduled
102
+ containerStatuses:
103
+ - containerID: containerd://b95d913dd64556b4668c6d51bd7a0bca71c289951ac66778b8431e7b263d42de
104
+ image: docker.io/library/nginx:1.21
105
+ imageID: docker.io/library/nginx@sha256:2bcabc23b45489fb0885d69a06ba1d648aeda973fae7bb981bafbb884165e514
106
+ lastState:
107
+ terminated:
108
+ containerID: containerd://dc0afbe4c01a60c8a034affb3d7080eaa22c061d3f408be6e5cb435674876587
109
+ exitCode: 1
110
+ finishedAt: '2026-03-06T13:25:22Z'
111
+ reason: Error
112
+ startedAt: '2026-03-06T13:25:22Z'
113
+ name: app
114
+ ready: false
115
+ restartCount: 1
116
+ started: false
117
+ state:
118
+ terminated:
119
+ containerID: containerd://b95d913dd64556b4668c6d51bd7a0bca71c289951ac66778b8431e7b263d42de
120
+ exitCode: 1
121
+ finishedAt: '2026-03-06T13:25:22Z'
122
+ reason: Error
123
+ startedAt: '2026-03-06T13:25:22Z'
124
+ volumeMounts:
125
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
126
+ name: kube-api-access-c7jzc
127
+ readOnly: true
128
+ recursiveReadOnly: Disabled
129
+ hostIP: 172.18.0.2
130
+ hostIPs:
131
+ - ip: 172.18.0.2
132
+ phase: Running
133
+ podIP: 10.244.0.188
134
+ podIPs:
135
+ - ip: 10.244.0.188
136
+ qosClass: BestEffort
137
+ startTime: '2026-03-06T13:25:21Z'
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/replicasets-all.yaml ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ kind: List
3
+ items:
4
+ - apiVersion: apps/v1
5
+ kind: ReplicaSet
6
+ metadata:
7
+ annotations:
8
+ deployment.kubernetes.io/desired-replicas: '2'
9
+ deployment.kubernetes.io/max-replicas: '3'
10
+ deployment.kubernetes.io/revision: '1'
11
+ creationTimestamp: '2026-03-06T13:25:20Z'
12
+ generation: 1
13
+ labels:
14
+ app: compliant-web
15
+ compliance: 'true'
16
+ pod-template-hash: d68cdc45f
17
+ name: compliant-deployment-d68cdc45f
18
+ namespace: k8s-opa-static-cis-527
19
+ ownerReferences:
20
+ - apiVersion: apps/v1
21
+ blockOwnerDeletion: true
22
+ controller: true
23
+ kind: Deployment
24
+ name: compliant-deployment
25
+ uid: f2f00453-6f18-4415-a6ac-6c1dd5d08db9
26
+ resourceVersion: '3040081'
27
+ uid: 132fd316-bde9-4353-8163-d50503d0aff9
28
+ spec:
29
+ replicas: 2
30
+ selector:
31
+ matchLabels:
32
+ app: compliant-web
33
+ pod-template-hash: d68cdc45f
34
+ template:
35
+ metadata:
36
+ creationTimestamp: null
37
+ labels:
38
+ app: compliant-web
39
+ compliance: 'true'
40
+ pod-template-hash: d68cdc45f
41
+ spec:
42
+ containers:
43
+ - image: nginx:1.21
44
+ imagePullPolicy: IfNotPresent
45
+ name: web
46
+ ports:
47
+ - containerPort: 8080
48
+ protocol: TCP
49
+ resources: {}
50
+ securityContext:
51
+ allowPrivilegeEscalation: false
52
+ readOnlyRootFilesystem: false
53
+ runAsNonRoot: true
54
+ runAsUser: 1001
55
+ terminationMessagePath: /dev/termination-log
56
+ terminationMessagePolicy: File
57
+ dnsPolicy: ClusterFirst
58
+ restartPolicy: Always
59
+ schedulerName: default-scheduler
60
+ securityContext:
61
+ fsGroup: 1001
62
+ runAsNonRoot: true
63
+ runAsUser: 1001
64
+ terminationGracePeriodSeconds: 30
65
+ status:
66
+ fullyLabeledReplicas: 2
67
+ observedGeneration: 1
68
+ replicas: 2
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/replicasets/compliant-deployment-d68cdc45f.yaml ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: apps/v1
2
+ kind: ReplicaSet
3
+ metadata:
4
+ annotations:
5
+ deployment.kubernetes.io/desired-replicas: '2'
6
+ deployment.kubernetes.io/max-replicas: '3'
7
+ deployment.kubernetes.io/revision: '1'
8
+ creationTimestamp: '2026-03-06T13:25:20Z'
9
+ generation: 1
10
+ labels:
11
+ app: compliant-web
12
+ compliance: 'true'
13
+ pod-template-hash: d68cdc45f
14
+ name: compliant-deployment-d68cdc45f
15
+ namespace: k8s-opa-static-cis-527
16
+ ownerReferences:
17
+ - apiVersion: apps/v1
18
+ blockOwnerDeletion: true
19
+ controller: true
20
+ kind: Deployment
21
+ name: compliant-deployment
22
+ uid: f2f00453-6f18-4415-a6ac-6c1dd5d08db9
23
+ resourceVersion: '3040081'
24
+ uid: 132fd316-bde9-4353-8163-d50503d0aff9
25
+ spec:
26
+ replicas: 2
27
+ selector:
28
+ matchLabels:
29
+ app: compliant-web
30
+ pod-template-hash: d68cdc45f
31
+ template:
32
+ metadata:
33
+ creationTimestamp: null
34
+ labels:
35
+ app: compliant-web
36
+ compliance: 'true'
37
+ pod-template-hash: d68cdc45f
38
+ spec:
39
+ containers:
40
+ - image: nginx:1.21
41
+ imagePullPolicy: IfNotPresent
42
+ name: web
43
+ ports:
44
+ - containerPort: 8080
45
+ protocol: TCP
46
+ resources: {}
47
+ securityContext:
48
+ allowPrivilegeEscalation: false
49
+ readOnlyRootFilesystem: false
50
+ runAsNonRoot: true
51
+ runAsUser: 1001
52
+ terminationMessagePath: /dev/termination-log
53
+ terminationMessagePolicy: File
54
+ dnsPolicy: ClusterFirst
55
+ restartPolicy: Always
56
+ schedulerName: default-scheduler
57
+ securityContext:
58
+ fsGroup: 1001
59
+ runAsNonRoot: true
60
+ runAsUser: 1001
61
+ terminationGracePeriodSeconds: 30
62
+ status:
63
+ fullyLabeledReplicas: 2
64
+ observedGeneration: 1
65
+ replicas: 2
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/rolebindings-all.yaml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ items:
3
+ - apiVersion: rbac.authorization.k8s.io/v1
4
+ kind: RoleBinding
5
+ metadata:
6
+ annotations:
7
+ kubectl.kubernetes.io/last-applied-configuration: |
8
+ {"apiVersion":"rbac.authorization.k8s.io/v1","kind":"RoleBinding","metadata":{"annotations":{},"name":"test-rolebinding","namespace":"k8s-opa-static-cis-527"},"roleRef":{"apiGroup":"rbac.authorization.k8s.io","kind":"Role","name":"test-role"},"subjects":[{"kind":"ServiceAccount","name":"test-serviceaccount","namespace":"k8s-opa-static-cis-527"}]}
9
+ creationTimestamp: "2026-03-06T13:25:24Z"
10
+ name: test-rolebinding
11
+ namespace: k8s-opa-static-cis-527
12
+ resourceVersion: "3040155"
13
+ uid: 42b25640-8050-40e4-ac83-b84f8699afc0
14
+ roleRef:
15
+ apiGroup: rbac.authorization.k8s.io
16
+ kind: Role
17
+ name: test-role
18
+ subjects:
19
+ - kind: ServiceAccount
20
+ name: test-serviceaccount
21
+ namespace: k8s-opa-static-cis-527
22
+ kind: List
23
+ metadata:
24
+ resourceVersion: ""
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/rolebindings/test-rolebinding.yaml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: rbac.authorization.k8s.io/v1
2
+ kind: RoleBinding
3
+ metadata:
4
+ annotations:
5
+ kubectl.kubernetes.io/last-applied-configuration: '{"apiVersion":"rbac.authorization.k8s.io/v1","kind":"RoleBinding","metadata":{"annotations":{},"name":"test-rolebinding","namespace":"k8s-opa-static-cis-527"},"roleRef":{"apiGroup":"rbac.authorization.k8s.io","kind":"Role","name":"test-role"},"subjects":[{"kind":"ServiceAccount","name":"test-serviceaccount","namespace":"k8s-opa-static-cis-527"}]}
6
+
7
+ '
8
+ creationTimestamp: '2026-03-06T13:25:24Z'
9
+ name: test-rolebinding
10
+ namespace: k8s-opa-static-cis-527
11
+ resourceVersion: '3040155'
12
+ uid: 42b25640-8050-40e4-ac83-b84f8699afc0
13
+ roleRef:
14
+ apiGroup: rbac.authorization.k8s.io
15
+ kind: Role
16
+ name: test-role
17
+ subjects:
18
+ - kind: ServiceAccount
19
+ name: test-serviceaccount
20
+ namespace: k8s-opa-static-cis-527
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/roles-all.yaml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ items:
3
+ - apiVersion: rbac.authorization.k8s.io/v1
4
+ kind: Role
5
+ metadata:
6
+ annotations:
7
+ kubectl.kubernetes.io/last-applied-configuration: |
8
+ {"apiVersion":"rbac.authorization.k8s.io/v1","kind":"Role","metadata":{"annotations":{},"name":"test-role","namespace":"k8s-opa-static-cis-527"},"rules":[{"apiGroups":[""],"resources":["pods"],"verbs":["get","watch","list"]},{"apiGroups":["apps"],"resources":["deployments"],"verbs":["get","list"]}]}
9
+ creationTimestamp: "2026-03-06T13:25:23Z"
10
+ name: test-role
11
+ namespace: k8s-opa-static-cis-527
12
+ resourceVersion: "3040146"
13
+ uid: 550f48db-3703-4cc1-a8cc-cc6a23d1c02c
14
+ rules:
15
+ - apiGroups:
16
+ - ""
17
+ resources:
18
+ - pods
19
+ verbs:
20
+ - get
21
+ - watch
22
+ - list
23
+ - apiGroups:
24
+ - apps
25
+ resources:
26
+ - deployments
27
+ verbs:
28
+ - get
29
+ - list
30
+ kind: List
31
+ metadata:
32
+ resourceVersion: ""
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/roles/test-role.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: rbac.authorization.k8s.io/v1
2
+ kind: Role
3
+ metadata:
4
+ annotations:
5
+ kubectl.kubernetes.io/last-applied-configuration: '{"apiVersion":"rbac.authorization.k8s.io/v1","kind":"Role","metadata":{"annotations":{},"name":"test-role","namespace":"k8s-opa-static-cis-527"},"rules":[{"apiGroups":[""],"resources":["pods"],"verbs":["get","watch","list"]},{"apiGroups":["apps"],"resources":["deployments"],"verbs":["get","list"]}]}
6
+
7
+ '
8
+ creationTimestamp: '2026-03-06T13:25:23Z'
9
+ name: test-role
10
+ namespace: k8s-opa-static-cis-527
11
+ resourceVersion: '3040146'
12
+ uid: 550f48db-3703-4cc1-a8cc-cc6a23d1c02c
13
+ rules:
14
+ - apiGroups:
15
+ - ''
16
+ resources:
17
+ - pods
18
+ verbs:
19
+ - get
20
+ - watch
21
+ - list
22
+ - apiGroups:
23
+ - apps
24
+ resources:
25
+ - deployments
26
+ verbs:
27
+ - get
28
+ - list
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/serviceaccounts-all.yaml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ items:
3
+ - apiVersion: v1
4
+ kind: ServiceAccount
5
+ metadata:
6
+ creationTimestamp: "2026-03-06T13:24:25Z"
7
+ name: default
8
+ namespace: k8s-opa-static-cis-527
9
+ resourceVersion: "3039880"
10
+ uid: b30a18f0-3d1c-4ea9-9cf9-d215c07c63c4
11
+ - apiVersion: v1
12
+ kind: ServiceAccount
13
+ metadata:
14
+ annotations:
15
+ kubectl.kubernetes.io/last-applied-configuration: |
16
+ {"apiVersion":"v1","kind":"ServiceAccount","metadata":{"annotations":{},"labels":{"app":"test-app"},"name":"test-serviceaccount","namespace":"k8s-opa-static-cis-527"}}
17
+ creationTimestamp: "2026-03-06T13:25:25Z"
18
+ labels:
19
+ app: test-app
20
+ name: test-serviceaccount
21
+ namespace: k8s-opa-static-cis-527
22
+ resourceVersion: "3040171"
23
+ uid: 3cf3e700-7722-46a1-9d79-8e8459905130
24
+ kind: List
25
+ metadata:
26
+ resourceVersion: ""
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/serviceaccounts/default.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ kind: ServiceAccount
3
+ metadata:
4
+ creationTimestamp: '2026-03-06T13:24:25Z'
5
+ name: default
6
+ namespace: k8s-opa-static-cis-527
7
+ resourceVersion: '3039880'
8
+ uid: b30a18f0-3d1c-4ea9-9cf9-d215c07c63c4
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/serviceaccounts/test-serviceaccount.yaml ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ kind: ServiceAccount
3
+ metadata:
4
+ annotations:
5
+ kubectl.kubernetes.io/last-applied-configuration: '{"apiVersion":"v1","kind":"ServiceAccount","metadata":{"annotations":{},"labels":{"app":"test-app"},"name":"test-serviceaccount","namespace":"k8s-opa-static-cis-527"}}
6
+
7
+ '
8
+ creationTimestamp: '2026-03-06T13:25:25Z'
9
+ labels:
10
+ app: test-app
11
+ name: test-serviceaccount
12
+ namespace: k8s-opa-static-cis-527
13
+ resourceVersion: '3040171'
14
+ uid: 3cf3e700-7722-46a1-9d79-8e8459905130
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/services-all.yaml ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ items:
3
+ - apiVersion: v1
4
+ kind: Service
5
+ metadata:
6
+ annotations:
7
+ kubectl.kubernetes.io/last-applied-configuration: |
8
+ {"apiVersion":"v1","kind":"Service","metadata":{"annotations":{},"labels":{"app":"test-app"},"name":"test-service","namespace":"k8s-opa-static-cis-527"},"spec":{"ports":[{"name":"http","port":80,"protocol":"TCP","targetPort":8080}],"selector":{"app":"compliant-web"},"type":"ClusterIP"}}
9
+ creationTimestamp: "2026-03-06T13:25:24Z"
10
+ labels:
11
+ app: test-app
12
+ name: test-service
13
+ namespace: k8s-opa-static-cis-527
14
+ resourceVersion: "3040163"
15
+ uid: f0531e47-f817-49e0-8697-8f72d697de27
16
+ spec:
17
+ clusterIP: 10.96.180.15
18
+ clusterIPs:
19
+ - 10.96.180.15
20
+ internalTrafficPolicy: Cluster
21
+ ipFamilies:
22
+ - IPv4
23
+ ipFamilyPolicy: SingleStack
24
+ ports:
25
+ - name: http
26
+ port: 80
27
+ protocol: TCP
28
+ targetPort: 8080
29
+ selector:
30
+ app: compliant-web
31
+ sessionAffinity: None
32
+ type: ClusterIP
33
+ status:
34
+ loadBalancer: {}
35
+ kind: List
36
+ metadata:
37
+ resourceVersion: ""
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources-compliant/services/test-service.yaml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ kind: Service
3
+ metadata:
4
+ annotations:
5
+ kubectl.kubernetes.io/last-applied-configuration: '{"apiVersion":"v1","kind":"Service","metadata":{"annotations":{},"labels":{"app":"test-app"},"name":"test-service","namespace":"k8s-opa-static-cis-527"},"spec":{"ports":[{"name":"http","port":80,"protocol":"TCP","targetPort":8080}],"selector":{"app":"compliant-web"},"type":"ClusterIP"}}
6
+
7
+ '
8
+ creationTimestamp: '2026-03-06T13:25:24Z'
9
+ labels:
10
+ app: test-app
11
+ name: test-service
12
+ namespace: k8s-opa-static-cis-527
13
+ resourceVersion: '3040163'
14
+ uid: f0531e47-f817-49e0-8697-8f72d697de27
15
+ spec:
16
+ clusterIP: 10.96.180.15
17
+ clusterIPs:
18
+ - 10.96.180.15
19
+ internalTrafficPolicy: Cluster
20
+ ipFamilies:
21
+ - IPv4
22
+ ipFamilyPolicy: SingleStack
23
+ ports:
24
+ - name: http
25
+ port: 80
26
+ protocol: TCP
27
+ targetPort: 8080
28
+ selector:
29
+ app: compliant-web
30
+ sessionAffinity: None
31
+ type: ClusterIP
32
+ status:
33
+ loadBalancer: {}
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/deployments-all.yaml ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ items:
3
+ - apiVersion: apps/v1
4
+ kind: Deployment
5
+ metadata:
6
+ annotations:
7
+ deployment.kubernetes.io/revision: "1"
8
+ kubectl.kubernetes.io/last-applied-configuration: |
9
+ {"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"labels":{"app":"compliant-web","compliance":"true"},"name":"compliant-deployment","namespace":"k8s-opa-static-cis-527"},"spec":{"replicas":2,"selector":{"matchLabels":{"app":"compliant-web"}},"template":{"metadata":{"labels":{"app":"compliant-web","compliance":"true"}},"spec":{"containers":[{"image":"nginx:1.21","name":"web","ports":[{"containerPort":8080}],"securityContext":{"allowPrivilegeEscalation":false,"readOnlyRootFilesystem":false,"runAsNonRoot":true,"runAsUser":1001}}],"securityContext":{"fsGroup":1001,"runAsNonRoot":true,"runAsUser":1001}}}}}
10
+ creationTimestamp: "2026-03-06T13:25:20Z"
11
+ generation: 1
12
+ labels:
13
+ app: compliant-web
14
+ compliance: "true"
15
+ name: compliant-deployment
16
+ namespace: k8s-opa-static-cis-527
17
+ resourceVersion: "3040083"
18
+ uid: f2f00453-6f18-4415-a6ac-6c1dd5d08db9
19
+ spec:
20
+ progressDeadlineSeconds: 600
21
+ replicas: 2
22
+ revisionHistoryLimit: 10
23
+ selector:
24
+ matchLabels:
25
+ app: compliant-web
26
+ strategy:
27
+ rollingUpdate:
28
+ maxSurge: 25%
29
+ maxUnavailable: 25%
30
+ type: RollingUpdate
31
+ template:
32
+ metadata:
33
+ creationTimestamp: null
34
+ labels:
35
+ app: compliant-web
36
+ compliance: "true"
37
+ spec:
38
+ containers:
39
+ - image: nginx:1.21
40
+ imagePullPolicy: IfNotPresent
41
+ name: web
42
+ ports:
43
+ - containerPort: 8080
44
+ protocol: TCP
45
+ resources: {}
46
+ securityContext:
47
+ allowPrivilegeEscalation: false
48
+ readOnlyRootFilesystem: false
49
+ runAsNonRoot: true
50
+ runAsUser: 1001
51
+ terminationMessagePath: /dev/termination-log
52
+ terminationMessagePolicy: File
53
+ dnsPolicy: ClusterFirst
54
+ restartPolicy: Always
55
+ schedulerName: default-scheduler
56
+ securityContext:
57
+ fsGroup: 1001
58
+ runAsNonRoot: true
59
+ runAsUser: 1001
60
+ terminationGracePeriodSeconds: 30
61
+ status:
62
+ conditions:
63
+ - lastTransitionTime: "2026-03-06T13:25:20Z"
64
+ lastUpdateTime: "2026-03-06T13:25:20Z"
65
+ message: Deployment does not have minimum availability.
66
+ reason: MinimumReplicasUnavailable
67
+ status: "False"
68
+ type: Available
69
+ - lastTransitionTime: "2026-03-06T13:25:20Z"
70
+ lastUpdateTime: "2026-03-06T13:25:20Z"
71
+ message: ReplicaSet "compliant-deployment-d68cdc45f" is progressing.
72
+ reason: ReplicaSetUpdated
73
+ status: "True"
74
+ type: Progressing
75
+ observedGeneration: 1
76
+ replicas: 2
77
+ unavailableReplicas: 2
78
+ updatedReplicas: 2
79
+ - apiVersion: apps/v1
80
+ kind: Deployment
81
+ metadata:
82
+ annotations:
83
+ deployment.kubernetes.io/revision: "1"
84
+ kubectl.kubernetes.io/last-applied-configuration: |
85
+ {"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"labels":{"app":"non-compliant-web","compliance":"false"},"name":"non-compliant-deployment","namespace":"k8s-opa-static-cis-527"},"spec":{"replicas":1,"selector":{"matchLabels":{"app":"non-compliant-web"}},"template":{"metadata":{"labels":{"app":"non-compliant-web","compliance":"false"}},"spec":{"containers":[{"image":"nginx:1.21","name":"web","ports":[{"containerPort":80}],"securityContext":{"runAsNonRoot":false,"runAsUser":0}}],"securityContext":{"runAsNonRoot":false,"runAsUser":0}}}}}
86
+ creationTimestamp: "2026-03-06T13:25:22Z"
87
+ generation: 1
88
+ labels:
89
+ app: non-compliant-web
90
+ compliance: "false"
91
+ name: non-compliant-deployment
92
+ namespace: k8s-opa-static-cis-527
93
+ resourceVersion: "3040152"
94
+ uid: b9f4981c-2a6e-420e-a30c-4298a6af3a4c
95
+ spec:
96
+ progressDeadlineSeconds: 600
97
+ replicas: 1
98
+ revisionHistoryLimit: 10
99
+ selector:
100
+ matchLabels:
101
+ app: non-compliant-web
102
+ strategy:
103
+ rollingUpdate:
104
+ maxSurge: 25%
105
+ maxUnavailable: 25%
106
+ type: RollingUpdate
107
+ template:
108
+ metadata:
109
+ creationTimestamp: null
110
+ labels:
111
+ app: non-compliant-web
112
+ compliance: "false"
113
+ spec:
114
+ containers:
115
+ - image: nginx:1.21
116
+ imagePullPolicy: IfNotPresent
117
+ name: web
118
+ ports:
119
+ - containerPort: 80
120
+ protocol: TCP
121
+ resources: {}
122
+ securityContext:
123
+ runAsNonRoot: false
124
+ runAsUser: 0
125
+ terminationMessagePath: /dev/termination-log
126
+ terminationMessagePolicy: File
127
+ dnsPolicy: ClusterFirst
128
+ restartPolicy: Always
129
+ schedulerName: default-scheduler
130
+ securityContext:
131
+ runAsNonRoot: false
132
+ runAsUser: 0
133
+ terminationGracePeriodSeconds: 30
134
+ status:
135
+ availableReplicas: 1
136
+ conditions:
137
+ - lastTransitionTime: "2026-03-06T13:25:23Z"
138
+ lastUpdateTime: "2026-03-06T13:25:23Z"
139
+ message: Deployment has minimum availability.
140
+ reason: MinimumReplicasAvailable
141
+ status: "True"
142
+ type: Available
143
+ - lastTransitionTime: "2026-03-06T13:25:22Z"
144
+ lastUpdateTime: "2026-03-06T13:25:23Z"
145
+ message: ReplicaSet "non-compliant-deployment-5d47d9867f" has successfully progressed.
146
+ reason: NewReplicaSetAvailable
147
+ status: "True"
148
+ type: Progressing
149
+ observedGeneration: 1
150
+ readyReplicas: 1
151
+ replicas: 1
152
+ updatedReplicas: 1
153
+ kind: List
154
+ metadata:
155
+ resourceVersion: ""
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/deployments/compliant-deployment.yaml ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: apps/v1
2
+ kind: Deployment
3
+ metadata:
4
+ annotations:
5
+ deployment.kubernetes.io/revision: '1'
6
+ kubectl.kubernetes.io/last-applied-configuration: '{"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"labels":{"app":"compliant-web","compliance":"true"},"name":"compliant-deployment","namespace":"k8s-opa-static-cis-527"},"spec":{"replicas":2,"selector":{"matchLabels":{"app":"compliant-web"}},"template":{"metadata":{"labels":{"app":"compliant-web","compliance":"true"}},"spec":{"containers":[{"image":"nginx:1.21","name":"web","ports":[{"containerPort":8080}],"securityContext":{"allowPrivilegeEscalation":false,"readOnlyRootFilesystem":false,"runAsNonRoot":true,"runAsUser":1001}}],"securityContext":{"fsGroup":1001,"runAsNonRoot":true,"runAsUser":1001}}}}}
7
+
8
+ '
9
+ creationTimestamp: '2026-03-06T13:25:20Z'
10
+ generation: 1
11
+ labels:
12
+ app: compliant-web
13
+ compliance: 'true'
14
+ name: compliant-deployment
15
+ namespace: k8s-opa-static-cis-527
16
+ resourceVersion: '3040083'
17
+ uid: f2f00453-6f18-4415-a6ac-6c1dd5d08db9
18
+ spec:
19
+ progressDeadlineSeconds: 600
20
+ replicas: 2
21
+ revisionHistoryLimit: 10
22
+ selector:
23
+ matchLabels:
24
+ app: compliant-web
25
+ strategy:
26
+ rollingUpdate:
27
+ maxSurge: 25%
28
+ maxUnavailable: 25%
29
+ type: RollingUpdate
30
+ template:
31
+ metadata:
32
+ creationTimestamp: null
33
+ labels:
34
+ app: compliant-web
35
+ compliance: 'true'
36
+ spec:
37
+ containers:
38
+ - image: nginx:1.21
39
+ imagePullPolicy: IfNotPresent
40
+ name: web
41
+ ports:
42
+ - containerPort: 8080
43
+ protocol: TCP
44
+ resources: {}
45
+ securityContext:
46
+ allowPrivilegeEscalation: false
47
+ readOnlyRootFilesystem: false
48
+ runAsNonRoot: true
49
+ runAsUser: 1001
50
+ terminationMessagePath: /dev/termination-log
51
+ terminationMessagePolicy: File
52
+ dnsPolicy: ClusterFirst
53
+ restartPolicy: Always
54
+ schedulerName: default-scheduler
55
+ securityContext:
56
+ fsGroup: 1001
57
+ runAsNonRoot: true
58
+ runAsUser: 1001
59
+ terminationGracePeriodSeconds: 30
60
+ status:
61
+ conditions:
62
+ - lastTransitionTime: '2026-03-06T13:25:20Z'
63
+ lastUpdateTime: '2026-03-06T13:25:20Z'
64
+ message: Deployment does not have minimum availability.
65
+ reason: MinimumReplicasUnavailable
66
+ status: 'False'
67
+ type: Available
68
+ - lastTransitionTime: '2026-03-06T13:25:20Z'
69
+ lastUpdateTime: '2026-03-06T13:25:20Z'
70
+ message: ReplicaSet "compliant-deployment-d68cdc45f" is progressing.
71
+ reason: ReplicaSetUpdated
72
+ status: 'True'
73
+ type: Progressing
74
+ observedGeneration: 1
75
+ replicas: 2
76
+ unavailableReplicas: 2
77
+ updatedReplicas: 2
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/deployments/non-compliant-deployment.yaml ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: apps/v1
2
+ kind: Deployment
3
+ metadata:
4
+ annotations:
5
+ deployment.kubernetes.io/revision: '1'
6
+ kubectl.kubernetes.io/last-applied-configuration: '{"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"labels":{"app":"non-compliant-web","compliance":"false"},"name":"non-compliant-deployment","namespace":"k8s-opa-static-cis-527"},"spec":{"replicas":1,"selector":{"matchLabels":{"app":"non-compliant-web"}},"template":{"metadata":{"labels":{"app":"non-compliant-web","compliance":"false"}},"spec":{"containers":[{"image":"nginx:1.21","name":"web","ports":[{"containerPort":80}],"securityContext":{"runAsNonRoot":false,"runAsUser":0}}],"securityContext":{"runAsNonRoot":false,"runAsUser":0}}}}}
7
+
8
+ '
9
+ creationTimestamp: '2026-03-06T13:25:22Z'
10
+ generation: 1
11
+ labels:
12
+ app: non-compliant-web
13
+ compliance: 'false'
14
+ name: non-compliant-deployment
15
+ namespace: k8s-opa-static-cis-527
16
+ resourceVersion: '3040152'
17
+ uid: b9f4981c-2a6e-420e-a30c-4298a6af3a4c
18
+ spec:
19
+ progressDeadlineSeconds: 600
20
+ replicas: 1
21
+ revisionHistoryLimit: 10
22
+ selector:
23
+ matchLabels:
24
+ app: non-compliant-web
25
+ strategy:
26
+ rollingUpdate:
27
+ maxSurge: 25%
28
+ maxUnavailable: 25%
29
+ type: RollingUpdate
30
+ template:
31
+ metadata:
32
+ creationTimestamp: null
33
+ labels:
34
+ app: non-compliant-web
35
+ compliance: 'false'
36
+ spec:
37
+ containers:
38
+ - image: nginx:1.21
39
+ imagePullPolicy: IfNotPresent
40
+ name: web
41
+ ports:
42
+ - containerPort: 80
43
+ protocol: TCP
44
+ resources: {}
45
+ securityContext:
46
+ runAsNonRoot: false
47
+ runAsUser: 0
48
+ terminationMessagePath: /dev/termination-log
49
+ terminationMessagePolicy: File
50
+ dnsPolicy: ClusterFirst
51
+ restartPolicy: Always
52
+ schedulerName: default-scheduler
53
+ securityContext:
54
+ runAsNonRoot: false
55
+ runAsUser: 0
56
+ terminationGracePeriodSeconds: 30
57
+ status:
58
+ availableReplicas: 1
59
+ conditions:
60
+ - lastTransitionTime: '2026-03-06T13:25:23Z'
61
+ lastUpdateTime: '2026-03-06T13:25:23Z'
62
+ message: Deployment has minimum availability.
63
+ reason: MinimumReplicasAvailable
64
+ status: 'True'
65
+ type: Available
66
+ - lastTransitionTime: '2026-03-06T13:25:22Z'
67
+ lastUpdateTime: '2026-03-06T13:25:23Z'
68
+ message: ReplicaSet "non-compliant-deployment-5d47d9867f" has successfully progressed.
69
+ reason: NewReplicaSetAvailable
70
+ status: 'True'
71
+ type: Progressing
72
+ observedGeneration: 1
73
+ readyReplicas: 1
74
+ replicas: 1
75
+ updatedReplicas: 1
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/pods-all.yaml ADDED
@@ -0,0 +1,671 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ items:
3
+ - apiVersion: v1
4
+ kind: Pod
5
+ metadata:
6
+ creationTimestamp: "2026-03-06T13:25:20Z"
7
+ generateName: compliant-deployment-d68cdc45f-
8
+ labels:
9
+ app: compliant-web
10
+ compliance: "true"
11
+ pod-template-hash: d68cdc45f
12
+ name: compliant-deployment-d68cdc45f-7f49h
13
+ namespace: k8s-opa-static-cis-527
14
+ ownerReferences:
15
+ - apiVersion: apps/v1
16
+ blockOwnerDeletion: true
17
+ controller: true
18
+ kind: ReplicaSet
19
+ name: compliant-deployment-d68cdc45f
20
+ uid: 132fd316-bde9-4353-8163-d50503d0aff9
21
+ resourceVersion: "3040160"
22
+ uid: d4282f1c-ee02-4a07-be65-6d069340d25d
23
+ spec:
24
+ containers:
25
+ - image: nginx:1.21
26
+ imagePullPolicy: IfNotPresent
27
+ name: web
28
+ ports:
29
+ - containerPort: 8080
30
+ protocol: TCP
31
+ resources: {}
32
+ securityContext:
33
+ allowPrivilegeEscalation: false
34
+ readOnlyRootFilesystem: false
35
+ runAsNonRoot: true
36
+ runAsUser: 1001
37
+ terminationMessagePath: /dev/termination-log
38
+ terminationMessagePolicy: File
39
+ volumeMounts:
40
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
41
+ name: kube-api-access-qgkxv
42
+ readOnly: true
43
+ dnsPolicy: ClusterFirst
44
+ enableServiceLinks: true
45
+ nodeName: kind-1-control-plane
46
+ preemptionPolicy: PreemptLowerPriority
47
+ priority: 0
48
+ restartPolicy: Always
49
+ schedulerName: default-scheduler
50
+ securityContext:
51
+ fsGroup: 1001
52
+ runAsNonRoot: true
53
+ runAsUser: 1001
54
+ serviceAccount: default
55
+ serviceAccountName: default
56
+ terminationGracePeriodSeconds: 30
57
+ tolerations:
58
+ - effect: NoExecute
59
+ key: node.kubernetes.io/not-ready
60
+ operator: Exists
61
+ tolerationSeconds: 300
62
+ - effect: NoExecute
63
+ key: node.kubernetes.io/unreachable
64
+ operator: Exists
65
+ tolerationSeconds: 300
66
+ volumes:
67
+ - name: kube-api-access-qgkxv
68
+ projected:
69
+ defaultMode: 420
70
+ sources:
71
+ - serviceAccountToken:
72
+ expirationSeconds: 3607
73
+ path: token
74
+ - configMap:
75
+ items:
76
+ - key: ca.crt
77
+ path: ca.crt
78
+ name: kube-root-ca.crt
79
+ - downwardAPI:
80
+ items:
81
+ - fieldRef:
82
+ apiVersion: v1
83
+ fieldPath: metadata.namespace
84
+ path: namespace
85
+ status:
86
+ conditions:
87
+ - lastProbeTime: null
88
+ lastTransitionTime: "2026-03-06T13:25:22Z"
89
+ status: "True"
90
+ type: PodReadyToStartContainers
91
+ - lastProbeTime: null
92
+ lastTransitionTime: "2026-03-06T13:25:20Z"
93
+ status: "True"
94
+ type: Initialized
95
+ - lastProbeTime: null
96
+ lastTransitionTime: "2026-03-06T13:25:20Z"
97
+ message: 'containers with unready status: [web]'
98
+ reason: ContainersNotReady
99
+ status: "False"
100
+ type: Ready
101
+ - lastProbeTime: null
102
+ lastTransitionTime: "2026-03-06T13:25:20Z"
103
+ message: 'containers with unready status: [web]'
104
+ reason: ContainersNotReady
105
+ status: "False"
106
+ type: ContainersReady
107
+ - lastProbeTime: null
108
+ lastTransitionTime: "2026-03-06T13:25:20Z"
109
+ status: "True"
110
+ type: PodScheduled
111
+ containerStatuses:
112
+ - containerID: containerd://bec06defc9c8487a1f3d1c60df267206079dabc4738c18c4d07d2eca5e2ca663
113
+ image: docker.io/library/nginx:1.21
114
+ imageID: docker.io/library/nginx@sha256:2bcabc23b45489fb0885d69a06ba1d648aeda973fae7bb981bafbb884165e514
115
+ lastState:
116
+ terminated:
117
+ containerID: containerd://bec06defc9c8487a1f3d1c60df267206079dabc4738c18c4d07d2eca5e2ca663
118
+ exitCode: 1
119
+ finishedAt: "2026-03-06T13:25:22Z"
120
+ reason: Error
121
+ startedAt: "2026-03-06T13:25:22Z"
122
+ name: web
123
+ ready: false
124
+ restartCount: 1
125
+ started: false
126
+ state:
127
+ waiting:
128
+ message: back-off 10s restarting failed container=web pod=compliant-deployment-d68cdc45f-7f49h_k8s-opa-static-cis-527(d4282f1c-ee02-4a07-be65-6d069340d25d)
129
+ reason: CrashLoopBackOff
130
+ volumeMounts:
131
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
132
+ name: kube-api-access-qgkxv
133
+ readOnly: true
134
+ recursiveReadOnly: Disabled
135
+ hostIP: 172.18.0.2
136
+ hostIPs:
137
+ - ip: 172.18.0.2
138
+ phase: Running
139
+ podIP: 10.244.0.187
140
+ podIPs:
141
+ - ip: 10.244.0.187
142
+ qosClass: BestEffort
143
+ startTime: "2026-03-06T13:25:20Z"
144
+ - apiVersion: v1
145
+ kind: Pod
146
+ metadata:
147
+ creationTimestamp: "2026-03-06T13:25:20Z"
148
+ generateName: compliant-deployment-d68cdc45f-
149
+ labels:
150
+ app: compliant-web
151
+ compliance: "true"
152
+ pod-template-hash: d68cdc45f
153
+ name: compliant-deployment-d68cdc45f-vjlv8
154
+ namespace: k8s-opa-static-cis-527
155
+ ownerReferences:
156
+ - apiVersion: apps/v1
157
+ blockOwnerDeletion: true
158
+ controller: true
159
+ kind: ReplicaSet
160
+ name: compliant-deployment-d68cdc45f
161
+ uid: 132fd316-bde9-4353-8163-d50503d0aff9
162
+ resourceVersion: "3040161"
163
+ uid: 6aef204c-c44a-42a2-a378-312c85a980d0
164
+ spec:
165
+ containers:
166
+ - image: nginx:1.21
167
+ imagePullPolicy: IfNotPresent
168
+ name: web
169
+ ports:
170
+ - containerPort: 8080
171
+ protocol: TCP
172
+ resources: {}
173
+ securityContext:
174
+ allowPrivilegeEscalation: false
175
+ readOnlyRootFilesystem: false
176
+ runAsNonRoot: true
177
+ runAsUser: 1001
178
+ terminationMessagePath: /dev/termination-log
179
+ terminationMessagePolicy: File
180
+ volumeMounts:
181
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
182
+ name: kube-api-access-wdd6p
183
+ readOnly: true
184
+ dnsPolicy: ClusterFirst
185
+ enableServiceLinks: true
186
+ nodeName: kind-1-control-plane
187
+ preemptionPolicy: PreemptLowerPriority
188
+ priority: 0
189
+ restartPolicy: Always
190
+ schedulerName: default-scheduler
191
+ securityContext:
192
+ fsGroup: 1001
193
+ runAsNonRoot: true
194
+ runAsUser: 1001
195
+ serviceAccount: default
196
+ serviceAccountName: default
197
+ terminationGracePeriodSeconds: 30
198
+ tolerations:
199
+ - effect: NoExecute
200
+ key: node.kubernetes.io/not-ready
201
+ operator: Exists
202
+ tolerationSeconds: 300
203
+ - effect: NoExecute
204
+ key: node.kubernetes.io/unreachable
205
+ operator: Exists
206
+ tolerationSeconds: 300
207
+ volumes:
208
+ - name: kube-api-access-wdd6p
209
+ projected:
210
+ defaultMode: 420
211
+ sources:
212
+ - serviceAccountToken:
213
+ expirationSeconds: 3607
214
+ path: token
215
+ - configMap:
216
+ items:
217
+ - key: ca.crt
218
+ path: ca.crt
219
+ name: kube-root-ca.crt
220
+ - downwardAPI:
221
+ items:
222
+ - fieldRef:
223
+ apiVersion: v1
224
+ fieldPath: metadata.namespace
225
+ path: namespace
226
+ status:
227
+ conditions:
228
+ - lastProbeTime: null
229
+ lastTransitionTime: "2026-03-06T13:25:22Z"
230
+ status: "True"
231
+ type: PodReadyToStartContainers
232
+ - lastProbeTime: null
233
+ lastTransitionTime: "2026-03-06T13:25:20Z"
234
+ status: "True"
235
+ type: Initialized
236
+ - lastProbeTime: null
237
+ lastTransitionTime: "2026-03-06T13:25:20Z"
238
+ message: 'containers with unready status: [web]'
239
+ reason: ContainersNotReady
240
+ status: "False"
241
+ type: Ready
242
+ - lastProbeTime: null
243
+ lastTransitionTime: "2026-03-06T13:25:20Z"
244
+ message: 'containers with unready status: [web]'
245
+ reason: ContainersNotReady
246
+ status: "False"
247
+ type: ContainersReady
248
+ - lastProbeTime: null
249
+ lastTransitionTime: "2026-03-06T13:25:20Z"
250
+ status: "True"
251
+ type: PodScheduled
252
+ containerStatuses:
253
+ - containerID: containerd://ec5e5bbb8d6449f23f7035bf7ad6275acf116e8781b78c6cf356a2224fe94020
254
+ image: docker.io/library/nginx:1.21
255
+ imageID: docker.io/library/nginx@sha256:2bcabc23b45489fb0885d69a06ba1d648aeda973fae7bb981bafbb884165e514
256
+ lastState:
257
+ terminated:
258
+ containerID: containerd://ec5e5bbb8d6449f23f7035bf7ad6275acf116e8781b78c6cf356a2224fe94020
259
+ exitCode: 1
260
+ finishedAt: "2026-03-06T13:25:22Z"
261
+ reason: Error
262
+ startedAt: "2026-03-06T13:25:22Z"
263
+ name: web
264
+ ready: false
265
+ restartCount: 1
266
+ started: false
267
+ state:
268
+ waiting:
269
+ message: back-off 10s restarting failed container=web pod=compliant-deployment-d68cdc45f-vjlv8_k8s-opa-static-cis-527(6aef204c-c44a-42a2-a378-312c85a980d0)
270
+ reason: CrashLoopBackOff
271
+ volumeMounts:
272
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
273
+ name: kube-api-access-wdd6p
274
+ readOnly: true
275
+ recursiveReadOnly: Disabled
276
+ hostIP: 172.18.0.2
277
+ hostIPs:
278
+ - ip: 172.18.0.2
279
+ phase: Running
280
+ podIP: 10.244.0.186
281
+ podIPs:
282
+ - ip: 10.244.0.186
283
+ qosClass: BestEffort
284
+ startTime: "2026-03-06T13:25:20Z"
285
+ - apiVersion: v1
286
+ kind: Pod
287
+ metadata:
288
+ annotations:
289
+ kubectl.kubernetes.io/last-applied-configuration: |
290
+ {"apiVersion":"v1","kind":"Pod","metadata":{"annotations":{},"labels":{"app":"compliant-app","compliance":"true"},"name":"compliant-pod","namespace":"k8s-opa-static-cis-527"},"spec":{"containers":[{"image":"nginx:1.21","name":"app","ports":[{"containerPort":8080}],"securityContext":{"allowPrivilegeEscalation":false,"runAsNonRoot":true,"runAsUser":1000}}],"securityContext":{"runAsNonRoot":true,"runAsUser":1000}}}
291
+ creationTimestamp: "2026-03-06T13:25:21Z"
292
+ labels:
293
+ app: compliant-app
294
+ compliance: "true"
295
+ name: compliant-pod
296
+ namespace: k8s-opa-static-cis-527
297
+ resourceVersion: "3040149"
298
+ uid: 4fd0313e-8a5b-4244-9d33-f93a60974be2
299
+ spec:
300
+ containers:
301
+ - image: nginx:1.21
302
+ imagePullPolicy: IfNotPresent
303
+ name: app
304
+ ports:
305
+ - containerPort: 8080
306
+ protocol: TCP
307
+ resources: {}
308
+ securityContext:
309
+ allowPrivilegeEscalation: false
310
+ runAsNonRoot: true
311
+ runAsUser: 1000
312
+ terminationMessagePath: /dev/termination-log
313
+ terminationMessagePolicy: File
314
+ volumeMounts:
315
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
316
+ name: kube-api-access-c7jzc
317
+ readOnly: true
318
+ dnsPolicy: ClusterFirst
319
+ enableServiceLinks: true
320
+ nodeName: kind-1-control-plane
321
+ preemptionPolicy: PreemptLowerPriority
322
+ priority: 0
323
+ restartPolicy: Always
324
+ schedulerName: default-scheduler
325
+ securityContext:
326
+ runAsNonRoot: true
327
+ runAsUser: 1000
328
+ serviceAccount: default
329
+ serviceAccountName: default
330
+ terminationGracePeriodSeconds: 30
331
+ tolerations:
332
+ - effect: NoExecute
333
+ key: node.kubernetes.io/not-ready
334
+ operator: Exists
335
+ tolerationSeconds: 300
336
+ - effect: NoExecute
337
+ key: node.kubernetes.io/unreachable
338
+ operator: Exists
339
+ tolerationSeconds: 300
340
+ volumes:
341
+ - name: kube-api-access-c7jzc
342
+ projected:
343
+ defaultMode: 420
344
+ sources:
345
+ - serviceAccountToken:
346
+ expirationSeconds: 3607
347
+ path: token
348
+ - configMap:
349
+ items:
350
+ - key: ca.crt
351
+ path: ca.crt
352
+ name: kube-root-ca.crt
353
+ - downwardAPI:
354
+ items:
355
+ - fieldRef:
356
+ apiVersion: v1
357
+ fieldPath: metadata.namespace
358
+ path: namespace
359
+ status:
360
+ conditions:
361
+ - lastProbeTime: null
362
+ lastTransitionTime: "2026-03-06T13:25:22Z"
363
+ status: "True"
364
+ type: PodReadyToStartContainers
365
+ - lastProbeTime: null
366
+ lastTransitionTime: "2026-03-06T13:25:21Z"
367
+ status: "True"
368
+ type: Initialized
369
+ - lastProbeTime: null
370
+ lastTransitionTime: "2026-03-06T13:25:21Z"
371
+ message: 'containers with unready status: [app]'
372
+ reason: ContainersNotReady
373
+ status: "False"
374
+ type: Ready
375
+ - lastProbeTime: null
376
+ lastTransitionTime: "2026-03-06T13:25:21Z"
377
+ message: 'containers with unready status: [app]'
378
+ reason: ContainersNotReady
379
+ status: "False"
380
+ type: ContainersReady
381
+ - lastProbeTime: null
382
+ lastTransitionTime: "2026-03-06T13:25:21Z"
383
+ status: "True"
384
+ type: PodScheduled
385
+ containerStatuses:
386
+ - containerID: containerd://b95d913dd64556b4668c6d51bd7a0bca71c289951ac66778b8431e7b263d42de
387
+ image: docker.io/library/nginx:1.21
388
+ imageID: docker.io/library/nginx@sha256:2bcabc23b45489fb0885d69a06ba1d648aeda973fae7bb981bafbb884165e514
389
+ lastState:
390
+ terminated:
391
+ containerID: containerd://dc0afbe4c01a60c8a034affb3d7080eaa22c061d3f408be6e5cb435674876587
392
+ exitCode: 1
393
+ finishedAt: "2026-03-06T13:25:22Z"
394
+ reason: Error
395
+ startedAt: "2026-03-06T13:25:22Z"
396
+ name: app
397
+ ready: false
398
+ restartCount: 1
399
+ started: false
400
+ state:
401
+ terminated:
402
+ containerID: containerd://b95d913dd64556b4668c6d51bd7a0bca71c289951ac66778b8431e7b263d42de
403
+ exitCode: 1
404
+ finishedAt: "2026-03-06T13:25:22Z"
405
+ reason: Error
406
+ startedAt: "2026-03-06T13:25:22Z"
407
+ volumeMounts:
408
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
409
+ name: kube-api-access-c7jzc
410
+ readOnly: true
411
+ recursiveReadOnly: Disabled
412
+ hostIP: 172.18.0.2
413
+ hostIPs:
414
+ - ip: 172.18.0.2
415
+ phase: Running
416
+ podIP: 10.244.0.188
417
+ podIPs:
418
+ - ip: 10.244.0.188
419
+ qosClass: BestEffort
420
+ startTime: "2026-03-06T13:25:21Z"
421
+ - apiVersion: v1
422
+ kind: Pod
423
+ metadata:
424
+ creationTimestamp: "2026-03-06T13:25:22Z"
425
+ generateName: non-compliant-deployment-5d47d9867f-
426
+ labels:
427
+ app: non-compliant-web
428
+ compliance: "false"
429
+ pod-template-hash: 5d47d9867f
430
+ name: non-compliant-deployment-5d47d9867f-rwdql
431
+ namespace: k8s-opa-static-cis-527
432
+ ownerReferences:
433
+ - apiVersion: apps/v1
434
+ blockOwnerDeletion: true
435
+ controller: true
436
+ kind: ReplicaSet
437
+ name: non-compliant-deployment-5d47d9867f
438
+ uid: c9619959-e552-40b4-97e9-35f25826334b
439
+ resourceVersion: "3040150"
440
+ uid: d28f5130-1d5d-4f29-bdba-ec41fcb640da
441
+ spec:
442
+ containers:
443
+ - image: nginx:1.21
444
+ imagePullPolicy: IfNotPresent
445
+ name: web
446
+ ports:
447
+ - containerPort: 80
448
+ protocol: TCP
449
+ resources: {}
450
+ securityContext:
451
+ runAsNonRoot: false
452
+ runAsUser: 0
453
+ terminationMessagePath: /dev/termination-log
454
+ terminationMessagePolicy: File
455
+ volumeMounts:
456
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
457
+ name: kube-api-access-5fvnw
458
+ readOnly: true
459
+ dnsPolicy: ClusterFirst
460
+ enableServiceLinks: true
461
+ nodeName: kind-1-control-plane
462
+ preemptionPolicy: PreemptLowerPriority
463
+ priority: 0
464
+ restartPolicy: Always
465
+ schedulerName: default-scheduler
466
+ securityContext:
467
+ runAsNonRoot: false
468
+ runAsUser: 0
469
+ serviceAccount: default
470
+ serviceAccountName: default
471
+ terminationGracePeriodSeconds: 30
472
+ tolerations:
473
+ - effect: NoExecute
474
+ key: node.kubernetes.io/not-ready
475
+ operator: Exists
476
+ tolerationSeconds: 300
477
+ - effect: NoExecute
478
+ key: node.kubernetes.io/unreachable
479
+ operator: Exists
480
+ tolerationSeconds: 300
481
+ volumes:
482
+ - name: kube-api-access-5fvnw
483
+ projected:
484
+ defaultMode: 420
485
+ sources:
486
+ - serviceAccountToken:
487
+ expirationSeconds: 3607
488
+ path: token
489
+ - configMap:
490
+ items:
491
+ - key: ca.crt
492
+ path: ca.crt
493
+ name: kube-root-ca.crt
494
+ - downwardAPI:
495
+ items:
496
+ - fieldRef:
497
+ apiVersion: v1
498
+ fieldPath: metadata.namespace
499
+ path: namespace
500
+ status:
501
+ conditions:
502
+ - lastProbeTime: null
503
+ lastTransitionTime: "2026-03-06T13:25:23Z"
504
+ status: "True"
505
+ type: PodReadyToStartContainers
506
+ - lastProbeTime: null
507
+ lastTransitionTime: "2026-03-06T13:25:22Z"
508
+ status: "True"
509
+ type: Initialized
510
+ - lastProbeTime: null
511
+ lastTransitionTime: "2026-03-06T13:25:23Z"
512
+ status: "True"
513
+ type: Ready
514
+ - lastProbeTime: null
515
+ lastTransitionTime: "2026-03-06T13:25:23Z"
516
+ status: "True"
517
+ type: ContainersReady
518
+ - lastProbeTime: null
519
+ lastTransitionTime: "2026-03-06T13:25:22Z"
520
+ status: "True"
521
+ type: PodScheduled
522
+ containerStatuses:
523
+ - containerID: containerd://76963c731abaa51623a3b41deaa087bf110a485a3a98d0ebe95578ce3fa2d30b
524
+ image: docker.io/library/nginx:1.21
525
+ imageID: docker.io/library/nginx@sha256:2bcabc23b45489fb0885d69a06ba1d648aeda973fae7bb981bafbb884165e514
526
+ lastState: {}
527
+ name: web
528
+ ready: true
529
+ restartCount: 0
530
+ started: true
531
+ state:
532
+ running:
533
+ startedAt: "2026-03-06T13:25:23Z"
534
+ volumeMounts:
535
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
536
+ name: kube-api-access-5fvnw
537
+ readOnly: true
538
+ recursiveReadOnly: Disabled
539
+ hostIP: 172.18.0.2
540
+ hostIPs:
541
+ - ip: 172.18.0.2
542
+ phase: Running
543
+ podIP: 10.244.0.189
544
+ podIPs:
545
+ - ip: 10.244.0.189
546
+ qosClass: BestEffort
547
+ startTime: "2026-03-06T13:25:22Z"
548
+ - apiVersion: v1
549
+ kind: Pod
550
+ metadata:
551
+ annotations:
552
+ kubectl.kubernetes.io/last-applied-configuration: |
553
+ {"apiVersion":"v1","kind":"Pod","metadata":{"annotations":{},"labels":{"app":"non-compliant-app","compliance":"false"},"name":"non-compliant-pod","namespace":"k8s-opa-static-cis-527"},"spec":{"containers":[{"image":"nginx:1.21","name":"app","ports":[{"containerPort":80}],"securityContext":{"runAsNonRoot":false,"runAsUser":0}}],"securityContext":{"runAsNonRoot":false,"runAsUser":0}}}
554
+ creationTimestamp: "2026-03-06T13:25:22Z"
555
+ labels:
556
+ app: non-compliant-app
557
+ compliance: "false"
558
+ name: non-compliant-pod
559
+ namespace: k8s-opa-static-cis-527
560
+ resourceVersion: "3040158"
561
+ uid: 29475dba-9436-4864-985a-a37b6b059785
562
+ spec:
563
+ containers:
564
+ - image: nginx:1.21
565
+ imagePullPolicy: IfNotPresent
566
+ name: app
567
+ ports:
568
+ - containerPort: 80
569
+ protocol: TCP
570
+ resources: {}
571
+ securityContext:
572
+ runAsNonRoot: false
573
+ runAsUser: 0
574
+ terminationMessagePath: /dev/termination-log
575
+ terminationMessagePolicy: File
576
+ volumeMounts:
577
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
578
+ name: kube-api-access-885t5
579
+ readOnly: true
580
+ dnsPolicy: ClusterFirst
581
+ enableServiceLinks: true
582
+ nodeName: kind-1-control-plane
583
+ preemptionPolicy: PreemptLowerPriority
584
+ priority: 0
585
+ restartPolicy: Always
586
+ schedulerName: default-scheduler
587
+ securityContext:
588
+ runAsNonRoot: false
589
+ runAsUser: 0
590
+ serviceAccount: default
591
+ serviceAccountName: default
592
+ terminationGracePeriodSeconds: 30
593
+ tolerations:
594
+ - effect: NoExecute
595
+ key: node.kubernetes.io/not-ready
596
+ operator: Exists
597
+ tolerationSeconds: 300
598
+ - effect: NoExecute
599
+ key: node.kubernetes.io/unreachable
600
+ operator: Exists
601
+ tolerationSeconds: 300
602
+ volumes:
603
+ - name: kube-api-access-885t5
604
+ projected:
605
+ defaultMode: 420
606
+ sources:
607
+ - serviceAccountToken:
608
+ expirationSeconds: 3607
609
+ path: token
610
+ - configMap:
611
+ items:
612
+ - key: ca.crt
613
+ path: ca.crt
614
+ name: kube-root-ca.crt
615
+ - downwardAPI:
616
+ items:
617
+ - fieldRef:
618
+ apiVersion: v1
619
+ fieldPath: metadata.namespace
620
+ path: namespace
621
+ status:
622
+ conditions:
623
+ - lastProbeTime: null
624
+ lastTransitionTime: "2026-03-06T13:25:24Z"
625
+ status: "True"
626
+ type: PodReadyToStartContainers
627
+ - lastProbeTime: null
628
+ lastTransitionTime: "2026-03-06T13:25:22Z"
629
+ status: "True"
630
+ type: Initialized
631
+ - lastProbeTime: null
632
+ lastTransitionTime: "2026-03-06T13:25:24Z"
633
+ status: "True"
634
+ type: Ready
635
+ - lastProbeTime: null
636
+ lastTransitionTime: "2026-03-06T13:25:24Z"
637
+ status: "True"
638
+ type: ContainersReady
639
+ - lastProbeTime: null
640
+ lastTransitionTime: "2026-03-06T13:25:22Z"
641
+ status: "True"
642
+ type: PodScheduled
643
+ containerStatuses:
644
+ - containerID: containerd://0146f881806b60fa441c22580830e16980f7e4bcae611becb5ab5e8f63cc77b6
645
+ image: docker.io/library/nginx:1.21
646
+ imageID: docker.io/library/nginx@sha256:2bcabc23b45489fb0885d69a06ba1d648aeda973fae7bb981bafbb884165e514
647
+ lastState: {}
648
+ name: app
649
+ ready: true
650
+ restartCount: 0
651
+ started: true
652
+ state:
653
+ running:
654
+ startedAt: "2026-03-06T13:25:23Z"
655
+ volumeMounts:
656
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
657
+ name: kube-api-access-885t5
658
+ readOnly: true
659
+ recursiveReadOnly: Disabled
660
+ hostIP: 172.18.0.2
661
+ hostIPs:
662
+ - ip: 172.18.0.2
663
+ phase: Running
664
+ podIP: 10.244.0.190
665
+ podIPs:
666
+ - ip: 10.244.0.190
667
+ qosClass: BestEffort
668
+ startTime: "2026-03-06T13:25:22Z"
669
+ kind: List
670
+ metadata:
671
+ resourceVersion: ""
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/pods/compliant-deployment-d68cdc45f-7f49h.yaml ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ kind: Pod
3
+ metadata:
4
+ creationTimestamp: '2026-03-06T13:25:20Z'
5
+ generateName: compliant-deployment-d68cdc45f-
6
+ labels:
7
+ app: compliant-web
8
+ compliance: 'true'
9
+ pod-template-hash: d68cdc45f
10
+ name: compliant-deployment-d68cdc45f-7f49h
11
+ namespace: k8s-opa-static-cis-527
12
+ ownerReferences:
13
+ - apiVersion: apps/v1
14
+ blockOwnerDeletion: true
15
+ controller: true
16
+ kind: ReplicaSet
17
+ name: compliant-deployment-d68cdc45f
18
+ uid: 132fd316-bde9-4353-8163-d50503d0aff9
19
+ resourceVersion: '3040160'
20
+ uid: d4282f1c-ee02-4a07-be65-6d069340d25d
21
+ spec:
22
+ containers:
23
+ - image: nginx:1.21
24
+ imagePullPolicy: IfNotPresent
25
+ name: web
26
+ ports:
27
+ - containerPort: 8080
28
+ protocol: TCP
29
+ resources: {}
30
+ securityContext:
31
+ allowPrivilegeEscalation: false
32
+ readOnlyRootFilesystem: false
33
+ runAsNonRoot: true
34
+ runAsUser: 1001
35
+ terminationMessagePath: /dev/termination-log
36
+ terminationMessagePolicy: File
37
+ volumeMounts:
38
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
39
+ name: kube-api-access-qgkxv
40
+ readOnly: true
41
+ dnsPolicy: ClusterFirst
42
+ enableServiceLinks: true
43
+ nodeName: kind-1-control-plane
44
+ preemptionPolicy: PreemptLowerPriority
45
+ priority: 0
46
+ restartPolicy: Always
47
+ schedulerName: default-scheduler
48
+ securityContext:
49
+ fsGroup: 1001
50
+ runAsNonRoot: true
51
+ runAsUser: 1001
52
+ serviceAccount: default
53
+ serviceAccountName: default
54
+ terminationGracePeriodSeconds: 30
55
+ tolerations:
56
+ - effect: NoExecute
57
+ key: node.kubernetes.io/not-ready
58
+ operator: Exists
59
+ tolerationSeconds: 300
60
+ - effect: NoExecute
61
+ key: node.kubernetes.io/unreachable
62
+ operator: Exists
63
+ tolerationSeconds: 300
64
+ volumes:
65
+ - name: kube-api-access-qgkxv
66
+ projected:
67
+ defaultMode: 420
68
+ sources:
69
+ - serviceAccountToken:
70
+ expirationSeconds: 3607
71
+ path: token
72
+ - configMap:
73
+ items:
74
+ - key: ca.crt
75
+ path: ca.crt
76
+ name: kube-root-ca.crt
77
+ - downwardAPI:
78
+ items:
79
+ - fieldRef:
80
+ apiVersion: v1
81
+ fieldPath: metadata.namespace
82
+ path: namespace
83
+ status:
84
+ conditions:
85
+ - lastProbeTime: null
86
+ lastTransitionTime: '2026-03-06T13:25:22Z'
87
+ status: 'True'
88
+ type: PodReadyToStartContainers
89
+ - lastProbeTime: null
90
+ lastTransitionTime: '2026-03-06T13:25:20Z'
91
+ status: 'True'
92
+ type: Initialized
93
+ - lastProbeTime: null
94
+ lastTransitionTime: '2026-03-06T13:25:20Z'
95
+ message: 'containers with unready status: [web]'
96
+ reason: ContainersNotReady
97
+ status: 'False'
98
+ type: Ready
99
+ - lastProbeTime: null
100
+ lastTransitionTime: '2026-03-06T13:25:20Z'
101
+ message: 'containers with unready status: [web]'
102
+ reason: ContainersNotReady
103
+ status: 'False'
104
+ type: ContainersReady
105
+ - lastProbeTime: null
106
+ lastTransitionTime: '2026-03-06T13:25:20Z'
107
+ status: 'True'
108
+ type: PodScheduled
109
+ containerStatuses:
110
+ - containerID: containerd://bec06defc9c8487a1f3d1c60df267206079dabc4738c18c4d07d2eca5e2ca663
111
+ image: docker.io/library/nginx:1.21
112
+ imageID: docker.io/library/nginx@sha256:2bcabc23b45489fb0885d69a06ba1d648aeda973fae7bb981bafbb884165e514
113
+ lastState:
114
+ terminated:
115
+ containerID: containerd://bec06defc9c8487a1f3d1c60df267206079dabc4738c18c4d07d2eca5e2ca663
116
+ exitCode: 1
117
+ finishedAt: '2026-03-06T13:25:22Z'
118
+ reason: Error
119
+ startedAt: '2026-03-06T13:25:22Z'
120
+ name: web
121
+ ready: false
122
+ restartCount: 1
123
+ started: false
124
+ state:
125
+ waiting:
126
+ message: back-off 10s restarting failed container=web pod=compliant-deployment-d68cdc45f-7f49h_k8s-opa-static-cis-527(d4282f1c-ee02-4a07-be65-6d069340d25d)
127
+ reason: CrashLoopBackOff
128
+ volumeMounts:
129
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
130
+ name: kube-api-access-qgkxv
131
+ readOnly: true
132
+ recursiveReadOnly: Disabled
133
+ hostIP: 172.18.0.2
134
+ hostIPs:
135
+ - ip: 172.18.0.2
136
+ phase: Running
137
+ podIP: 10.244.0.187
138
+ podIPs:
139
+ - ip: 10.244.0.187
140
+ qosClass: BestEffort
141
+ startTime: '2026-03-06T13:25:20Z'
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/pods/compliant-deployment-d68cdc45f-vjlv8.yaml ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ kind: Pod
3
+ metadata:
4
+ creationTimestamp: '2026-03-06T13:25:20Z'
5
+ generateName: compliant-deployment-d68cdc45f-
6
+ labels:
7
+ app: compliant-web
8
+ compliance: 'true'
9
+ pod-template-hash: d68cdc45f
10
+ name: compliant-deployment-d68cdc45f-vjlv8
11
+ namespace: k8s-opa-static-cis-527
12
+ ownerReferences:
13
+ - apiVersion: apps/v1
14
+ blockOwnerDeletion: true
15
+ controller: true
16
+ kind: ReplicaSet
17
+ name: compliant-deployment-d68cdc45f
18
+ uid: 132fd316-bde9-4353-8163-d50503d0aff9
19
+ resourceVersion: '3040161'
20
+ uid: 6aef204c-c44a-42a2-a378-312c85a980d0
21
+ spec:
22
+ containers:
23
+ - image: nginx:1.21
24
+ imagePullPolicy: IfNotPresent
25
+ name: web
26
+ ports:
27
+ - containerPort: 8080
28
+ protocol: TCP
29
+ resources: {}
30
+ securityContext:
31
+ allowPrivilegeEscalation: false
32
+ readOnlyRootFilesystem: false
33
+ runAsNonRoot: true
34
+ runAsUser: 1001
35
+ terminationMessagePath: /dev/termination-log
36
+ terminationMessagePolicy: File
37
+ volumeMounts:
38
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
39
+ name: kube-api-access-wdd6p
40
+ readOnly: true
41
+ dnsPolicy: ClusterFirst
42
+ enableServiceLinks: true
43
+ nodeName: kind-1-control-plane
44
+ preemptionPolicy: PreemptLowerPriority
45
+ priority: 0
46
+ restartPolicy: Always
47
+ schedulerName: default-scheduler
48
+ securityContext:
49
+ fsGroup: 1001
50
+ runAsNonRoot: true
51
+ runAsUser: 1001
52
+ serviceAccount: default
53
+ serviceAccountName: default
54
+ terminationGracePeriodSeconds: 30
55
+ tolerations:
56
+ - effect: NoExecute
57
+ key: node.kubernetes.io/not-ready
58
+ operator: Exists
59
+ tolerationSeconds: 300
60
+ - effect: NoExecute
61
+ key: node.kubernetes.io/unreachable
62
+ operator: Exists
63
+ tolerationSeconds: 300
64
+ volumes:
65
+ - name: kube-api-access-wdd6p
66
+ projected:
67
+ defaultMode: 420
68
+ sources:
69
+ - serviceAccountToken:
70
+ expirationSeconds: 3607
71
+ path: token
72
+ - configMap:
73
+ items:
74
+ - key: ca.crt
75
+ path: ca.crt
76
+ name: kube-root-ca.crt
77
+ - downwardAPI:
78
+ items:
79
+ - fieldRef:
80
+ apiVersion: v1
81
+ fieldPath: metadata.namespace
82
+ path: namespace
83
+ status:
84
+ conditions:
85
+ - lastProbeTime: null
86
+ lastTransitionTime: '2026-03-06T13:25:22Z'
87
+ status: 'True'
88
+ type: PodReadyToStartContainers
89
+ - lastProbeTime: null
90
+ lastTransitionTime: '2026-03-06T13:25:20Z'
91
+ status: 'True'
92
+ type: Initialized
93
+ - lastProbeTime: null
94
+ lastTransitionTime: '2026-03-06T13:25:20Z'
95
+ message: 'containers with unready status: [web]'
96
+ reason: ContainersNotReady
97
+ status: 'False'
98
+ type: Ready
99
+ - lastProbeTime: null
100
+ lastTransitionTime: '2026-03-06T13:25:20Z'
101
+ message: 'containers with unready status: [web]'
102
+ reason: ContainersNotReady
103
+ status: 'False'
104
+ type: ContainersReady
105
+ - lastProbeTime: null
106
+ lastTransitionTime: '2026-03-06T13:25:20Z'
107
+ status: 'True'
108
+ type: PodScheduled
109
+ containerStatuses:
110
+ - containerID: containerd://ec5e5bbb8d6449f23f7035bf7ad6275acf116e8781b78c6cf356a2224fe94020
111
+ image: docker.io/library/nginx:1.21
112
+ imageID: docker.io/library/nginx@sha256:2bcabc23b45489fb0885d69a06ba1d648aeda973fae7bb981bafbb884165e514
113
+ lastState:
114
+ terminated:
115
+ containerID: containerd://ec5e5bbb8d6449f23f7035bf7ad6275acf116e8781b78c6cf356a2224fe94020
116
+ exitCode: 1
117
+ finishedAt: '2026-03-06T13:25:22Z'
118
+ reason: Error
119
+ startedAt: '2026-03-06T13:25:22Z'
120
+ name: web
121
+ ready: false
122
+ restartCount: 1
123
+ started: false
124
+ state:
125
+ waiting:
126
+ message: back-off 10s restarting failed container=web pod=compliant-deployment-d68cdc45f-vjlv8_k8s-opa-static-cis-527(6aef204c-c44a-42a2-a378-312c85a980d0)
127
+ reason: CrashLoopBackOff
128
+ volumeMounts:
129
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
130
+ name: kube-api-access-wdd6p
131
+ readOnly: true
132
+ recursiveReadOnly: Disabled
133
+ hostIP: 172.18.0.2
134
+ hostIPs:
135
+ - ip: 172.18.0.2
136
+ phase: Running
137
+ podIP: 10.244.0.186
138
+ podIPs:
139
+ - ip: 10.244.0.186
140
+ qosClass: BestEffort
141
+ startTime: '2026-03-06T13:25:20Z'
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/pods/compliant-pod.yaml ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ kind: Pod
3
+ metadata:
4
+ annotations:
5
+ kubectl.kubernetes.io/last-applied-configuration: '{"apiVersion":"v1","kind":"Pod","metadata":{"annotations":{},"labels":{"app":"compliant-app","compliance":"true"},"name":"compliant-pod","namespace":"k8s-opa-static-cis-527"},"spec":{"containers":[{"image":"nginx:1.21","name":"app","ports":[{"containerPort":8080}],"securityContext":{"allowPrivilegeEscalation":false,"runAsNonRoot":true,"runAsUser":1000}}],"securityContext":{"runAsNonRoot":true,"runAsUser":1000}}}
6
+
7
+ '
8
+ creationTimestamp: '2026-03-06T13:25:21Z'
9
+ labels:
10
+ app: compliant-app
11
+ compliance: 'true'
12
+ name: compliant-pod
13
+ namespace: k8s-opa-static-cis-527
14
+ resourceVersion: '3040149'
15
+ uid: 4fd0313e-8a5b-4244-9d33-f93a60974be2
16
+ spec:
17
+ containers:
18
+ - image: nginx:1.21
19
+ imagePullPolicy: IfNotPresent
20
+ name: app
21
+ ports:
22
+ - containerPort: 8080
23
+ protocol: TCP
24
+ resources: {}
25
+ securityContext:
26
+ allowPrivilegeEscalation: false
27
+ runAsNonRoot: true
28
+ runAsUser: 1000
29
+ terminationMessagePath: /dev/termination-log
30
+ terminationMessagePolicy: File
31
+ volumeMounts:
32
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
33
+ name: kube-api-access-c7jzc
34
+ readOnly: true
35
+ dnsPolicy: ClusterFirst
36
+ enableServiceLinks: true
37
+ nodeName: kind-1-control-plane
38
+ preemptionPolicy: PreemptLowerPriority
39
+ priority: 0
40
+ restartPolicy: Always
41
+ schedulerName: default-scheduler
42
+ securityContext:
43
+ runAsNonRoot: true
44
+ runAsUser: 1000
45
+ serviceAccount: default
46
+ serviceAccountName: default
47
+ terminationGracePeriodSeconds: 30
48
+ tolerations:
49
+ - effect: NoExecute
50
+ key: node.kubernetes.io/not-ready
51
+ operator: Exists
52
+ tolerationSeconds: 300
53
+ - effect: NoExecute
54
+ key: node.kubernetes.io/unreachable
55
+ operator: Exists
56
+ tolerationSeconds: 300
57
+ volumes:
58
+ - name: kube-api-access-c7jzc
59
+ projected:
60
+ defaultMode: 420
61
+ sources:
62
+ - serviceAccountToken:
63
+ expirationSeconds: 3607
64
+ path: token
65
+ - configMap:
66
+ items:
67
+ - key: ca.crt
68
+ path: ca.crt
69
+ name: kube-root-ca.crt
70
+ - downwardAPI:
71
+ items:
72
+ - fieldRef:
73
+ apiVersion: v1
74
+ fieldPath: metadata.namespace
75
+ path: namespace
76
+ status:
77
+ conditions:
78
+ - lastProbeTime: null
79
+ lastTransitionTime: '2026-03-06T13:25:22Z'
80
+ status: 'True'
81
+ type: PodReadyToStartContainers
82
+ - lastProbeTime: null
83
+ lastTransitionTime: '2026-03-06T13:25:21Z'
84
+ status: 'True'
85
+ type: Initialized
86
+ - lastProbeTime: null
87
+ lastTransitionTime: '2026-03-06T13:25:21Z'
88
+ message: 'containers with unready status: [app]'
89
+ reason: ContainersNotReady
90
+ status: 'False'
91
+ type: Ready
92
+ - lastProbeTime: null
93
+ lastTransitionTime: '2026-03-06T13:25:21Z'
94
+ message: 'containers with unready status: [app]'
95
+ reason: ContainersNotReady
96
+ status: 'False'
97
+ type: ContainersReady
98
+ - lastProbeTime: null
99
+ lastTransitionTime: '2026-03-06T13:25:21Z'
100
+ status: 'True'
101
+ type: PodScheduled
102
+ containerStatuses:
103
+ - containerID: containerd://b95d913dd64556b4668c6d51bd7a0bca71c289951ac66778b8431e7b263d42de
104
+ image: docker.io/library/nginx:1.21
105
+ imageID: docker.io/library/nginx@sha256:2bcabc23b45489fb0885d69a06ba1d648aeda973fae7bb981bafbb884165e514
106
+ lastState:
107
+ terminated:
108
+ containerID: containerd://dc0afbe4c01a60c8a034affb3d7080eaa22c061d3f408be6e5cb435674876587
109
+ exitCode: 1
110
+ finishedAt: '2026-03-06T13:25:22Z'
111
+ reason: Error
112
+ startedAt: '2026-03-06T13:25:22Z'
113
+ name: app
114
+ ready: false
115
+ restartCount: 1
116
+ started: false
117
+ state:
118
+ terminated:
119
+ containerID: containerd://b95d913dd64556b4668c6d51bd7a0bca71c289951ac66778b8431e7b263d42de
120
+ exitCode: 1
121
+ finishedAt: '2026-03-06T13:25:22Z'
122
+ reason: Error
123
+ startedAt: '2026-03-06T13:25:22Z'
124
+ volumeMounts:
125
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
126
+ name: kube-api-access-c7jzc
127
+ readOnly: true
128
+ recursiveReadOnly: Disabled
129
+ hostIP: 172.18.0.2
130
+ hostIPs:
131
+ - ip: 172.18.0.2
132
+ phase: Running
133
+ podIP: 10.244.0.188
134
+ podIPs:
135
+ - ip: 10.244.0.188
136
+ qosClass: BestEffort
137
+ startTime: '2026-03-06T13:25:21Z'
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/pods/non-compliant-deployment-5d47d9867f-rwdql.yaml ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ kind: Pod
3
+ metadata:
4
+ creationTimestamp: '2026-03-06T13:25:22Z'
5
+ generateName: non-compliant-deployment-5d47d9867f-
6
+ labels:
7
+ app: non-compliant-web
8
+ compliance: 'false'
9
+ pod-template-hash: 5d47d9867f
10
+ name: non-compliant-deployment-5d47d9867f-rwdql
11
+ namespace: k8s-opa-static-cis-527
12
+ ownerReferences:
13
+ - apiVersion: apps/v1
14
+ blockOwnerDeletion: true
15
+ controller: true
16
+ kind: ReplicaSet
17
+ name: non-compliant-deployment-5d47d9867f
18
+ uid: c9619959-e552-40b4-97e9-35f25826334b
19
+ resourceVersion: '3040150'
20
+ uid: d28f5130-1d5d-4f29-bdba-ec41fcb640da
21
+ spec:
22
+ containers:
23
+ - image: nginx:1.21
24
+ imagePullPolicy: IfNotPresent
25
+ name: web
26
+ ports:
27
+ - containerPort: 80
28
+ protocol: TCP
29
+ resources: {}
30
+ securityContext:
31
+ runAsNonRoot: false
32
+ runAsUser: 0
33
+ terminationMessagePath: /dev/termination-log
34
+ terminationMessagePolicy: File
35
+ volumeMounts:
36
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
37
+ name: kube-api-access-5fvnw
38
+ readOnly: true
39
+ dnsPolicy: ClusterFirst
40
+ enableServiceLinks: true
41
+ nodeName: kind-1-control-plane
42
+ preemptionPolicy: PreemptLowerPriority
43
+ priority: 0
44
+ restartPolicy: Always
45
+ schedulerName: default-scheduler
46
+ securityContext:
47
+ runAsNonRoot: false
48
+ runAsUser: 0
49
+ serviceAccount: default
50
+ serviceAccountName: default
51
+ terminationGracePeriodSeconds: 30
52
+ tolerations:
53
+ - effect: NoExecute
54
+ key: node.kubernetes.io/not-ready
55
+ operator: Exists
56
+ tolerationSeconds: 300
57
+ - effect: NoExecute
58
+ key: node.kubernetes.io/unreachable
59
+ operator: Exists
60
+ tolerationSeconds: 300
61
+ volumes:
62
+ - name: kube-api-access-5fvnw
63
+ projected:
64
+ defaultMode: 420
65
+ sources:
66
+ - serviceAccountToken:
67
+ expirationSeconds: 3607
68
+ path: token
69
+ - configMap:
70
+ items:
71
+ - key: ca.crt
72
+ path: ca.crt
73
+ name: kube-root-ca.crt
74
+ - downwardAPI:
75
+ items:
76
+ - fieldRef:
77
+ apiVersion: v1
78
+ fieldPath: metadata.namespace
79
+ path: namespace
80
+ status:
81
+ conditions:
82
+ - lastProbeTime: null
83
+ lastTransitionTime: '2026-03-06T13:25:23Z'
84
+ status: 'True'
85
+ type: PodReadyToStartContainers
86
+ - lastProbeTime: null
87
+ lastTransitionTime: '2026-03-06T13:25:22Z'
88
+ status: 'True'
89
+ type: Initialized
90
+ - lastProbeTime: null
91
+ lastTransitionTime: '2026-03-06T13:25:23Z'
92
+ status: 'True'
93
+ type: Ready
94
+ - lastProbeTime: null
95
+ lastTransitionTime: '2026-03-06T13:25:23Z'
96
+ status: 'True'
97
+ type: ContainersReady
98
+ - lastProbeTime: null
99
+ lastTransitionTime: '2026-03-06T13:25:22Z'
100
+ status: 'True'
101
+ type: PodScheduled
102
+ containerStatuses:
103
+ - containerID: containerd://76963c731abaa51623a3b41deaa087bf110a485a3a98d0ebe95578ce3fa2d30b
104
+ image: docker.io/library/nginx:1.21
105
+ imageID: docker.io/library/nginx@sha256:2bcabc23b45489fb0885d69a06ba1d648aeda973fae7bb981bafbb884165e514
106
+ lastState: {}
107
+ name: web
108
+ ready: true
109
+ restartCount: 0
110
+ started: true
111
+ state:
112
+ running:
113
+ startedAt: '2026-03-06T13:25:23Z'
114
+ volumeMounts:
115
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
116
+ name: kube-api-access-5fvnw
117
+ readOnly: true
118
+ recursiveReadOnly: Disabled
119
+ hostIP: 172.18.0.2
120
+ hostIPs:
121
+ - ip: 172.18.0.2
122
+ phase: Running
123
+ podIP: 10.244.0.189
124
+ podIPs:
125
+ - ip: 10.244.0.189
126
+ qosClass: BestEffort
127
+ startTime: '2026-03-06T13:25:22Z'
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/pods/non-compliant-pod.yaml ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ kind: Pod
3
+ metadata:
4
+ annotations:
5
+ kubectl.kubernetes.io/last-applied-configuration: '{"apiVersion":"v1","kind":"Pod","metadata":{"annotations":{},"labels":{"app":"non-compliant-app","compliance":"false"},"name":"non-compliant-pod","namespace":"k8s-opa-static-cis-527"},"spec":{"containers":[{"image":"nginx:1.21","name":"app","ports":[{"containerPort":80}],"securityContext":{"runAsNonRoot":false,"runAsUser":0}}],"securityContext":{"runAsNonRoot":false,"runAsUser":0}}}
6
+
7
+ '
8
+ creationTimestamp: '2026-03-06T13:25:22Z'
9
+ labels:
10
+ app: non-compliant-app
11
+ compliance: 'false'
12
+ name: non-compliant-pod
13
+ namespace: k8s-opa-static-cis-527
14
+ resourceVersion: '3040158'
15
+ uid: 29475dba-9436-4864-985a-a37b6b059785
16
+ spec:
17
+ containers:
18
+ - image: nginx:1.21
19
+ imagePullPolicy: IfNotPresent
20
+ name: app
21
+ ports:
22
+ - containerPort: 80
23
+ protocol: TCP
24
+ resources: {}
25
+ securityContext:
26
+ runAsNonRoot: false
27
+ runAsUser: 0
28
+ terminationMessagePath: /dev/termination-log
29
+ terminationMessagePolicy: File
30
+ volumeMounts:
31
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
32
+ name: kube-api-access-885t5
33
+ readOnly: true
34
+ dnsPolicy: ClusterFirst
35
+ enableServiceLinks: true
36
+ nodeName: kind-1-control-plane
37
+ preemptionPolicy: PreemptLowerPriority
38
+ priority: 0
39
+ restartPolicy: Always
40
+ schedulerName: default-scheduler
41
+ securityContext:
42
+ runAsNonRoot: false
43
+ runAsUser: 0
44
+ serviceAccount: default
45
+ serviceAccountName: default
46
+ terminationGracePeriodSeconds: 30
47
+ tolerations:
48
+ - effect: NoExecute
49
+ key: node.kubernetes.io/not-ready
50
+ operator: Exists
51
+ tolerationSeconds: 300
52
+ - effect: NoExecute
53
+ key: node.kubernetes.io/unreachable
54
+ operator: Exists
55
+ tolerationSeconds: 300
56
+ volumes:
57
+ - name: kube-api-access-885t5
58
+ projected:
59
+ defaultMode: 420
60
+ sources:
61
+ - serviceAccountToken:
62
+ expirationSeconds: 3607
63
+ path: token
64
+ - configMap:
65
+ items:
66
+ - key: ca.crt
67
+ path: ca.crt
68
+ name: kube-root-ca.crt
69
+ - downwardAPI:
70
+ items:
71
+ - fieldRef:
72
+ apiVersion: v1
73
+ fieldPath: metadata.namespace
74
+ path: namespace
75
+ status:
76
+ conditions:
77
+ - lastProbeTime: null
78
+ lastTransitionTime: '2026-03-06T13:25:24Z'
79
+ status: 'True'
80
+ type: PodReadyToStartContainers
81
+ - lastProbeTime: null
82
+ lastTransitionTime: '2026-03-06T13:25:22Z'
83
+ status: 'True'
84
+ type: Initialized
85
+ - lastProbeTime: null
86
+ lastTransitionTime: '2026-03-06T13:25:24Z'
87
+ status: 'True'
88
+ type: Ready
89
+ - lastProbeTime: null
90
+ lastTransitionTime: '2026-03-06T13:25:24Z'
91
+ status: 'True'
92
+ type: ContainersReady
93
+ - lastProbeTime: null
94
+ lastTransitionTime: '2026-03-06T13:25:22Z'
95
+ status: 'True'
96
+ type: PodScheduled
97
+ containerStatuses:
98
+ - containerID: containerd://0146f881806b60fa441c22580830e16980f7e4bcae611becb5ab5e8f63cc77b6
99
+ image: docker.io/library/nginx:1.21
100
+ imageID: docker.io/library/nginx@sha256:2bcabc23b45489fb0885d69a06ba1d648aeda973fae7bb981bafbb884165e514
101
+ lastState: {}
102
+ name: app
103
+ ready: true
104
+ restartCount: 0
105
+ started: true
106
+ state:
107
+ running:
108
+ startedAt: '2026-03-06T13:25:23Z'
109
+ volumeMounts:
110
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
111
+ name: kube-api-access-885t5
112
+ readOnly: true
113
+ recursiveReadOnly: Disabled
114
+ hostIP: 172.18.0.2
115
+ hostIPs:
116
+ - ip: 172.18.0.2
117
+ phase: Running
118
+ podIP: 10.244.0.190
119
+ podIPs:
120
+ - ip: 10.244.0.190
121
+ qosClass: BestEffort
122
+ startTime: '2026-03-06T13:25:22Z'
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/replicasets-all.yaml ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ items:
3
+ - apiVersion: apps/v1
4
+ kind: ReplicaSet
5
+ metadata:
6
+ annotations:
7
+ deployment.kubernetes.io/desired-replicas: "2"
8
+ deployment.kubernetes.io/max-replicas: "3"
9
+ deployment.kubernetes.io/revision: "1"
10
+ creationTimestamp: "2026-03-06T13:25:20Z"
11
+ generation: 1
12
+ labels:
13
+ app: compliant-web
14
+ compliance: "true"
15
+ pod-template-hash: d68cdc45f
16
+ name: compliant-deployment-d68cdc45f
17
+ namespace: k8s-opa-static-cis-527
18
+ ownerReferences:
19
+ - apiVersion: apps/v1
20
+ blockOwnerDeletion: true
21
+ controller: true
22
+ kind: Deployment
23
+ name: compliant-deployment
24
+ uid: f2f00453-6f18-4415-a6ac-6c1dd5d08db9
25
+ resourceVersion: "3040081"
26
+ uid: 132fd316-bde9-4353-8163-d50503d0aff9
27
+ spec:
28
+ replicas: 2
29
+ selector:
30
+ matchLabels:
31
+ app: compliant-web
32
+ pod-template-hash: d68cdc45f
33
+ template:
34
+ metadata:
35
+ creationTimestamp: null
36
+ labels:
37
+ app: compliant-web
38
+ compliance: "true"
39
+ pod-template-hash: d68cdc45f
40
+ spec:
41
+ containers:
42
+ - image: nginx:1.21
43
+ imagePullPolicy: IfNotPresent
44
+ name: web
45
+ ports:
46
+ - containerPort: 8080
47
+ protocol: TCP
48
+ resources: {}
49
+ securityContext:
50
+ allowPrivilegeEscalation: false
51
+ readOnlyRootFilesystem: false
52
+ runAsNonRoot: true
53
+ runAsUser: 1001
54
+ terminationMessagePath: /dev/termination-log
55
+ terminationMessagePolicy: File
56
+ dnsPolicy: ClusterFirst
57
+ restartPolicy: Always
58
+ schedulerName: default-scheduler
59
+ securityContext:
60
+ fsGroup: 1001
61
+ runAsNonRoot: true
62
+ runAsUser: 1001
63
+ terminationGracePeriodSeconds: 30
64
+ status:
65
+ fullyLabeledReplicas: 2
66
+ observedGeneration: 1
67
+ replicas: 2
68
+ - apiVersion: apps/v1
69
+ kind: ReplicaSet
70
+ metadata:
71
+ annotations:
72
+ deployment.kubernetes.io/desired-replicas: "1"
73
+ deployment.kubernetes.io/max-replicas: "2"
74
+ deployment.kubernetes.io/revision: "1"
75
+ creationTimestamp: "2026-03-06T13:25:22Z"
76
+ generation: 1
77
+ labels:
78
+ app: non-compliant-web
79
+ compliance: "false"
80
+ pod-template-hash: 5d47d9867f
81
+ name: non-compliant-deployment-5d47d9867f
82
+ namespace: k8s-opa-static-cis-527
83
+ ownerReferences:
84
+ - apiVersion: apps/v1
85
+ blockOwnerDeletion: true
86
+ controller: true
87
+ kind: Deployment
88
+ name: non-compliant-deployment
89
+ uid: b9f4981c-2a6e-420e-a30c-4298a6af3a4c
90
+ resourceVersion: "3040151"
91
+ uid: c9619959-e552-40b4-97e9-35f25826334b
92
+ spec:
93
+ replicas: 1
94
+ selector:
95
+ matchLabels:
96
+ app: non-compliant-web
97
+ pod-template-hash: 5d47d9867f
98
+ template:
99
+ metadata:
100
+ creationTimestamp: null
101
+ labels:
102
+ app: non-compliant-web
103
+ compliance: "false"
104
+ pod-template-hash: 5d47d9867f
105
+ spec:
106
+ containers:
107
+ - image: nginx:1.21
108
+ imagePullPolicy: IfNotPresent
109
+ name: web
110
+ ports:
111
+ - containerPort: 80
112
+ protocol: TCP
113
+ resources: {}
114
+ securityContext:
115
+ runAsNonRoot: false
116
+ runAsUser: 0
117
+ terminationMessagePath: /dev/termination-log
118
+ terminationMessagePolicy: File
119
+ dnsPolicy: ClusterFirst
120
+ restartPolicy: Always
121
+ schedulerName: default-scheduler
122
+ securityContext:
123
+ runAsNonRoot: false
124
+ runAsUser: 0
125
+ terminationGracePeriodSeconds: 30
126
+ status:
127
+ availableReplicas: 1
128
+ fullyLabeledReplicas: 1
129
+ observedGeneration: 1
130
+ readyReplicas: 1
131
+ replicas: 1
132
+ kind: List
133
+ metadata:
134
+ resourceVersion: ""
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/replicasets/compliant-deployment-d68cdc45f.yaml ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: apps/v1
2
+ kind: ReplicaSet
3
+ metadata:
4
+ annotations:
5
+ deployment.kubernetes.io/desired-replicas: '2'
6
+ deployment.kubernetes.io/max-replicas: '3'
7
+ deployment.kubernetes.io/revision: '1'
8
+ creationTimestamp: '2026-03-06T13:25:20Z'
9
+ generation: 1
10
+ labels:
11
+ app: compliant-web
12
+ compliance: 'true'
13
+ pod-template-hash: d68cdc45f
14
+ name: compliant-deployment-d68cdc45f
15
+ namespace: k8s-opa-static-cis-527
16
+ ownerReferences:
17
+ - apiVersion: apps/v1
18
+ blockOwnerDeletion: true
19
+ controller: true
20
+ kind: Deployment
21
+ name: compliant-deployment
22
+ uid: f2f00453-6f18-4415-a6ac-6c1dd5d08db9
23
+ resourceVersion: '3040081'
24
+ uid: 132fd316-bde9-4353-8163-d50503d0aff9
25
+ spec:
26
+ replicas: 2
27
+ selector:
28
+ matchLabels:
29
+ app: compliant-web
30
+ pod-template-hash: d68cdc45f
31
+ template:
32
+ metadata:
33
+ creationTimestamp: null
34
+ labels:
35
+ app: compliant-web
36
+ compliance: 'true'
37
+ pod-template-hash: d68cdc45f
38
+ spec:
39
+ containers:
40
+ - image: nginx:1.21
41
+ imagePullPolicy: IfNotPresent
42
+ name: web
43
+ ports:
44
+ - containerPort: 8080
45
+ protocol: TCP
46
+ resources: {}
47
+ securityContext:
48
+ allowPrivilegeEscalation: false
49
+ readOnlyRootFilesystem: false
50
+ runAsNonRoot: true
51
+ runAsUser: 1001
52
+ terminationMessagePath: /dev/termination-log
53
+ terminationMessagePolicy: File
54
+ dnsPolicy: ClusterFirst
55
+ restartPolicy: Always
56
+ schedulerName: default-scheduler
57
+ securityContext:
58
+ fsGroup: 1001
59
+ runAsNonRoot: true
60
+ runAsUser: 1001
61
+ terminationGracePeriodSeconds: 30
62
+ status:
63
+ fullyLabeledReplicas: 2
64
+ observedGeneration: 1
65
+ replicas: 2
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/replicasets/non-compliant-deployment-5d47d9867f.yaml ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: apps/v1
2
+ kind: ReplicaSet
3
+ metadata:
4
+ annotations:
5
+ deployment.kubernetes.io/desired-replicas: '1'
6
+ deployment.kubernetes.io/max-replicas: '2'
7
+ deployment.kubernetes.io/revision: '1'
8
+ creationTimestamp: '2026-03-06T13:25:22Z'
9
+ generation: 1
10
+ labels:
11
+ app: non-compliant-web
12
+ compliance: 'false'
13
+ pod-template-hash: 5d47d9867f
14
+ name: non-compliant-deployment-5d47d9867f
15
+ namespace: k8s-opa-static-cis-527
16
+ ownerReferences:
17
+ - apiVersion: apps/v1
18
+ blockOwnerDeletion: true
19
+ controller: true
20
+ kind: Deployment
21
+ name: non-compliant-deployment
22
+ uid: b9f4981c-2a6e-420e-a30c-4298a6af3a4c
23
+ resourceVersion: '3040151'
24
+ uid: c9619959-e552-40b4-97e9-35f25826334b
25
+ spec:
26
+ replicas: 1
27
+ selector:
28
+ matchLabels:
29
+ app: non-compliant-web
30
+ pod-template-hash: 5d47d9867f
31
+ template:
32
+ metadata:
33
+ creationTimestamp: null
34
+ labels:
35
+ app: non-compliant-web
36
+ compliance: 'false'
37
+ pod-template-hash: 5d47d9867f
38
+ spec:
39
+ containers:
40
+ - image: nginx:1.21
41
+ imagePullPolicy: IfNotPresent
42
+ name: web
43
+ ports:
44
+ - containerPort: 80
45
+ protocol: TCP
46
+ resources: {}
47
+ securityContext:
48
+ runAsNonRoot: false
49
+ runAsUser: 0
50
+ terminationMessagePath: /dev/termination-log
51
+ terminationMessagePolicy: File
52
+ dnsPolicy: ClusterFirst
53
+ restartPolicy: Always
54
+ schedulerName: default-scheduler
55
+ securityContext:
56
+ runAsNonRoot: false
57
+ runAsUser: 0
58
+ terminationGracePeriodSeconds: 30
59
+ status:
60
+ availableReplicas: 1
61
+ fullyLabeledReplicas: 1
62
+ observedGeneration: 1
63
+ readyReplicas: 1
64
+ replicas: 1
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/rolebindings-all.yaml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ items:
3
+ - apiVersion: rbac.authorization.k8s.io/v1
4
+ kind: RoleBinding
5
+ metadata:
6
+ annotations:
7
+ kubectl.kubernetes.io/last-applied-configuration: |
8
+ {"apiVersion":"rbac.authorization.k8s.io/v1","kind":"RoleBinding","metadata":{"annotations":{},"name":"test-rolebinding","namespace":"k8s-opa-static-cis-527"},"roleRef":{"apiGroup":"rbac.authorization.k8s.io","kind":"Role","name":"test-role"},"subjects":[{"kind":"ServiceAccount","name":"test-serviceaccount","namespace":"k8s-opa-static-cis-527"}]}
9
+ creationTimestamp: "2026-03-06T13:25:24Z"
10
+ name: test-rolebinding
11
+ namespace: k8s-opa-static-cis-527
12
+ resourceVersion: "3040155"
13
+ uid: 42b25640-8050-40e4-ac83-b84f8699afc0
14
+ roleRef:
15
+ apiGroup: rbac.authorization.k8s.io
16
+ kind: Role
17
+ name: test-role
18
+ subjects:
19
+ - kind: ServiceAccount
20
+ name: test-serviceaccount
21
+ namespace: k8s-opa-static-cis-527
22
+ kind: List
23
+ metadata:
24
+ resourceVersion: ""
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/rolebindings/test-rolebinding.yaml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: rbac.authorization.k8s.io/v1
2
+ kind: RoleBinding
3
+ metadata:
4
+ annotations:
5
+ kubectl.kubernetes.io/last-applied-configuration: '{"apiVersion":"rbac.authorization.k8s.io/v1","kind":"RoleBinding","metadata":{"annotations":{},"name":"test-rolebinding","namespace":"k8s-opa-static-cis-527"},"roleRef":{"apiGroup":"rbac.authorization.k8s.io","kind":"Role","name":"test-role"},"subjects":[{"kind":"ServiceAccount","name":"test-serviceaccount","namespace":"k8s-opa-static-cis-527"}]}
6
+
7
+ '
8
+ creationTimestamp: '2026-03-06T13:25:24Z'
9
+ name: test-rolebinding
10
+ namespace: k8s-opa-static-cis-527
11
+ resourceVersion: '3040155'
12
+ uid: 42b25640-8050-40e4-ac83-b84f8699afc0
13
+ roleRef:
14
+ apiGroup: rbac.authorization.k8s.io
15
+ kind: Role
16
+ name: test-role
17
+ subjects:
18
+ - kind: ServiceAccount
19
+ name: test-serviceaccount
20
+ namespace: k8s-opa-static-cis-527
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/roles-all.yaml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ items:
3
+ - apiVersion: rbac.authorization.k8s.io/v1
4
+ kind: Role
5
+ metadata:
6
+ annotations:
7
+ kubectl.kubernetes.io/last-applied-configuration: |
8
+ {"apiVersion":"rbac.authorization.k8s.io/v1","kind":"Role","metadata":{"annotations":{},"name":"test-role","namespace":"k8s-opa-static-cis-527"},"rules":[{"apiGroups":[""],"resources":["pods"],"verbs":["get","watch","list"]},{"apiGroups":["apps"],"resources":["deployments"],"verbs":["get","list"]}]}
9
+ creationTimestamp: "2026-03-06T13:25:23Z"
10
+ name: test-role
11
+ namespace: k8s-opa-static-cis-527
12
+ resourceVersion: "3040146"
13
+ uid: 550f48db-3703-4cc1-a8cc-cc6a23d1c02c
14
+ rules:
15
+ - apiGroups:
16
+ - ""
17
+ resources:
18
+ - pods
19
+ verbs:
20
+ - get
21
+ - watch
22
+ - list
23
+ - apiGroups:
24
+ - apps
25
+ resources:
26
+ - deployments
27
+ verbs:
28
+ - get
29
+ - list
30
+ kind: List
31
+ metadata:
32
+ resourceVersion: ""
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/roles/test-role.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: rbac.authorization.k8s.io/v1
2
+ kind: Role
3
+ metadata:
4
+ annotations:
5
+ kubectl.kubernetes.io/last-applied-configuration: '{"apiVersion":"rbac.authorization.k8s.io/v1","kind":"Role","metadata":{"annotations":{},"name":"test-role","namespace":"k8s-opa-static-cis-527"},"rules":[{"apiGroups":[""],"resources":["pods"],"verbs":["get","watch","list"]},{"apiGroups":["apps"],"resources":["deployments"],"verbs":["get","list"]}]}
6
+
7
+ '
8
+ creationTimestamp: '2026-03-06T13:25:23Z'
9
+ name: test-role
10
+ namespace: k8s-opa-static-cis-527
11
+ resourceVersion: '3040146'
12
+ uid: 550f48db-3703-4cc1-a8cc-cc6a23d1c02c
13
+ rules:
14
+ - apiGroups:
15
+ - ''
16
+ resources:
17
+ - pods
18
+ verbs:
19
+ - get
20
+ - watch
21
+ - list
22
+ - apiGroups:
23
+ - apps
24
+ resources:
25
+ - deployments
26
+ verbs:
27
+ - get
28
+ - list
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/serviceaccounts-all.yaml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ items:
3
+ - apiVersion: v1
4
+ kind: ServiceAccount
5
+ metadata:
6
+ creationTimestamp: "2026-03-06T13:24:25Z"
7
+ name: default
8
+ namespace: k8s-opa-static-cis-527
9
+ resourceVersion: "3039880"
10
+ uid: b30a18f0-3d1c-4ea9-9cf9-d215c07c63c4
11
+ - apiVersion: v1
12
+ kind: ServiceAccount
13
+ metadata:
14
+ annotations:
15
+ kubectl.kubernetes.io/last-applied-configuration: |
16
+ {"apiVersion":"v1","kind":"ServiceAccount","metadata":{"annotations":{},"labels":{"app":"test-app"},"name":"test-serviceaccount","namespace":"k8s-opa-static-cis-527"}}
17
+ creationTimestamp: "2026-03-06T13:25:25Z"
18
+ labels:
19
+ app: test-app
20
+ name: test-serviceaccount
21
+ namespace: k8s-opa-static-cis-527
22
+ resourceVersion: "3040171"
23
+ uid: 3cf3e700-7722-46a1-9d79-8e8459905130
24
+ kind: List
25
+ metadata:
26
+ resourceVersion: ""
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/serviceaccounts/default.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ kind: ServiceAccount
3
+ metadata:
4
+ creationTimestamp: '2026-03-06T13:24:25Z'
5
+ name: default
6
+ namespace: k8s-opa-static-cis-527
7
+ resourceVersion: '3039880'
8
+ uid: b30a18f0-3d1c-4ea9-9cf9-d215c07c63c4
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/serviceaccounts/test-serviceaccount.yaml ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ kind: ServiceAccount
3
+ metadata:
4
+ annotations:
5
+ kubectl.kubernetes.io/last-applied-configuration: '{"apiVersion":"v1","kind":"ServiceAccount","metadata":{"annotations":{},"labels":{"app":"test-app"},"name":"test-serviceaccount","namespace":"k8s-opa-static-cis-527"}}
6
+
7
+ '
8
+ creationTimestamp: '2026-03-06T13:25:25Z'
9
+ labels:
10
+ app: test-app
11
+ name: test-serviceaccount
12
+ namespace: k8s-opa-static-cis-527
13
+ resourceVersion: '3040171'
14
+ uid: 3cf3e700-7722-46a1-9d79-8e8459905130
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/services-all.yaml ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ items:
3
+ - apiVersion: v1
4
+ kind: Service
5
+ metadata:
6
+ annotations:
7
+ kubectl.kubernetes.io/last-applied-configuration: |
8
+ {"apiVersion":"v1","kind":"Service","metadata":{"annotations":{},"labels":{"app":"test-app"},"name":"test-service","namespace":"k8s-opa-static-cis-527"},"spec":{"ports":[{"name":"http","port":80,"protocol":"TCP","targetPort":8080}],"selector":{"app":"compliant-web"},"type":"ClusterIP"}}
9
+ creationTimestamp: "2026-03-06T13:25:24Z"
10
+ labels:
11
+ app: test-app
12
+ name: test-service
13
+ namespace: k8s-opa-static-cis-527
14
+ resourceVersion: "3040163"
15
+ uid: f0531e47-f817-49e0-8697-8f72d697de27
16
+ spec:
17
+ clusterIP: 10.96.180.15
18
+ clusterIPs:
19
+ - 10.96.180.15
20
+ internalTrafficPolicy: Cluster
21
+ ipFamilies:
22
+ - IPv4
23
+ ipFamilyPolicy: SingleStack
24
+ ports:
25
+ - name: http
26
+ port: 80
27
+ protocol: TCP
28
+ targetPort: 8080
29
+ selector:
30
+ app: compliant-web
31
+ sessionAffinity: None
32
+ type: ClusterIP
33
+ status:
34
+ loadBalancer: {}
35
+ kind: List
36
+ metadata:
37
+ resourceVersion: ""
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.7/static-resources/services/test-service.yaml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ kind: Service
3
+ metadata:
4
+ annotations:
5
+ kubectl.kubernetes.io/last-applied-configuration: '{"apiVersion":"v1","kind":"Service","metadata":{"annotations":{},"labels":{"app":"test-app"},"name":"test-service","namespace":"k8s-opa-static-cis-527"},"spec":{"ports":[{"name":"http","port":80,"protocol":"TCP","targetPort":8080}],"selector":{"app":"compliant-web"},"type":"ClusterIP"}}
6
+
7
+ '
8
+ creationTimestamp: '2026-03-06T13:25:24Z'
9
+ labels:
10
+ app: test-app
11
+ name: test-service
12
+ namespace: k8s-opa-static-cis-527
13
+ resourceVersion: '3040163'
14
+ uid: f0531e47-f817-49e0-8697-8f72d697de27
15
+ spec:
16
+ clusterIP: 10.96.180.15
17
+ clusterIPs:
18
+ - 10.96.180.15
19
+ internalTrafficPolicy: Cluster
20
+ ipFamilies:
21
+ - IPv4
22
+ ipFamilyPolicy: SingleStack
23
+ ports:
24
+ - name: http
25
+ port: 80
26
+ protocol: TCP
27
+ targetPort: 8080
28
+ selector:
29
+ app: compliant-web
30
+ sessionAffinity: None
31
+ type: ClusterIP
32
+ status:
33
+ loadBalancer: {}
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.8/ground-truth/fetch.sh ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ # Initialize JSON structure
5
+ echo '{"items": []}' > collected_data.json
6
+
7
+ # Function to process YAML files and extract container specs
8
+ process_yaml_files() {
9
+ local resource_type="$1"
10
+ local dir_path="./static-resources/$resource_type"
11
+
12
+ if [[ -d "$dir_path" ]]; then
13
+ for file in "$dir_path"/*.yaml; do
14
+ if [[ -f "$file" ]]; then
15
+ # Extract containers from pods or pod templates
16
+ python3 -c "
17
+ import yaml, json, sys
18
+
19
+ with open('$file', 'r') as f:
20
+ resource = yaml.safe_load(f)
21
+
22
+ result = {'kind': resource.get('kind', ''), 'metadata': resource.get('metadata', {}), 'containers': []}
23
+
24
+ # Extract containers based on resource type
25
+ if resource.get('kind') == 'Pod':
26
+ result['containers'] = resource.get('spec', {}).get('containers', [])
27
+ elif resource.get('kind') in ['Deployment', 'ReplicaSet']:
28
+ result['containers'] = resource.get('spec', {}).get('template', {}).get('spec', {}).get('containers', [])
29
+
30
+ # Only include if containers exist
31
+ if result['containers']:
32
+ with open('collected_data.json', 'r') as f:
33
+ data = json.load(f)
34
+ data['items'].append(result)
35
+ with open('collected_data.json', 'w') as f:
36
+ json.dump(data, f, indent=2)
37
+ "
38
+ fi
39
+ done
40
+ fi
41
+ }
42
+
43
+ # Process all resource types that might contain container specs
44
+ process_yaml_files "pods"
45
+ process_yaml_files "deployments"
46
+ process_yaml_files "replicasets"
47
+
48
+ echo "Resource extraction completed. Found $(jq '.items | length' collected_data.json) resources with containers."
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.8/ground-truth/policy.rego ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ package check
2
+
3
+ import rego.v1
4
+
5
+ # Check if any container has NET_RAW capability
6
+ has_net_raw_violation if {
7
+ some item in input.items
8
+ some container in item.containers
9
+ some cap in container.securityContext.capabilities.add
10
+ cap == "NET_RAW"
11
+ }
12
+
13
+ # Result is false if violations exist, true if compliant
14
+ result := false if has_net_raw_violation
15
+ default result := true
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.8/problem.md ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NET_RAW Capability Compliance Analysis
2
+
3
+ ## Objective
4
+ Analyze Kubernetes resources to detect containers that use the NET_RAW capability, which should be prohibited according to security compliance requirements.
5
+
6
+ ## Requirements
7
+ Create tools to identify containers with NET_RAW capability violations:
8
+
9
+ ### 1. Resource Collection
10
+ - Analyze the provided Kubernetes resource files in the directory: `./static-resources`
11
+ - Extract relevant information about container security contexts and capabilities
12
+ - Focus on container specifications that may include security context settings
13
+
14
+ ### 2. Compliance Detection
15
+ - Identify containers that have `NET_RAW` capability in their security context
16
+ - The violation occurs when `NET_RAW` is present in `securityContext.capabilities.add`
17
+ - Create a policy to evaluate compliance with this security requirement
18
+
19
+ ## Environment Information
20
+ - Static resource directory: `./static-resources`
21
+ - Resources include various Kubernetes objects (Pods, Deployments, etc.)
22
+ - All resources are from a single namespace scope
23
+
24
+ ## Expected Deliverables
25
+ Create two files in the current working directory:
26
+
27
+ 1. **fetch.sh**: A script that collects and processes the resource data
28
+ - Should output data in JSON format to a file named `collected_data.json`
29
+ - Must be executable
30
+
31
+ 2. **policy.rego**: An OPA (Open Policy Agent) policy file
32
+ - Should use package name `check`
33
+ - Must provide a boolean result field named `result`
34
+ - Return `false` when NET_RAW capability violations are found
35
+ - Return `true` when no violations exist
36
+
37
+ ## Expected Behavior
38
+ The system should be able to:
39
+ - Process the static resources to extract container security information
40
+ - Evaluate whether any containers have prohibited NET_RAW capabilities
41
+ - Provide clear true/false compliance results through the OPA policy
42
+
43
+ When violations exist, the policy should return `false`. When all containers are compliant (no NET_RAW capabilities), the policy should return `true`.
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.8/static-resources-compliant/configmaps/kube-root-ca.crt.yaml ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ data:
3
+ ca.crt: '-----BEGIN CERTIFICATE-----
4
+
5
+ MIIDBTCCAe2gAwIBAgIIUAOla/7ups4wDQYJKoZIhvcNAQELBQAwFTETMBEGA1UE
6
+
7
+ AxMKa3ViZXJuZXRlczAeFw0yNjAyMjQwNTQzMTVaFw0zNjAyMjIwNTQ4MTVaMBUx
8
+
9
+ EzARBgNVBAMTCmt1YmVybmV0ZXMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK
10
+
11
+ AoIBAQDQZNy0hQ3zl5/RVSHLpdu6fvGiGqQPGHujHphY3B7kcKmE6G7gSWQfIWzp
12
+
13
+ HsFQ2vXRGHfhS5rJDAwPAiEEIoWz7FN+ibpvjyj91NNidHP4LrDVZyhJHFxjB2Lw
14
+
15
+ xy1Mw6ok5ZONsHZ7KcW6pKonSM176tzktiirNbFFcaTc02xFyWEbuyrXbSm9NraX
16
+
17
+ dw5q9bfPjJXAyy9o3Ymh5TGpFmU/OpLpcpiZqQ6uPNHaU63T8qevGQccj5YFo7IG
18
+
19
+ TLOxI3DSNseuafzVnmVmU4Wo7gVdnsKcSlP9hZSBlmV70BGsLmyGmu5r9cQhWJq3
20
+
21
+ Ce1/LyEI6qAx74GvGX1G3VIB7nrfAgMBAAGjWTBXMA4GA1UdDwEB/wQEAwICpDAP
22
+
23
+ BgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTQA7DAIo8ti8JuvwZD2Z2n53xQRzAV
24
+
25
+ BgNVHREEDjAMggprdWJlcm5ldGVzMA0GCSqGSIb3DQEBCwUAA4IBAQCxUrhLUzvk
26
+
27
+ CMeO295/IESvdLCHXhfVZDQO3xZQtrFAjlOl6MBuhN+6aucRBbu/RY9vo81nG7Ra
28
+
29
+ 8rixgCh2NkQfggMloKWGXzlD9XGBokmf41tF+zr3RbBQaBmyKCv/CSt/Q6j0dibN
30
+
31
+ +2T6za09YoYY2unAnuP6fdJvbdAPPU9h6DchFGvzG7WtUbZEa+ueQ1O6VOfgVHLX
32
+
33
+ dL1Mva85Q02flEr2mj2YxYfODgOvN/SEccb7nKR7rhbGItupb8T88y8MZjPFvnp5
34
+
35
+ 3yG4gmIDnJDx+mcM978zEyyzDwniGL5GHCZMhBOP6ZLbv3j8klVXJbbFeFi4GD2g
36
+
37
+ Ck+42sANlYhq
38
+
39
+ -----END CERTIFICATE-----
40
+
41
+ '
42
+ kind: ConfigMap
43
+ metadata:
44
+ annotations:
45
+ kubernetes.io/description: Contains a CA bundle that can be used to verify the
46
+ kube-apiserver when using internal endpoints such as the internal service IP
47
+ or kubernetes.default.svc. No other usage is guaranteed across distributions
48
+ of Kubernetes clusters.
49
+ name: kube-root-ca.crt
50
+ namespace: k8s-opa-static-cis-528
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.8/static-resources-compliant/deployments/compliant-deployment.yaml ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: apps/v1
2
+ kind: Deployment
3
+ metadata:
4
+ annotations:
5
+ deployment.kubernetes.io/revision: '1'
6
+ kubectl.kubernetes.io/last-applied-configuration: '{"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"labels":{"app":"compliant-deployment"},"name":"compliant-deployment","namespace":"k8s-opa-static-cis-528"},"spec":{"replicas":2,"selector":{"matchLabels":{"app":"compliant-deployment"}},"template":{"metadata":{"labels":{"app":"compliant-deployment"}},"spec":{"containers":[{"image":"nginx:1.20","name":"nginx","securityContext":{"capabilities":{"add":["NET_BIND_SERVICE"],"drop":["ALL"]}}}]}}}}
7
+
8
+ '
9
+ labels:
10
+ app: compliant-deployment
11
+ name: compliant-deployment
12
+ namespace: k8s-opa-static-cis-528
13
+ spec:
14
+ progressDeadlineSeconds: 600
15
+ replicas: 2
16
+ revisionHistoryLimit: 10
17
+ selector:
18
+ matchLabels:
19
+ app: compliant-deployment
20
+ strategy:
21
+ rollingUpdate:
22
+ maxSurge: 25%
23
+ maxUnavailable: 25%
24
+ type: RollingUpdate
25
+ template:
26
+ metadata:
27
+ creationTimestamp: null
28
+ labels:
29
+ app: compliant-deployment
30
+ spec:
31
+ containers:
32
+ - image: nginx:1.20
33
+ imagePullPolicy: IfNotPresent
34
+ name: nginx
35
+ resources: {}
36
+ securityContext:
37
+ capabilities:
38
+ add:
39
+ - NET_BIND_SERVICE
40
+ drop:
41
+ - ALL
42
+ terminationMessagePath: /dev/termination-log
43
+ terminationMessagePolicy: File
44
+ dnsPolicy: ClusterFirst
45
+ restartPolicy: Always
46
+ schedulerName: default-scheduler
47
+ securityContext: {}
48
+ terminationGracePeriodSeconds: 30
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.8/static-resources-compliant/pods/compliant-deployment-6f95c6c87c-9f4bc.yaml ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ kind: Pod
3
+ metadata:
4
+ generateName: compliant-deployment-6f95c6c87c-
5
+ labels:
6
+ app: compliant-deployment
7
+ pod-template-hash: 6f95c6c87c
8
+ name: compliant-deployment-6f95c6c87c-9f4bc
9
+ namespace: k8s-opa-static-cis-528
10
+ ownerReferences:
11
+ - apiVersion: apps/v1
12
+ blockOwnerDeletion: true
13
+ controller: true
14
+ kind: ReplicaSet
15
+ name: compliant-deployment-6f95c6c87c
16
+ uid: 9f754993-6b10-44b8-bb57-cd75fb6b796e
17
+ spec:
18
+ containers:
19
+ - image: nginx:1.20
20
+ imagePullPolicy: IfNotPresent
21
+ name: nginx
22
+ resources: {}
23
+ securityContext:
24
+ capabilities:
25
+ add:
26
+ - NET_BIND_SERVICE
27
+ drop:
28
+ - ALL
29
+ terminationMessagePath: /dev/termination-log
30
+ terminationMessagePolicy: File
31
+ volumeMounts:
32
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
33
+ name: kube-api-access-w8k58
34
+ readOnly: true
35
+ dnsPolicy: ClusterFirst
36
+ enableServiceLinks: true
37
+ nodeName: kind-1-control-plane
38
+ preemptionPolicy: PreemptLowerPriority
39
+ priority: 0
40
+ restartPolicy: Always
41
+ schedulerName: default-scheduler
42
+ securityContext: {}
43
+ serviceAccount: default
44
+ serviceAccountName: default
45
+ terminationGracePeriodSeconds: 30
46
+ tolerations:
47
+ - effect: NoExecute
48
+ key: node.kubernetes.io/not-ready
49
+ operator: Exists
50
+ tolerationSeconds: 300
51
+ - effect: NoExecute
52
+ key: node.kubernetes.io/unreachable
53
+ operator: Exists
54
+ tolerationSeconds: 300
55
+ volumes:
56
+ - name: kube-api-access-w8k58
57
+ projected:
58
+ defaultMode: 420
59
+ sources:
60
+ - serviceAccountToken:
61
+ expirationSeconds: 3607
62
+ path: token
63
+ - configMap:
64
+ items:
65
+ - key: ca.crt
66
+ path: ca.crt
67
+ name: kube-root-ca.crt
68
+ - downwardAPI:
69
+ items:
70
+ - fieldRef:
71
+ apiVersion: v1
72
+ fieldPath: metadata.namespace
73
+ path: namespace
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.8/static-resources-compliant/pods/compliant-deployment-6f95c6c87c-hwvlj.yaml ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ kind: Pod
3
+ metadata:
4
+ generateName: compliant-deployment-6f95c6c87c-
5
+ labels:
6
+ app: compliant-deployment
7
+ pod-template-hash: 6f95c6c87c
8
+ name: compliant-deployment-6f95c6c87c-hwvlj
9
+ namespace: k8s-opa-static-cis-528
10
+ ownerReferences:
11
+ - apiVersion: apps/v1
12
+ blockOwnerDeletion: true
13
+ controller: true
14
+ kind: ReplicaSet
15
+ name: compliant-deployment-6f95c6c87c
16
+ uid: 9f754993-6b10-44b8-bb57-cd75fb6b796e
17
+ spec:
18
+ containers:
19
+ - image: nginx:1.20
20
+ imagePullPolicy: IfNotPresent
21
+ name: nginx
22
+ resources: {}
23
+ securityContext:
24
+ capabilities:
25
+ add:
26
+ - NET_BIND_SERVICE
27
+ drop:
28
+ - ALL
29
+ terminationMessagePath: /dev/termination-log
30
+ terminationMessagePolicy: File
31
+ volumeMounts:
32
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
33
+ name: kube-api-access-xsjm2
34
+ readOnly: true
35
+ dnsPolicy: ClusterFirst
36
+ enableServiceLinks: true
37
+ nodeName: kind-1-control-plane
38
+ preemptionPolicy: PreemptLowerPriority
39
+ priority: 0
40
+ restartPolicy: Always
41
+ schedulerName: default-scheduler
42
+ securityContext: {}
43
+ serviceAccount: default
44
+ serviceAccountName: default
45
+ terminationGracePeriodSeconds: 30
46
+ tolerations:
47
+ - effect: NoExecute
48
+ key: node.kubernetes.io/not-ready
49
+ operator: Exists
50
+ tolerationSeconds: 300
51
+ - effect: NoExecute
52
+ key: node.kubernetes.io/unreachable
53
+ operator: Exists
54
+ tolerationSeconds: 300
55
+ volumes:
56
+ - name: kube-api-access-xsjm2
57
+ projected:
58
+ defaultMode: 420
59
+ sources:
60
+ - serviceAccountToken:
61
+ expirationSeconds: 3607
62
+ path: token
63
+ - configMap:
64
+ items:
65
+ - key: ca.crt
66
+ path: ca.crt
67
+ name: kube-root-ca.crt
68
+ - downwardAPI:
69
+ items:
70
+ - fieldRef:
71
+ apiVersion: v1
72
+ fieldPath: metadata.namespace
73
+ path: namespace
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.8/static-resources-compliant/pods/compliant-pod.yaml ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ kind: Pod
3
+ metadata:
4
+ annotations:
5
+ kubectl.kubernetes.io/last-applied-configuration: '{"apiVersion":"v1","kind":"Pod","metadata":{"annotations":{},"labels":{"app":"compliant-app"},"name":"compliant-pod","namespace":"k8s-opa-static-cis-528"},"spec":{"containers":[{"image":"nginx:1.20","name":"nginx","securityContext":{"capabilities":{"add":["NET_BIND_SERVICE"],"drop":["ALL"]}}}]}}
6
+
7
+ '
8
+ labels:
9
+ app: compliant-app
10
+ name: compliant-pod
11
+ namespace: k8s-opa-static-cis-528
12
+ spec:
13
+ containers:
14
+ - image: nginx:1.20
15
+ imagePullPolicy: IfNotPresent
16
+ name: nginx
17
+ resources: {}
18
+ securityContext:
19
+ capabilities:
20
+ add:
21
+ - NET_BIND_SERVICE
22
+ drop:
23
+ - ALL
24
+ terminationMessagePath: /dev/termination-log
25
+ terminationMessagePolicy: File
26
+ volumeMounts:
27
+ - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
28
+ name: kube-api-access-f5hhz
29
+ readOnly: true
30
+ dnsPolicy: ClusterFirst
31
+ enableServiceLinks: true
32
+ nodeName: kind-1-control-plane
33
+ preemptionPolicy: PreemptLowerPriority
34
+ priority: 0
35
+ restartPolicy: Always
36
+ schedulerName: default-scheduler
37
+ securityContext: {}
38
+ serviceAccount: default
39
+ serviceAccountName: default
40
+ terminationGracePeriodSeconds: 30
41
+ tolerations:
42
+ - effect: NoExecute
43
+ key: node.kubernetes.io/not-ready
44
+ operator: Exists
45
+ tolerationSeconds: 300
46
+ - effect: NoExecute
47
+ key: node.kubernetes.io/unreachable
48
+ operator: Exists
49
+ tolerationSeconds: 300
50
+ volumes:
51
+ - name: kube-api-access-f5hhz
52
+ projected:
53
+ defaultMode: 420
54
+ sources:
55
+ - serviceAccountToken:
56
+ expirationSeconds: 3607
57
+ path: token
58
+ - configMap:
59
+ items:
60
+ - key: ca.crt
61
+ path: ca.crt
62
+ name: kube-root-ca.crt
63
+ - downwardAPI:
64
+ items:
65
+ - fieldRef:
66
+ apiVersion: v1
67
+ fieldPath: metadata.namespace
68
+ path: namespace
snapshots/ciso/v0.1/k8s-opa-static-cis-5.2.8/static-resources-compliant/replicasets/compliant-deployment-6f95c6c87c.yaml ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: apps/v1
2
+ kind: ReplicaSet
3
+ metadata:
4
+ annotations:
5
+ deployment.kubernetes.io/desired-replicas: '2'
6
+ deployment.kubernetes.io/max-replicas: '3'
7
+ deployment.kubernetes.io/revision: '1'
8
+ labels:
9
+ app: compliant-deployment
10
+ pod-template-hash: 6f95c6c87c
11
+ name: compliant-deployment-6f95c6c87c
12
+ namespace: k8s-opa-static-cis-528
13
+ ownerReferences:
14
+ - apiVersion: apps/v1
15
+ blockOwnerDeletion: true
16
+ controller: true
17
+ kind: Deployment
18
+ name: compliant-deployment
19
+ spec:
20
+ replicas: 2
21
+ selector:
22
+ matchLabels:
23
+ app: compliant-deployment
24
+ pod-template-hash: 6f95c6c87c
25
+ template:
26
+ metadata:
27
+ creationTimestamp: null
28
+ labels:
29
+ app: compliant-deployment
30
+ pod-template-hash: 6f95c6c87c
31
+ spec:
32
+ containers:
33
+ - image: nginx:1.20
34
+ imagePullPolicy: IfNotPresent
35
+ name: nginx
36
+ resources: {}
37
+ securityContext:
38
+ capabilities:
39
+ add:
40
+ - NET_BIND_SERVICE
41
+ drop:
42
+ - ALL
43
+ terminationMessagePath: /dev/termination-log
44
+ terminationMessagePolicy: File
45
+ dnsPolicy: ClusterFirst
46
+ restartPolicy: Always
47
+ schedulerName: default-scheduler
48
+ securityContext: {}
49
+ terminationGracePeriodSeconds: 30