run-devops icon indicating copy to clipboard operation
run-devops copied to clipboard

Security Misconfiguration: Absent Security Context and Use of HTTP Without TLS

Open akondasif opened this issue 2 years ago • 1 comments

Dear Colleague,

We are looking to find ways to help developers find security misconfigurations, i.e., violation of security best practices in Kubernetes manifests. We have noticed an instance of no security context in one of your Kubernetes manifests. The recommended practice is use of security context for pods. Without defining a security context for the pod, a container may run with root privilege and write permission into the root file system, making the Kubernetes cluster vulnerable. For examples of Kubernetes security anti-patterns we are following our peer-reviewed publication on Kubernetes security best practices (https://arxiv.org/pdf/2006.15275.pdf).

Location:

https://github.com/aspnetrun/run-devops/blob/70a7db44c75d2d68bdd55af67ebbce85dae66b50/aks/shoppingapi.yaml#L18

Please use securityContext to fix this misconfiguration. We would like to hear if you agree to fix this misconfiguration or have fixed the misconfiguration.

akondasif avatar Nov 01 '21 23:11 akondasif