github-actions[bot] 1a23b1f2e8
Add ansible to rule S6430 (#4372)
Co-authored-by: pierre-loup-tristant-sonarsource <pierre-loup-tristant-sonarsource@users.noreply.github.com>
2024-10-07 15:49:54 +02:00

70 lines
1.0 KiB
Plaintext

include::../description.adoc[]
== Ask Yourself Whether
include::../ask-yourself.adoc[]
== Recommended Secure Coding Practices
include::../recommended.adoc[]
== Sensitive Code Example
[source,yaml]
----
apiVersion: v1
kind: Pod
metadata:
name: example
spec:
containers:
- name: web
image: nginx
ports:
- name: web
containerPort: 80
protocol: TCP
securityContext:
allowPrivilegeEscalation: true # Sensitive
----
== Compliant Solution
[source,yaml]
----
apiVersion: v1
kind: Pod
metadata:
name: example
spec:
containers:
- name: web
image: nginx
ports:
- name: web
containerPort: 80
protocol: TCP
securityContext:
allowPrivilegeEscalation: false
----
== See
include::../see.adoc[]
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
include::../message.adoc[]
=== Highlighting
include::../highlighting.adoc[]
endif::env-github,rspecator-view[]