github-actions[bot] 5cd49b86a1
Create rule S6429: Add Ansible (#4436)
Create rule S6429: Add Ansible
2024-10-25 14:25:52 +02:00

51 lines
802 B
Plaintext

include::../common/summary.adoc[]
== Sensitive Code Example
[source,yaml]
----
apiVersion: v1
kind: Pod
metadata:
name: test
spec:
containers:
- image: k8s.gcr.io/test-webserver
name: test-container
volumeMounts:
- mountPath: /var/run/docker.sock
name: test-volume
volumes:
- name: test-volume
hostPath:
path: /var/run/docker.sock # Sensitive
type: Socket
----
== Compliant Solution
[source,yaml]
----
apiVersion: v1
kind: Pod
metadata:
name: test
spec:
containers:
- image: k8s.gcr.io/test-webserver
name: test-container
----
include::../common/see.adoc[]
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../common/message-highlighting.adoc[]
endif::env-github,rspecator-view[]